naftiko: 1.0.0-alpha2 info: label: Booking.com Demand API — Accommodations description: 'Booking.com Demand API — Accommodations. 7 operations. Lead operation: Check accommodation availability. Self-contained Naftiko capability covering one Booking Com business surface.' tags: - Booking Com - Accommodations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: BOOKING_COM_API_KEY: BOOKING_COM_API_KEY capability: consumes: - type: http namespace: demand-accommodations baseUri: https://demandapi.booking.com/3.1 description: Booking.com Demand API — Accommodations business capability. Self-contained, no shared references. resources: - name: accommodations-availability path: /accommodations/availability operations: - name: checkaccommodationavailability method: POST description: Check accommodation availability outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: accommodations-bulk-availability path: /accommodations/bulk-availability operations: - name: checkbulkaccommodationavailability method: POST description: Check multiple accommodation availability outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: accommodations-chains path: /accommodations/chains operations: - name: getaccommodationchains method: POST description: Get accommodation chains outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: accommodations-details path: /accommodations/details operations: - name: getaccommodationdetails method: POST description: Get accommodation details outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: accommodations-reviews path: /accommodations/reviews operations: - name: getaccommodationreviews method: POST description: Get accommodation reviews outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: accommodations-reviews-scores path: /accommodations/reviews/scores operations: - name: getaccommodationreviewscores method: POST description: Get accommodation review scores outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: accommodations-search path: /accommodations/search operations: - name: searchaccommodations method: POST description: Search accommodations outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.BOOKING_COM_API_KEY}}' exposes: - type: rest namespace: demand-accommodations-rest port: 8080 description: REST adapter for Booking.com Demand API — Accommodations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/accommodations/availability name: accommodations-availability description: REST surface for accommodations-availability. operations: - method: POST name: checkaccommodationavailability description: Check accommodation availability call: demand-accommodations.checkaccommodationavailability with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/accommodations/bulk-availability name: accommodations-bulk-availability description: REST surface for accommodations-bulk-availability. operations: - method: POST name: checkbulkaccommodationavailability description: Check multiple accommodation availability call: demand-accommodations.checkbulkaccommodationavailability with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/accommodations/chains name: accommodations-chains description: REST surface for accommodations-chains. operations: - method: POST name: getaccommodationchains description: Get accommodation chains call: demand-accommodations.getaccommodationchains with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/accommodations/details name: accommodations-details description: REST surface for accommodations-details. operations: - method: POST name: getaccommodationdetails description: Get accommodation details call: demand-accommodations.getaccommodationdetails with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/accommodations/reviews name: accommodations-reviews description: REST surface for accommodations-reviews. operations: - method: POST name: getaccommodationreviews description: Get accommodation reviews call: demand-accommodations.getaccommodationreviews with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/accommodations/reviews/scores name: accommodations-reviews-scores description: REST surface for accommodations-reviews-scores. operations: - method: POST name: getaccommodationreviewscores description: Get accommodation review scores call: demand-accommodations.getaccommodationreviewscores with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/accommodations/search name: accommodations-search description: REST surface for accommodations-search. operations: - method: POST name: searchaccommodations description: Search accommodations call: demand-accommodations.searchaccommodations with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: demand-accommodations-mcp port: 9090 transport: http description: MCP adapter for Booking.com Demand API — Accommodations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: check-accommodation-availability description: Check accommodation availability hints: readOnly: true destructive: false idempotent: false call: demand-accommodations.checkaccommodationavailability with: body: tools.body outputParameters: - type: object mapping: $. - name: check-multiple-accommodation-availability description: Check multiple accommodation availability hints: readOnly: true destructive: false idempotent: false call: demand-accommodations.checkbulkaccommodationavailability with: body: tools.body outputParameters: - type: object mapping: $. - name: get-accommodation-chains description: Get accommodation chains hints: readOnly: true destructive: false idempotent: false call: demand-accommodations.getaccommodationchains with: body: tools.body outputParameters: - type: object mapping: $. - name: get-accommodation-details description: Get accommodation details hints: readOnly: true destructive: false idempotent: false call: demand-accommodations.getaccommodationdetails with: body: tools.body outputParameters: - type: object mapping: $. - name: get-accommodation-reviews description: Get accommodation reviews hints: readOnly: true destructive: false idempotent: false call: demand-accommodations.getaccommodationreviews with: body: tools.body outputParameters: - type: object mapping: $. - name: get-accommodation-review-scores description: Get accommodation review scores hints: readOnly: true destructive: false idempotent: false call: demand-accommodations.getaccommodationreviewscores with: body: tools.body outputParameters: - type: object mapping: $. - name: search-accommodations description: Search accommodations hints: readOnly: true destructive: false idempotent: false call: demand-accommodations.searchaccommodations with: body: tools.body outputParameters: - type: object mapping: $.