Skip to main content
Glama

cancel_booking

Cancel an existing booking. Requires the booking_id and the guest_email it was originally booked under (acts as a lightweight ownership proof). Refused with agent_paused if the host has paused scheduling by outside agents. Sends a cancellation email to the guest and cleans up the host's calendar event.

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": {
      "booking_id": "<booking_id>",
      "guest_email": "<guest_email>"
    },
    "name": "cancel_booking"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoOptional short reason shown to the host.
booking_idYesThe booking_id returned by create_booking.
guest_emailYesThe guest_email the booking was made under. Must match exactly.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the ownership-proof requirement, a specific refusal mode (agent_paused when the host blocks outside agents), and two side effects (cancellation email to guest, calendar event cleanup). It stops short of stating whether cancellation is reversible, what happens to payments/refunds, or what a success response looks like.

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?

Four tight sentences, front-loaded with the action, then preconditions, then failure mode, then side effects. No filler, and each sentence adds a distinct operational fact.

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 mutation tool with no annotations and no output schema, the description covers preconditions, an error path, and post-call side effects well. The remaining gap is the return/confirmation contract and any refund or irreversibility policy, which an agent would want before committing to a destructive call.

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 100%, so the baseline is 3; the schema already documents all three parameters including 'must match exactly'. The description adds the interpretive frame that guest_email functions as a lightweight ownership proof, but no format or syntax detail beyond the schema.

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?

The first sentence names a specific verb and resource ('Cancel an existing booking'), and the ownership-proof requirement implies this is the host/agent-side cancellation path rather than a guest self-service one. It never explicitly contrasts itself with the sibling cancel_my_booking, so differentiation is left partly to inference.

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?

Preconditions are stated (needs booking_id plus the exact guest_email it was booked under) which implies when the tool is callable, but there is no explicit when-to-use vs when-not guidance and no reference to alternatives such as cancel_my_booking or reschedule_booking.

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