Ask to be told if a table frees up
create_availability_alertWhen the guest's day is full (check_availability or list_available_slots shows every time they would take as reason "full"), ask the restaurant to email them if a table frees up: date, a time range time_from..time_to (HH:MM, both included, the times they would accept), party size, the guest's name and email. Only where the restaurant offers it (fails with feature_off otherwise; then suggest another day or the contact from get_restaurant_info), with the same switches as create_reservation. Fails with has_room when a time in that range is free right now (book it with create_reservation instead), with nothing_to_wait_for when no time in that range can be booked at all (outside the hours, too soon) and day_closed when the day takes no bookings. This does NOT book or hold anything: a 6-digit code is emailed to the guest; ask them for it and call confirm_availability_alert. Once confirmed, if a time in their range frees up, the first few guests who asked, in the order they asked, get an email with a link to book it; whoever books first gets it. Alerts end on their own after that day. Only at the guest's explicit request, with their own email. code_not_sent / invalid_email: as create_reservation.
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": {
"restaurant_slug": "<restaurant_slug>",
"date": "<date>",
"time_from": "<time_from>",
"time_to": "<time_to>",
"party_size": "<party_size>",
"customer_name": "<customer_name>",
"customer_email": "<customer_email>"
},
"name": "create_availability_alert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | YYYY-MM-DD | |
| branch | No | Location of a restaurant with several (get_restaurant_info.locations[].branch, e.g. "palermo"). Omit for the main location. Hours, contact, address, ordering and reservations differ per location. | |
| time_to | Yes | HH:MM, the latest time the guest would take (not before time_from) | |
| language | No | Language of the emails (default: the restaurant's) | |
| time_from | Yes | HH:MM, the earliest time the guest would take | |
| party_size | Yes | ||
| customer_name | Yes | ||
| customer_email | Yes | ||
| restaurant_slug | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| active | Yes | Not waiting yet: confirm_availability_alert with the emailed code first | |
| message | Yes | ||
| alert_id | Yes | ||
| verification_required | Yes |