Union Pacific · Capability

Union Pacific API — Waybill

Union Pacific API — Waybill. 1 operations. Lead operation: List Waybills. Self-contained Naftiko capability covering one Union Pacific business surface.

Run with Naftiko Union PacificWaybill

What You Can Do

GET
Listwaybills — List Waybills
/v1/waybill

MCP Tools

list-waybills

List Waybills

read-only idempotent

Capability Spec

union-pacific-waybill.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Union Pacific API — Waybill
  description: 'Union Pacific API — Waybill. 1 operations. Lead operation: List Waybills. Self-contained Naftiko capability
    covering one Union Pacific business surface.'
  tags:
  - Union Pacific
  - Waybill
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    UNION_PACIFIC_API_KEY: UNION_PACIFIC_API_KEY
capability:
  consumes:
  - type: http
    namespace: union-pacific-waybill
    baseUri: https://api.up.com
    description: Union Pacific API — Waybill business capability. Self-contained, no shared references.
    resources:
    - name: waybill
      path: /waybill
      operations:
      - name: listwaybills
        method: GET
        description: List Waybills
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: waybillNumber
          in: query
          type: string
          description: Specific waybill number to retrieve
        - name: shipmentId
          in: query
          type: string
          description: Shipment ID to retrieve associated waybills
  exposes:
  - type: rest
    namespace: union-pacific-waybill-rest
    port: 8080
    description: REST adapter for Union Pacific API — Waybill. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/waybill
      name: waybill
      description: REST surface for waybill.
      operations:
      - method: GET
        name: listwaybills
        description: List Waybills
        call: union-pacific-waybill.listwaybills
        with:
          waybillNumber: rest.waybillNumber
          shipmentId: rest.shipmentId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: union-pacific-waybill-mcp
    port: 9090
    transport: http
    description: MCP adapter for Union Pacific API — Waybill. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-waybills
      description: List Waybills
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: union-pacific-waybill.listwaybills
      with:
        waybillNumber: tools.waybillNumber
        shipmentId: tools.shipmentId
      outputParameters:
      - type: object
        mapping: $.