travel_book_hotel
Book a hotel after confirming the price with a prior quote. Requires explicit user consent: first call returns a preview and token, then re-call with that token to finalize.
Instructions
Book a hotel. Requires two-phase consent: the first call (without consentToken) returns status="needs_confirmation" with a preview and a consentToken - NO booking is made. Relay the preview to the user verbatim, get their explicit yes, then re-call with the SAME args plus consentToken. A spend limit guard rejects bookings above TRAVALA_MAX_BOOKING_USD (default: same as Q402_MAX_AMOUNT_PER_CALL). Always call travel_get_quote first to obtain the amount.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"hotelId": "<hotelId>",
"checkIn": "<checkIn>",
"checkOut": "<checkOut>",
"guestName": "<guestName>",
"amount": "<amount>"
},
"name": "travel_book_hotel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Expected total amount in USD (from travel_get_quote). | |
| guests | No | Number of guests (default 1). | |
| checkIn | Yes | Check-in date (YYYY-MM-DD). | |
| hotelId | Yes | Hotel ID from travel_search_hotels. | |
| checkOut | Yes | Check-out date (YYYY-MM-DD). | |
| currency | No | Currency (default USD). | |
| guestName | Yes | Full name of the primary guest. | |
| consentToken | No | Two-phase consent token from the first call. |