Check availability
check_availabilityCheck hotel room availability for stay dates and guest counts; see free, busy, held, or closed rooms by category, occupancy, prices, and booking rules.
Instructions
Rooms of the user's hotel in RealtyCalendar for a stay: per category which rooms are free, busy, on hold or closed, occupancy (загрузка), the price of the stay for the number of guests, and the booking rules for the dates: minimum stay (минимальный срок), no check-in / no check-out days. A room is bookable only if it is empty AND its category has capacity every night (unassigned bookings use capacity without a room): answer from bookable_rooms and stay_rules, not empty_rooms. Mention holds (заявки) on free rooms. Not for finding a booking: use list_bookings. Not for the user's own calendar, free time or meetings, staff schedules, other hotels or travel plans. Dates: today is in every result; stays are nights (check_out = departure day); a week is Monday to Sunday; "на выходные" = Friday and Saturday nights; a date without a year is the next one, or the last one when the user asks about the past. Say which dates you used.
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": {
"check_in": "<check_in>",
"check_out": "<check_out>"
},
"name": "check_availability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| room | No | Room (номер) title like "22" or "22-й", or its id; implies its category | |
| detail | No | summary = per category; rooms = also each room night by night with guests (что занято, кто где). Default: rooms when room or category is given | |
| guests | No | Only categories that take at least this many guests; doesn't change the price | |
| category | No | Category (тип номера): id, number ("02") or title words; all matching categories are used. Words or a stem are enough: "улучшен", "двухмест", "коттедж". | |
| check_in | Yes | Arrival day, YYYY-MM-DD (hotel-local) | |
| check_out | Yes | Departure day, YYYY-MM-DD; after check_in, at most 62 nights. One night on X: X+1; for the rules of a day, too |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| today | Yes | ||
| nights | Yes | ||
| check_in | Yes | ||
| currency | Yes | ||
| check_out | Yes | ||
| categories | Yes | ||
| today_weekday | Yes | ||
| check_in_weekday | Yes | ||
| check_out_weekday | Yes | ||
| matched_categories | No |