Skip to main content
Glama

MenuNode

Ask to be told if a table frees up

create_availability_alert

When 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

NameRequiredDescriptionDefault
dateYesYYYY-MM-DD
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.
time_toYesHH:MM, the latest time the guest would take (not before time_from)
languageNoLanguage of the emails (default: the restaurant's)
time_fromYesHH:MM, the earliest time the guest would take
party_sizeYes
customer_nameYes
customer_emailYes
restaurant_slugYes

Output Schema

NameRequiredDescriptionDefault
activeYesNot waiting yet: confirm_availability_alert with the emailed code first
messageYes
alert_idYes
verification_requiredYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false and idempotentHint=false, which is consistent with a non-destructive record creation. The description goes well beyond that: it discloses the two-step code-verification flow (6-digit code emailed, then confirm_availability_alert), the first-come-first-served email ordering, automatic expiry at end of day, and four named error codes (feature_off, has_room, nothing_to_wait_for, day_closed, plus code_not_sent/invalid_email). Its only shortfall is that it leaves the "same switches as create_reservation" clause as a cross-reference rather than stating those behaviors directly.

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

Conciseness4/5

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

The trigger condition and the request payload are front-loaded, then the failure modes, then the confirmation workflow — a sensible order. It is a single dense paragraph of roughly 150 words; the marginal clauses ("whoever books first gets it", "only at the guest's explicit request") carry real policy weight, so little is genuinely wasted, though breaking the error codes into their own sentence would aid scanning.

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 9-parameter, multi-step tool with an output schema (so return values need no explanation), the description covers the trigger, the call contract, the confirmation handshake, the resulting guest-facing behavior, and the notable failure paths. An agent has everything needed to invoke it correctly and to explain the outcome to the guest.

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?

Schema coverage is 56%, and the description compensates meaningfully: it defines time_from..time_to as HH:MM, both endpoints included, both representing times the guest would accept, and ties date, party size, name and email into the guest's intent. It does not spell out the branch and language parameters, deferring them to "the same switches as create_reservation", which requires consulting another tool definition.

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 states a specific verb and resource — ask the restaurant to email the guest if a table frees up — and names the exact precondition (check_availability or list_available_slots returning "full" for every acceptable time). It explicitly distinguishes itself from create_reservation ("This does NOT book or hold anything") and from confirm_availability_alert, so an agent can route correctly without opening any schema.

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

Usage Guidelines5/5

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

It gives when-to-use (guest's day is full), when-not-to-use with a named alternative (has_room → book it with create_reservation instead; nothing_to_wait_for → suggest another day or the contact from get_restaurant_info), and a consent precondition ("Only at the guest's explicit request, with their own email"). Nothing is left to inference.

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.