Skip to main content
Glama

MenuNode

Confirm an alert with the email code

confirm_availability_alert

Confirm a create_availability_alert with the 6-digit code emailed to the guest. From then on the guest waits for a table in that range, in the order guests confirmed; a newer alert of the same email for the same place and day replaces the older one. Nothing is booked or held. A wrong code fails with otp_invalid; otp_expired or otp_attempts_exhausted means that code can no longer be used (start again with create_availability_alert).

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": {
      "alert_id": "<alert_id>",
      "code": "<code>"
    },
    "name": "confirm_availability_alert"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
alert_idYes

Output Schema

NameRequiredDescriptionDefault
dateYes
activeYes
bookedYesNothing is booked or held: the email only says a time freed up, and the first to book it gets it
messageYes
time_toYes
time_fromYes
party_sizeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the queue-ordering semantics, the replacement rule for a newer alert for the same email/place/day, and the explicit guarantee that nothing is booked or held. It also enumerates the three failure codes and what each implies. The replacement-of-older-alert side effect is a nuance not conveyed by destructiveHint=false, which makes this added context valuable rather than redundant.

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?

Three front-loaded sentences, each carrying real information: what it does, what happens afterwards, and how failures present. The final error-code sentence is dense but every clause is actionable; no filler.

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?

An output schema exists, so return values need not be explained. Given the tool's moderate complexity, the description covers the prerequisite, the post-confirmation state, the no-booking guarantee, and the recovery path for each error, leaving nothing an agent needs in order to call it correctly.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must carry the load. It adds the '6-digit' format constraint for code, which is genuinely useful, but says nothing about where alert_id comes from or what it identifies, leaving one of two parameters to inference.

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?

Names a specific verb (Confirm) and a specific resource (an availability alert created by create_availability_alert), plus the mechanism (the 6-digit code emailed to the guest). An agent can distinguish this from create_availability_alert and from the waitlist/reservation siblings without opening a schema.

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?

Establishes the prerequisite (an alert already created, code in hand) and routes the agent back to create_availability_alert when the code is expired or attempts are exhausted. It does not explicitly contrast with sibling confirmation tools (confirm_waitlist, confirm_reservation), but the trigger condition is clear enough to select correctly.

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.