grubhub · Capability

Grubhub Orders API — Order Status

Grubhub Orders API — Order Status. 2 operations. Lead operation: Confirm an order. Self-contained Naftiko capability covering one Grubhub business surface.

Run with Naftiko GrubhubOrder Status

What You Can Do

POST
Confirmorder — Confirm an order
/v1/pos/v1/merchant/{merchant-long-id}/orders/{order-uuid}/confirm
PUT
Updateorderstatus — Update order status
/v1/pos/v1/merchant/{merchant-long-id}/orders/{order-uuid}/status

MCP Tools

confirm-order

Confirm an order

update-order-status

Update order status

idempotent

Capability Spec

orders-order-status.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Grubhub Orders API — Order Status
  description: 'Grubhub Orders API — Order Status. 2 operations. Lead operation: Confirm an order. Self-contained Naftiko
    capability covering one Grubhub business surface.'
  tags:
  - Grubhub
  - Order Status
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GRUBHUB_API_KEY: GRUBHUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: orders-order-status
    baseUri: https://api-third-party-gtm.grubhub.com
    description: Grubhub Orders API — Order Status business capability. Self-contained, no shared references.
    resources:
    - name: pos-v1-merchant-merchant_long_id-orders-order_uuid-confirm
      path: /pos/v1/merchant/{merchant_long_id}/orders/{order_uuid}/confirm
      operations:
      - name: confirmorder
        method: POST
        description: Confirm an order
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: pos-v1-merchant-merchant_long_id-orders-order_uuid-status
      path: /pos/v1/merchant/{merchant_long_id}/orders/{order_uuid}/status
      operations:
      - name: updateorderstatus
        method: PUT
        description: Update order status
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.GRUBHUB_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: orders-order-status-rest
    port: 8080
    description: REST adapter for Grubhub Orders API — Order Status. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/pos/v1/merchant/{merchant-long-id}/orders/{order-uuid}/confirm
      name: pos-v1-merchant-merchant-long-id-orders-order-uuid-confirm
      description: REST surface for pos-v1-merchant-merchant_long_id-orders-order_uuid-confirm.
      operations:
      - method: POST
        name: confirmorder
        description: Confirm an order
        call: orders-order-status.confirmorder
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/pos/v1/merchant/{merchant-long-id}/orders/{order-uuid}/status
      name: pos-v1-merchant-merchant-long-id-orders-order-uuid-status
      description: REST surface for pos-v1-merchant-merchant_long_id-orders-order_uuid-status.
      operations:
      - method: PUT
        name: updateorderstatus
        description: Update order status
        call: orders-order-status.updateorderstatus
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: orders-order-status-mcp
    port: 9090
    transport: http
    description: MCP adapter for Grubhub Orders API — Order Status. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: confirm-order
      description: Confirm an order
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: orders-order-status.confirmorder
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: update-order-status
      description: Update order status
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: orders-order-status.updateorderstatus
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.