Book a table
create_reservationBook a table for a guest. Requires date, a time from list_available_slots, party size, the guest's name and email; phone and notes optional; coming_for_item_id (optional) = the one dish they say they are coming for, an item_id of this location's menu today (anything else fails with invalid_coming_for): the kitchen gets it, nothing is held for them and they are never promised a notice; seating_preference (optional: inside | outside | any) = where they would rather sit, kept only when the restaurant asks for it on that date (seating.asked in list_available_slots / check_availability) and echoed back as seating_preference (null = not kept): it is a preference the staff reads, so tell the guest it depends on room that day; happening_id (optional) = the id of the event in get_restaurant_info.happenings the table is for (the match, live music; same date), counted against its own capacity: the booking is marked with it for the staff; table_id or zone_id (optional, not both) = a table or only a zone the guest picked from check_availability.table_choice, checked again when saved: table_taken if someone got it first (call check_availability again and offer another), invalid_table if both are passed (even where the restaurant does not let guests pick); table echoes the table or zone kept (null = none: ignored where the restaurant does not let guests pick, and then the restaurant seats them). Returns verification_required — if true, ask the guest for the emailed 6-digit code and call confirm_reservation. If the guest already has a booking here at an overlapping time, confirm_reservation answers already_booked (only once the code proves the email, so nobody learns another person's bookings): change that one with change_reservation, or confirm this one too with confirm_additional: true. Where the restaurant asks for no code there is no such check. If the code email cannot be sent the call fails with code_not_sent and nothing is saved: tell the guest to try again in a few minutes or call the restaurant. An address that cannot receive mail (a made-up or reserved domain) fails with invalid_email and nothing is saved: ask for a real one. Depending on the restaurant the booking is confirmed automatically or awaits the owner's confirmation (status "pending"). Some restaurants ask for a deposit to hold the table (often only for large groups): deposit_amount says how much (null = none) as soon as the booking is made, so tell the guest; deposit (method, pay_by, the restaurant's own policy text and how to pay) comes only once the booking is past its code, here or in confirm_reservation / get_reservation. method "transfer": the guest transfers straight to the restaurant (account and reference in deposit.transfer) and the booking stays "pending" until the restaurant marks it received. method "mercadopago" or "stripe" (the provider): give the guest deposit.payment_url (their booking page, where they pay on the provider's own checkout, straight to the restaurant); unpaid by pay_by the booking is cancelled and the time freed; a cancel up to deposit.refund_until gives it back automatically, after that or on a no-show the restaurant keeps it (refund_until null = never given back). You never pay nor mark a deposit. You cannot pay it or mark it paid, and nothing is cancelled by itself.
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": "<time>",
"party_size": "<party_size>",
"customer_name": "<customer_name>",
"customer_email": "<customer_email>"
},
"name": "create_reservation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| time | Yes | ||
| notes | No | ||
| 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. | |
| allergy | No | Optional: what the guest is allergic to, for the kitchen to check before they come. Send it only if the guest said so, and only with allergy_consent true. keys: any of gluten, crustaceans, eggs, fish, peanuts, soy, milk, tree_nuts, celery, mustard, sesame, sulphites, lupin, molluscs (an unknown key fails with invalid_allergy); note: one line of text, at most 200 characters. At least one key or a note. Health data: the restaurant keeps it until 90 days after the booking's day, then it is deleted (the booking stays). | |
| zone_id | No | Optional, instead of table_id: one of check_availability.table_choice.zones[].zone_id; the restaurant picks the table in that zone. Never together with table_id (invalid_table, even where guests cannot pick). | |
| table_id | No | Optional: one of check_availability.table_choice.tables[].table_id for that date, time and party. Fails with table_taken when it is no longer free. Never together with zone_id: both fail with invalid_table, even where guests cannot pick. | |
| party_size | Yes | ||
| happening_id | No | Optional: the id of one of get_restaurant_info.happenings (the match, live music) this table is for. Same date as the event, one with a reserve_url; counted against its own capacity besides the table. Fails with happening_not_found (not on the list any more), happening_no_booking, happening_other_day or happening_full (details.spotsLeft = people still free for it: a smaller party may fit). | |
| customer_name | Yes | ||
| customer_email | Yes | ||
| customer_phone | No | ||
| allergy_consent | No | Required with `allergy`: true only after the guest explicitly agreed to share their allergy with the restaurant. allergy without allergy_consent true fails with allergy_consent_required and nothing is booked. | |
| restaurant_slug | Yes | ||
| allergy_dish_ids | No | Optional, only with `allergy`: up to 3 item_ids (get_menu_structured, same location) the guest wants the kitchen to check. The staff answer per dish later; read it in get_reservation.allergy_plan (kitchen yes / no / not_answered) and the guest is emailed when every dish has an answer. Tell the guest it is the kitchen's word, not a guarantee: never say a dish is safe or suitable. Anything else fails with invalid_allergy_dishes. | |
| coming_for_item_id | No | Optional: the item_id (get_menu_structured, same location) of the one dish the guest says they are coming for. Passed to the kitchen; nothing is reserved or promised. | |
| seating_preference | No | Optional: where the guest would rather sit. Only kept when list_available_slots / check_availability say seating.asked for that date. A preference the staff reads: no table or area is held. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | #697 I3: the table (its name) or only the zone kept from table_id / zone_id; null = none (not picked, or the restaurant does not let guests pick) | |
| status | No | Present when no verification is needed: confirmed, or pending = awaits the restaurant | |
| deposit | No | #368: the deposit the restaurant asks to hold this booking; null = none (or, on create_reservation, not past the code yet: see deposit_amount). The guest pays the restaurant directly; only the restaurant marks it received | |
| message | No | ||
| manage_url | No | ||
| deposit_amount | Yes | #368: what the restaurant asks to hold this table, in its currency ("40000.00"); null = no deposit. Known before the code: tell the guest now. Where to pay comes only once the booking is past its code (deposit) | |
| reservation_id | Yes | ||
| confirmation_code | No | ||
| seating_preference | Yes | #335: inside | outside as kept on the booking; null = none kept (not asked for, the restaurant does not ask, or outside is closed that day) | |
| verification_required | Yes | True: ask the guest for the emailed 6-digit code and call confirm_reservation |