Union Pacific · Capability

Union Pacific API — Intermodal

Union Pacific API — Intermodal. 3 operations. Lead operation: List Intermodal Departures. Self-contained Naftiko capability covering one Union Pacific business surface.

Run with Naftiko Union PacificIntermodal

What You Can Do

GET
Listintermodaldepartures — List Intermodal Departures
/v1/intermodal/departure
GET
Listintermodallanes — List Intermodal Lanes
/v1/intermodal/lane
POST
Createintermodalreservation — Create Intermodal Reservation
/v1/intermodal/reservation

MCP Tools

list-intermodal-departures

List Intermodal Departures

read-only idempotent
list-intermodal-lanes

List Intermodal Lanes

read-only idempotent
create-intermodal-reservation

Create Intermodal Reservation

Capability Spec

union-pacific-intermodal.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Union Pacific API — Intermodal
  description: 'Union Pacific API — Intermodal. 3 operations. Lead operation: List Intermodal Departures. Self-contained Naftiko
    capability covering one Union Pacific business surface.'
  tags:
  - Union Pacific
  - Intermodal
  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-intermodal
    baseUri: https://api.up.com
    description: Union Pacific API — Intermodal business capability. Self-contained, no shared references.
    resources:
    - name: intermodal-departure
      path: /intermodal/departure
      operations:
      - name: listintermodaldepartures
        method: GET
        description: List Intermodal Departures
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: origin
          in: query
          type: string
          description: Origin terminal code
        - name: destination
          in: query
          type: string
          description: Destination terminal code
        - name: date
          in: query
          type: string
          description: Departure date (YYYY-MM-DD)
    - name: intermodal-lane
      path: /intermodal/lane
      operations:
      - name: listintermodallanes
        method: GET
        description: List Intermodal Lanes
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: origin
          in: query
          type: string
          description: Origin terminal code
        - name: destination
          in: query
          type: string
          description: Destination terminal code
    - name: intermodal-reservation
      path: /intermodal/reservation
      operations:
      - name: createintermodalreservation
        method: POST
        description: Create Intermodal Reservation
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
  exposes:
  - type: rest
    namespace: union-pacific-intermodal-rest
    port: 8080
    description: REST adapter for Union Pacific API — Intermodal. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/intermodal/departure
      name: intermodal-departure
      description: REST surface for intermodal-departure.
      operations:
      - method: GET
        name: listintermodaldepartures
        description: List Intermodal Departures
        call: union-pacific-intermodal.listintermodaldepartures
        with:
          origin: rest.origin
          destination: rest.destination
          date: rest.date
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/intermodal/lane
      name: intermodal-lane
      description: REST surface for intermodal-lane.
      operations:
      - method: GET
        name: listintermodallanes
        description: List Intermodal Lanes
        call: union-pacific-intermodal.listintermodallanes
        with:
          origin: rest.origin
          destination: rest.destination
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/intermodal/reservation
      name: intermodal-reservation
      description: REST surface for intermodal-reservation.
      operations:
      - method: POST
        name: createintermodalreservation
        description: Create Intermodal Reservation
        call: union-pacific-intermodal.createintermodalreservation
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: union-pacific-intermodal-mcp
    port: 9090
    transport: http
    description: MCP adapter for Union Pacific API — Intermodal. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-intermodal-departures
      description: List Intermodal Departures
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: union-pacific-intermodal.listintermodaldepartures
      with:
        origin: tools.origin
        destination: tools.destination
        date: tools.date
      outputParameters:
      - type: object
        mapping: $.
    - name: list-intermodal-lanes
      description: List Intermodal Lanes
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: union-pacific-intermodal.listintermodallanes
      with:
        origin: tools.origin
        destination: tools.destination
      outputParameters:
      - type: object
        mapping: $.
    - name: create-intermodal-reservation
      description: Create Intermodal Reservation
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: union-pacific-intermodal.createintermodalreservation
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.