naftiko: 1.0.0-alpha2 info: label: Uber Riders API — Products description: 'Uber Riders API — Products. 2 operations. Lead operation: List Products. Self-contained Naftiko capability covering one Uber business surface.' tags: - Uber - Products created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: UBER_API_KEY: UBER_API_KEY capability: consumes: - type: http namespace: riders-products baseUri: https://api.uber.com/v1.2 description: Uber Riders API — Products business capability. Self-contained, no shared references. resources: - name: products path: /products operations: - name: listproducts method: GET description: List Products outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: latitude in: query type: number description: Latitude component of location. required: true - name: longitude in: query type: number description: Longitude component of location. required: true - name: products-product_id path: /products/{product_id} operations: - name: getproduct method: GET description: Get Product outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: product_id in: path type: string description: Unique identifier representing a specific product for a given location. required: true authentication: type: bearer token: '{{env.UBER_API_KEY}}' exposes: - type: rest namespace: riders-products-rest port: 8080 description: REST adapter for Uber Riders API — Products. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/products name: products description: REST surface for products. operations: - method: GET name: listproducts description: List Products call: riders-products.listproducts with: latitude: rest.latitude longitude: rest.longitude outputParameters: - type: object mapping: $. - path: /v1/products/{product-id} name: products-product-id description: REST surface for products-product_id. operations: - method: GET name: getproduct description: Get Product call: riders-products.getproduct with: product_id: rest.product_id outputParameters: - type: object mapping: $. - type: mcp namespace: riders-products-mcp port: 9090 transport: http description: MCP adapter for Uber Riders API — Products. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-products description: List Products hints: readOnly: true destructive: false idempotent: true call: riders-products.listproducts with: latitude: tools.latitude longitude: tools.longitude outputParameters: - type: object mapping: $. - name: get-product description: Get Product hints: readOnly: true destructive: false idempotent: true call: riders-products.getproduct with: product_id: tools.product_id outputParameters: - type: object mapping: $.