Skip to main content
Glama

Cancel a booking

cancel_booking
Destructive

IRREVERSIBLE: Cancel a booking

Cancels a booking in the calendar of the integration. The optional reason is handed to the calendar provider, which may show it to the attendee.

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": {
      "id": "<id>",
      "bookingId": "<bookingId>"
    },
    "name": "cancel_booking"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesIdentifier of the calendar integration.
bodyNoOptional `reason`, at most 500 characters. An empty object or no body cancels without a reason.
confirmNoLeave out on the first call. EchoCall then answers with a confirmation value. Ask the user for a clear yes, then repeat the call with the same arguments and this value.
bookingIdYesThe `id` of the booking as GET /integrations/bookings returns it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, but the description goes further by capitalizing IRREVERSIBLE and disclosing that the reason string is passed to the calendar provider and may be shown to the attendee — a real external side effect not visible in structured fields. It stops short of saying whether the attendee is notified or whether recurring series are affected.

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 short sentences plus a warning label, with the most important fact (irreversibility) front-loaded in the title line. Nothing is redundant with the schema and no sentence could be cut without losing 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 destructive, four-parameter tool with a nested body and no output schema, the description covers the safety-critical and side-effect information well. It leaves unstated whether the attendee receives a cancellation notice and how recurring bookings behave, which are the remaining gaps.

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 100%, so baseline is 3, and the description earns an extra point by explaining the downstream fate of the optional reason (handed to the provider, potentially shown to the attendee), which the schema only describes in terms of length limits.

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 a specific verb and resource (cancel a booking) in the very first line, so the agent knows exactly what it does. It does not differentiate itself from near siblings like decline_booking or confirm_booking, which is the only thing keeping it from a 5.

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

Usage Guidelines3/5

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

Usage is only implied by the destructive framing; the description never says when to prefer this over decline_booking or what prerequisites (e.g., a confirmed booking) apply. The two-step confirm flow is documented in the schema rather than here, so the description adds no routing guidance of its own.

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.