naftiko: 1.0.0-alpha2 info: label: Uber Direct API — Locations description: 'Uber Direct API — Locations. 4 operations. Lead operation: List Business Locations. Self-contained Naftiko capability covering one Uber business surface.' tags: - Uber - Locations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: UBER_API_KEY: UBER_API_KEY capability: consumes: - type: http namespace: direct-locations baseUri: https://api.uber.com/v1 description: Uber Direct API — Locations business capability. Self-contained, no shared references. resources: - name: business-locations path: /business-locations operations: - name: listbusinesslocations method: GET description: List Business Locations outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createbusinesslocation method: POST description: Create Business Location outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: business-locations-location_id path: /business-locations/{location_id} operations: - name: getbusinesslocation method: GET description: Get Business Location outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: location_id in: path type: string description: Unique identifier for the business location. required: true - name: deletebusinesslocation method: DELETE description: Delete Business Location outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: location_id in: path type: string description: Unique identifier for the business location. required: true authentication: type: bearer token: '{{env.UBER_API_KEY}}' exposes: - type: rest namespace: direct-locations-rest port: 8080 description: REST adapter for Uber Direct API — Locations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/business-locations name: business-locations description: REST surface for business-locations. operations: - method: GET name: listbusinesslocations description: List Business Locations call: direct-locations.listbusinesslocations outputParameters: - type: object mapping: $. - method: POST name: createbusinesslocation description: Create Business Location call: direct-locations.createbusinesslocation with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/business-locations/{location-id} name: business-locations-location-id description: REST surface for business-locations-location_id. operations: - method: GET name: getbusinesslocation description: Get Business Location call: direct-locations.getbusinesslocation with: location_id: rest.location_id outputParameters: - type: object mapping: $. - method: DELETE name: deletebusinesslocation description: Delete Business Location call: direct-locations.deletebusinesslocation with: location_id: rest.location_id outputParameters: - type: object mapping: $. - type: mcp namespace: direct-locations-mcp port: 9090 transport: http description: MCP adapter for Uber Direct API — Locations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-business-locations description: List Business Locations hints: readOnly: true destructive: false idempotent: true call: direct-locations.listbusinesslocations outputParameters: - type: object mapping: $. - name: create-business-location description: Create Business Location hints: readOnly: false destructive: false idempotent: false call: direct-locations.createbusinesslocation with: body: tools.body outputParameters: - type: object mapping: $. - name: get-business-location description: Get Business Location hints: readOnly: true destructive: false idempotent: true call: direct-locations.getbusinesslocation with: location_id: tools.location_id outputParameters: - type: object mapping: $. - name: delete-business-location description: Delete Business Location hints: readOnly: false destructive: true idempotent: true call: direct-locations.deletebusinesslocation with: location_id: tools.location_id outputParameters: - type: object mapping: $.