Skip to main content
Glama

Cancel a reservation request

cancel_reservation
DestructiveIdempotent

Cancel a reservation using the 6-character confirmation code the GUEST received by email/SMS (the code is the authorisation; ask the guest for it — this tool never issues or reveals codes). Thin wrapper over the venue's own cancellation endpoint, which answers uniformly: status is "cancelled" or "noop" (unknown code · already cancelled · seated/completed · less than 30 minutes away — it does not say which). Only report a cancellation to the guest when cancelled is true. PUBLIC tool, no auth.

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (idempotent, destructive, non-readonly), it discloses the response contract: a uniform `status` of cancelled or noop, the fact that noop does not reveal why, and the practical consequence that reporting cancellation prematurely is an error. It also states the tool is a thin wrapper over an external venue endpoint and requires no auth, which an agent could not infer from 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.

Conciseness4/5

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

The purpose is front-loaded and every sentence contributes operational detail. The middle sentence stacks parentheticals and dot-separated clauses about the noop reasons, which is information-dense but reads as a run-on; slight restructuring would improve it.

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?

With no output schema, the description supplies the return semantics itself (status, cancelled) and explains the guard condition for agent behavior. For a one-parameter, no-auth tool with annotations covering the safety profile, nothing material is missing.

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

Parameters5/5

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

Schema coverage is 0% and the single property has no description, so the description carries the full burden and does: it explains the code is 6 characters, arrives by email/SMS, originates with the guest, and functions as the authorization. Minor tension: the schema allows 6–12 characters while the text says 6-character, which could confuse an agent handling a longer code.

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 first clause names a specific verb (Cancel) and resource (a reservation), plus the exact input needed (6-character confirmation code). It also distinguishes scope from nearby siblings by calling itself a public, guest-facing, no-auth tool and flagging it as a thin wrapper rather than the venue's own system.

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 pre-call guidance — obtain the code from the guest, the tool never issues or reveals codes — and post-call guidance ('Only report a cancellation to the guest when `cancelled` is true'). It stops short of comparing itself to any sibling, e.g. cancel_order or reservation_summary, so an agent must infer the boundary from the resource name.

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.

Resources