Price and lock a room
secure_roomPrice and lock an exact room for specific dates. Returns the live price, cancellation policy, and a secure booking link with the room preselected. Requires connecting your Roomza account.
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": {
"room_id": "<room_id>",
"check_in": "<check_in>",
"check_out": "<check_out>"
},
"name": "secure_room"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guests | No | Guest count (default 2) | |
| room_id | Yes | Room UUID (from show_rooms or get_hotel_rooms) | |
| check_in | Yes | Check-in date, YYYY-MM-DD | |
| check_out | Yes | Check-out date, YYYY-MM-DD |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | false = the request could not be quoted; see message | |
| fees | No | ||
| guests | Yes | ||
| nights | Yes | ||
| roomId | Yes | ||
| checkIn | Yes | ||
| hotelId | Yes | ||
| message | Yes | Set when ok is false | |
| bookable | Yes | true when a live bookable rate was found | |
| checkOut | Yes | ||
| checkout | No | Where the booking link finishes: Roomza's checkout or the hotel's own website | |
| currency | Yes | ISO 4217 currency of every amount below | |
| merchant | No | Who charges the guest: the supplier, Roomza, or the hotel itself | |
| rateName | Yes | ||
| acpItemId | No | Item id for an Agentic Commerce Protocol checkout of this stay, when Roomza can take payment in the chat | |
| hotelName | Yes | ||
| bookingUrl | Yes | Secure checkout link with the room preselected; payment happens only there | |
| dueAtHotel | Yes | Additional amount due at the hotel, in currency units | |
| publicRate | Yes | Hotel's public rate, in currency units, for comparison | |
| roomNumber | Yes | ||
| totalToday | Yes | Total price of the stay, in currency units; when it is charged is shown at checkout | |
| trackRecord | Yes | Hotel's room-request honor track record | |
| cancellation | Yes | ||
| paymentTiming | No | When the card is charged | |
| taxesIncluded | No | Taxes and fees inside the total, in currency units | |
| indicativeOnly | Yes | true when the price is from public listings, not bookable | |
| priceCheckedAt | No | When this price was read; prices are live until booked, and checkout never charges more than the price shown | |
| freeCancelUntil | No | YYYY-MM-DD free-cancellation deadline, for refundable rates |