Skip to main content
Glama

Cancel booking

cancel_booking
Destructive

Cancels a booking. The time is free again at once. The calendar event is removed, and both sides get an email, with the reason if you give one. A paid booking is refunded, less the host's late cancellation fee when it is cancelled inside the cutoff of its cancelPolicy. A booking that saved a card for that fee is charged the fee then. The person who booked gets an email that says what was refunded or charged. With the host's own API key or assistant, it acts as the host, and a paid booking also needs charge_fees. Without it, the answer is forbidden, with error.detail.reason not_allowed_by_host. You cannot undo it, so confirm with your user first. busy means the host's calendar is taking another change and nothing changed: try again after error.detail.retryAfterSeconds.

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

Input Schema

NameRequiredDescriptionDefault
reasonNoWhy, in one sentence. The other side sees it.
manage_tokenYesThe booking's manageToken, which book returns, or its manage link …/b/{token}.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, idempotentHint=false and openWorldHint=true, yet the description still adds substantial context: the slot is freed immediately, the calendar event is removed, both parties are emailed, refunds are net of the host's late fee inside the cancelPolicy cutoff, a saved card may be charged, and charge_fees is required for paid bookings under the host's own key. It also documents two concrete failure modes (forbidden with error.detail.reason not_allowed_by_host, and busy with error.detail.retryAfterSeconds), which is exactly the behavioral detail annotations cannot carry.

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?

Front-loaded with the action, then side effects, then permission model, then irreversibility warning and error recovery, which is a sensible progression. It is dense and close to the limit of a single paragraph, but nearly every sentence contributes a distinct operational fact.

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?

For a destructive, non-idempotent, open-world mutation with only two parameters and no output schema, the description covers outcomes, financial consequences, authorization requirements, irreversibility, and retry semantics. An agent has enough to call it correctly and to warn the user beforehand.

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 the baseline is 3, but the description adds real meaning: it explains that reason is transmitted to the counterparty and that the act-as-host behavior depends on whose API key is used. manage_token semantics are already fully documented in the schema, so no further compensation is needed.

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 opening sentence gives a specific verb and resource ("Cancels a booking") and the rest of the text scopes it to a single booking, implicitly distinguishing it from the sibling cancel_series. It never names a sibling outright, so the differentiation is inferred rather than stated.

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 implied rather than spelled out: "You cannot undo it, so confirm with your user first" gives a clear procedural precondition, and the forbidden/busy error text tells the agent what to do on failure. However, it never says when to prefer this over cancel_series or reschedule_booking, leaving the alternative-selection decision to the agent.

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