Get hotel rooms
get_roomsList the bookable rooms for ONE hotel and date range. Each room's offerRef is what you pass to get_checkout_quote / create_checkout. Use the hotel ref from search_hotels or search. Call this to see all of a chosen hotel's rooms, or to refresh availability before checkout.
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": {
"checkIn": "<checkIn>",
"checkOut": "<checkOut>"
},
"name": "get_rooms"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | The hotel `ref` from search (e.g. 'tbo:1360717'). | |
| rooms | No | Rooms (default 1). | |
| adults | No | Adults (default 2). | |
| checkIn | Yes | Check-in date, ISO 8601 (YYYY-MM-DD). | |
| checkOut | Yes | Check-out date, ISO 8601 (YYYY-MM-DD). | |
| children | No | Children (default 0). | |
| supplierCode | No | Alternative to `ref`: supplier code. | |
| supplierHotelId | No | Alternative to `ref`: supplier hotel id. |