Get a booking link
book_linkThe booking link for a stay when you have no offer from get_rates (for example, get_rates could not be read): it re-checks the stay live and opens the hotel's booking page. When you have an offer, give its booking_url instead. Nothing is booked, held or paid here: the traveller books and pays on the hotel's page. Never call it a confirmed booking.
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": {
"hotel": "<hotel>",
"checkin": "<checkin>",
"nights": "<nights>",
"guests": "<guests>"
},
"name": "book_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hotel | Yes | The hotel id from search_hotels or resolve_hotel, or the hotel's website domain. | |
| offer | No | Not needed: with an offer from get_rates, give its booking_url instead. An older client's offer id. | |
| total | No | With offer only: the whole-stay total in minor units. | |
| guests | Yes | Number of adult guests. | |
| nights | Yes | Number of nights, 1 or more. | |
| checkin | Yes | Check-in date, YYYY-MM-DD. | |
| children | No | Number of children (under 18) in the party; leave out for none. | |
| currency | No | With offer only: the total's currency, such as JPY. |