List bookings
list_bookingsFind hotel bookings and guests for a date range, filtered by room, source, guest, holds, unpaid or unassigned status, with totals for matched stays.
Instructions
Bookings and guests of the user's hotel in RealtyCalendar in a period: match=staying (guests in the house, who is in which room), arriving (check-ins, заезды) or departing (check-outs, выезды; rooms to clean). Filters: room, category, source (booking site: Островок, Яндекс…), guest name or phone, holds (заявки), unassigned (неразобранные: no room yet), unpaid (balance left to pay). Totals (sum, paid, left) cover all matches and their whole stays: a stay crossing the period's edge counts in full; say so with the totals. The period defaults to today; to find a guest's booking with no dates given ("найди бронь Петровой") use today to today + 180 days, and say which period you searched. No filter by the date a booking was made: for a recent booking from a site, filter by source and read "Дата бронирования" in get_booking. Not for "is room X free": use check_availability. 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
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_bookings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End of the period (exclusive); default from + 1 day; at most 180 days after from | |
| from | No | Start of the period, YYYY-MM-DD; default today | |
| room | No | Room title like "22" or its id | |
| limit | No | Max bookings returned (default 50); totals cover all | |
| match | No | staying: the stay overlaps [from, to) (default); arriving: check_in in [from, to); departing: check_out in [from, to) | |
| query | No | Guest name words, Cyrillic or Latin (matched in both scripts), or phone digits (at least 5, any format). Use a stem if unsure: "Петров" also finds Петрова | |
| source | No | Channel name in Latin or Cyrillic: "островок", "ostrovok", "яндекс"; all matches | |
| status | No | Default ["booked", "request"]; request = hold (заявка). ["request"] = holds only; add "canceled" for отменённые | |
| category | No | Category: id, number ("02") or title words; all matches are used. Words or a stem are enough: "улучшен", "двухмест", "коттедж". | |
| unpaid_only | No | Only bookings with left > 0 | |
| unassigned_only | No | Only bookings without a room in categories that have rooms |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| hint | No | Present when a guest query found nothing | |
| match | Yes | ||
| today | Yes | ||
| totals | Yes | ||
| matched | Yes | ||
| bookings | Yes | ||
| currency | Yes | ||
| returned | Yes | ||
| today_weekday | Yes |