Skip to main content
Glama

MenuNode

Book a table

create_reservation

Book 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

NameRequiredDescriptionDefault
dateYes
timeYes
notesNo
branchNoLocation 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.
allergyNoOptional: 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_idNoOptional, 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_idNoOptional: 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_sizeYes
happening_idNoOptional: 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_nameYes
customer_emailYes
customer_phoneNo
allergy_consentNoRequired 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_slugYes
allergy_dish_idsNoOptional, 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_idNoOptional: 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_preferenceNoOptional: 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

NameRequiredDescriptionDefault
tableYes#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)
statusNoPresent when no verification is needed: confirmed, or pending = awaits the restaurant
depositNo#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
messageNo
manage_urlNo
deposit_amountYes#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_idYes
confirmation_codeNo
seating_preferenceYes#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_requiredYesTrue: ask the guest for the emailed 6-digit code and call confirm_reservation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations, it discloses the verification-code flow, already_booked behavior, code_not_sent and invalid_email failures, automatic versus pending confirmation, deposit handling, and cancellation/refund behavior. It also states important agent constraints such as never paying or marking a deposit, which are exactly the behavioral details an agent needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core booking purpose is front-loaded and most clauses carry operational information, but the description is a dense, semicolon-heavy block with repeated deposit instructions and parenthetical detail. It is readable enough to use, but it would benefit from tighter wording and clearer separation of workflow, errors, and payment behavior.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex 17-parameter booking tool with an output schema, the description covers the essential workflow, verification path, failure modes, table/zone constraints, event linkage, and deposit lifecycle. Optional allergy details remain documented in the schema, so the agent has enough context to call this correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 53% schema description coverage, the description meaningfully supplements several parameters: time must come from list_available_slots, coming_for_item_id is only a kitchen signal, seating_preference is kept only when seating.asked, happening_id counts against event capacity, and table_id/zone_id cannot be combined. It still leaves branch and allergy-related parameters largely to the schema, so it is not fully comprehensive.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: "Book a table for a guest." It clearly distinguishes this from related tools such as confirm_reservation, change_reservation, check_availability, and list_available_slots by explaining the booking flow and downstream steps.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives concrete routing guidance: take time from list_available_slots, re-check table choice with check_availability, and use confirm_reservation or change_reservation in the described situations. It stops short of explicitly excluding related flows like modifying or cancelling an existing booking, and does not route no-availability cases to waitlist or alert tools, so it is strong but not exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.