naftiko: 1.0.0-alpha2 info: label: Grubhub Orders API — Orders description: 'Grubhub Orders API — Orders. 2 operations. Lead operation: List orders for a merchant. Self-contained Naftiko capability covering one Grubhub business surface.' tags: - Grubhub - Orders created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: GRUBHUB_API_KEY: GRUBHUB_API_KEY capability: consumes: - type: http namespace: orders-orders baseUri: https://api-third-party-gtm.grubhub.com description: Grubhub Orders API — Orders business capability. Self-contained, no shared references. resources: - name: pos-v1-merchant-merchant_long_id-orders path: /pos/v1/merchant/{merchant_long_id}/orders operations: - name: listmerchantorders method: GET description: List orders for a merchant outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: status in: query type: string description: Filter orders by their current status. - name: start_date in: query type: string description: Start of the date range filter in ISO 8601 format. - name: end_date in: query type: string description: End of the date range filter in ISO 8601 format. - name: pos-v1-merchant-merchant_long_id-orders-order_uuid path: /pos/v1/merchant/{merchant_long_id}/orders/{order_uuid} operations: - name: getorder method: GET description: Get a single order outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: apikey key: Authorization value: '{{env.GRUBHUB_API_KEY}}' placement: header exposes: - type: rest namespace: orders-orders-rest port: 8080 description: REST adapter for Grubhub Orders API — Orders. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/pos/v1/merchant/{merchant-long-id}/orders name: pos-v1-merchant-merchant-long-id-orders description: REST surface for pos-v1-merchant-merchant_long_id-orders. operations: - method: GET name: listmerchantorders description: List orders for a merchant call: orders-orders.listmerchantorders with: status: rest.status start_date: rest.start_date end_date: rest.end_date outputParameters: - type: object mapping: $. - path: /v1/pos/v1/merchant/{merchant-long-id}/orders/{order-uuid} name: pos-v1-merchant-merchant-long-id-orders-order-uuid description: REST surface for pos-v1-merchant-merchant_long_id-orders-order_uuid. operations: - method: GET name: getorder description: Get a single order call: orders-orders.getorder outputParameters: - type: object mapping: $. - type: mcp namespace: orders-orders-mcp port: 9090 transport: http description: MCP adapter for Grubhub Orders API — Orders. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-orders-merchant description: List orders for a merchant hints: readOnly: true destructive: false idempotent: true call: orders-orders.listmerchantorders with: status: tools.status start_date: tools.start_date end_date: tools.end_date outputParameters: - type: object mapping: $. - name: get-single-order description: Get a single order hints: readOnly: true destructive: false idempotent: true call: orders-orders.getorder outputParameters: - type: object mapping: $.