Skip to main content
Glama

Cancel a booking

cancel_booking
DestructiveIdempotent

Cancel using a private manage token. Ask the guest for explicit approval first; this sends cancellation notifications.

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": {
      "token": "<token>",
      "confirmed": "<confirmed>"
    },
    "name": "cancel_booking"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYes
reasonNo
confirmedYes

Output Schema

NameRequiredDescriptionDefault
okYes
codeNo
messageNo
nextCursorNo
nextOffsetNo
syncStatusNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the description earns credit for the side effect annotations cannot convey: this triggers cancellation notifications to the guest. The approval requirement adds a meaningful human-in-the-loop gate.

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?

Two tight sentences with no filler; the credential constraint and the approval gate plus side effect are both front-loaded. Nothing could be removed without losing required 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?

An output schema exists, so return values need not be described, and annotations cover the safety profile. The remaining gap is the undocumented reason parameter and the absence of any note on what happens with an expired or invalid token.

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 coverage is 0%, so the description must carry the burden. It explains the token's nature (private manage token) and implies the confirmed flag via 'explicit approval,' but never mentions the optional reason parameter or its 500-character limit, leaving a third of the surface undocumented.

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

Purpose4/5

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

States the specific action (cancel) and the credential model (private manage token), which identifies it as a guest-facing cancellation rather than an admin operation. It does not explicitly contrast with reschedule_booking, so the agent must infer the boundary from the verb.

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?

Gives two concrete preconditions: use the private manage token, and obtain the guest's explicit approval before invoking. It stops short of naming the alternative action (e.g., reschedule_booking) for guests who want to change rather than cancel.

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