Skip to main content
Glama

MenuNode

Cancel a reservation

cancel_reservation
DestructiveIdempotent

Cancel a reservation on the guest's behalf using its confirmation code. Only pending/confirmed bookings whose time has not come yet can be cancelled; after that it fails with reservation_closed (the guest must call the restaurant). Works even while the restaurant takes no new online reservations.

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": {
      "confirmation_code": "<confirmation_code>"
    },
    "name": "cancel_reservation"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmation_codeYes

Output Schema

NameRequiredDescriptionDefault
statusYes
cancelledYes

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?

Beyond the annotations (destructive, idempotent, not read-only), the description adds real behavioral detail: the eligibility window, the specific failure signal reservation_closed, the fallback the guest must take, and the edge case that cancellation still works when the restaurant is not accepting new online reservations. That is context an agent could not derive from the structured fields.

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

Conciseness5/5

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

Three compact sentences, front-loaded with the action and key, followed by the eligibility rule and the edge case. No repetition of the title or annotations, and each sentence carries distinct information.

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

Completeness4/5

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

For a single-parameter destructive tool with annotations and an output schema, the description covers eligibility, the failure mode, and one important availability edge case. It leaves unstated whether cancellation notifies the restaurant or guest and whether any penalty applies, which would matter for an agent explaining consequences.

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%, and the description only implies that confirmation_code identifies the target reservation. It gives no format, casing, or validation expectations for the code, so meaning added over the bare schema is modest for a single-parameter tool.

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 ('Cancel a reservation') plus the mechanism ('using its confirmation code'). The cancel verb is unambiguously distinct from siblings like change_reservation, confirm_reservation, and create_reservation, so an agent can route correctly without opening another 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?

It clearly bounds when the tool applies: only pending/confirmed bookings whose time has not yet arrived, with the post-deadline path spelled out as a reservation_closed failure. It does not explicitly name a sibling for the modify-instead case (e.g., change_reservation), so usage routing is strong but not complete.

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.