Skip to main content
Glama

Cancel booking

cancel_booking
Destructive

Cancel a booking and notify its attendees. Cannot be undone. Two steps: the first call returns CONFIRMATION_REQUIRED with a confirmToken; show the user which booking will be cancelled, then call again with the SAME arguments plus confirmToken.

Input Schema

NameRequiredDescriptionDefault
bookingUidYesBooking UID (a string like '2NtaeaVcKfpmSZ4CthFdfk'), as returned by list_bookings or create_booking.
confirmTokenNoLeave empty on the first call. Then pass the token from the CONFIRMATION_REQUIRED answer.
cancellationReasonNoWhy the booking is cancelled; shown to attendees.
cancelSubsequentBookingsNoRecurring bookings only: also cancel every later occurrence.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Adds real behavioral context beyond annotations: the action is irreversible ('Cannot be undone'), has an attendee-notification side effect, and requires a two-step confirmation handshake with a token. These are exactly the traits an agent needs and they go beyond destructiveHint/idempotentHint.

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 sentences, front-loaded with the action and irreversibility, then the critical two-step protocol. Every clause carries information; nothing is redundant or padding.

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 still explains the CONFIRMATION_REQUIRED response and confirmToken round trip, and covers the destructive, irreversible nature of the call. An agent has everything needed to invoke it correctly.

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 100%, so all four parameters are already documented in the schema, including confirmToken's first-call/second-call usage. The description reinforces the confirmToken flow but adds no semantics the schema lacks, so the baseline of 3 applies.

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?

States a specific verb and resource ('Cancel a booking') plus the side effect ('notify its attendees'). It is naturally distinct from siblings like reschedule_booking and get_booking, so an agent can select it without ambiguity.

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 explicit operational guidance for the two-step flow: first call returns CONFIRMATION_REQUIRED, show the user the affected booking, then re-call with the same arguments plus confirmToken. It does not contrast with alternatives such as reschedule_booking, but the confirmation protocol is fully specified.

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