naftiko: 1.0.0-alpha2 info: label: Airbnb Homes API — Reservations description: 'Airbnb Homes API — Reservations. 5 operations. Lead operation: List Reservations. Self-contained Naftiko capability covering one Airbnb business surface.' tags: - Airbnb - Reservations created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: AIRBNB_API_KEY: AIRBNB_API_KEY capability: consumes: - type: http namespace: homes-reservations baseUri: https://api.airbnb.com/v2 description: Airbnb Homes API — Reservations business capability. Self-contained, no shared references. resources: - name: reservations path: /reservations operations: - name: listreservations method: GET description: List Reservations outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: status in: query type: string description: Filter reservations by their current status. - name: listing_id in: query type: string description: Filter reservations by listing identifier. - name: start_date in: query type: string description: Filter reservations with check-in dates on or after this date. - name: end_date in: query type: string description: Filter reservations with check-in dates on or before this date. - name: reservations-reservation_id path: /reservations/{reservation_id} operations: - name: getreservation method: GET description: Get a Reservation outputRawFormat: json outputParameters: - name: result type: object value: $. - name: reservations-reservation_id-accept path: /reservations/{reservation_id}/accept operations: - name: acceptreservation method: POST description: Accept a Reservation outputRawFormat: json outputParameters: - name: result type: object value: $. - name: reservations-reservation_id-cancel path: /reservations/{reservation_id}/cancel operations: - name: cancelreservation method: POST description: Cancel a Reservation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: reservations-reservation_id-deny path: /reservations/{reservation_id}/deny operations: - name: denyreservation method: POST description: Deny a Reservation outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false authentication: type: bearer token: '{{env.AIRBNB_API_KEY}}' exposes: - type: rest namespace: homes-reservations-rest port: 8080 description: REST adapter for Airbnb Homes API — Reservations. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/reservations name: reservations description: REST surface for reservations. operations: - method: GET name: listreservations description: List Reservations call: homes-reservations.listreservations with: status: rest.status listing_id: rest.listing_id start_date: rest.start_date end_date: rest.end_date outputParameters: - type: object mapping: $. - path: /v1/reservations/{reservation-id} name: reservations-reservation-id description: REST surface for reservations-reservation_id. operations: - method: GET name: getreservation description: Get a Reservation call: homes-reservations.getreservation outputParameters: - type: object mapping: $. - path: /v1/reservations/{reservation-id}/accept name: reservations-reservation-id-accept description: REST surface for reservations-reservation_id-accept. operations: - method: POST name: acceptreservation description: Accept a Reservation call: homes-reservations.acceptreservation outputParameters: - type: object mapping: $. - path: /v1/reservations/{reservation-id}/cancel name: reservations-reservation-id-cancel description: REST surface for reservations-reservation_id-cancel. operations: - method: POST name: cancelreservation description: Cancel a Reservation call: homes-reservations.cancelreservation with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/reservations/{reservation-id}/deny name: reservations-reservation-id-deny description: REST surface for reservations-reservation_id-deny. operations: - method: POST name: denyreservation description: Deny a Reservation call: homes-reservations.denyreservation with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: homes-reservations-mcp port: 9090 transport: http description: MCP adapter for Airbnb Homes API — Reservations. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-reservations description: List Reservations hints: readOnly: true destructive: false idempotent: true call: homes-reservations.listreservations with: status: tools.status listing_id: tools.listing_id start_date: tools.start_date end_date: tools.end_date outputParameters: - type: object mapping: $. - name: get-reservation description: Get a Reservation hints: readOnly: true destructive: false idempotent: true call: homes-reservations.getreservation outputParameters: - type: object mapping: $. - name: accept-reservation description: Accept a Reservation hints: readOnly: false destructive: false idempotent: false call: homes-reservations.acceptreservation outputParameters: - type: object mapping: $. - name: cancel-reservation description: Cancel a Reservation hints: readOnly: false destructive: false idempotent: false call: homes-reservations.cancelreservation with: body: tools.body outputParameters: - type: object mapping: $. - name: deny-reservation description: Deny a Reservation hints: readOnly: false destructive: false idempotent: false call: homes-reservations.denyreservation with: body: tools.body outputParameters: - type: object mapping: $.