Exact stay price
ot_price_quoteCalculates the total Toman amount to pay for a room, dates, and guests, including extra-guest and late-checkout charges, and checks availability, free nights, stay length, and capacity.
Instructions
Get the amount to pay (Toman) for a room, dates and guests: nights_total (the room page's
payable amount for the base guests), the extra-guest charge, optional late checkout, and the total.
nightly is the calendar breakdown (rounded per night, so it can add up to a little more than nights_total).
Also checks free nights, stay length and capacity (available=false with a reason otherwise).
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>",
"guests": "<guests>"
},
"name": "ot_price_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guests | Yes | Guests. | |
| room_id | Yes | Room id (code). | |
| check_in | Yes | Arrival day YYYY-MM-DD. | |
| check_out | Yes | Departure day YYYY-MM-DD (max 20 nights). | |
| late_checkout_hours | No | Late checkout hours to add (offered rooms), e.g. 4. |