Skip to main content
Glama

Cancel booking

cancel_booking
DestructiveIdempotent

Cancel a booking. First call with confirm=false to get the cancellation fee, tell the traveller, and only if they agree call again with confirm=true.

Input Schema

NameRequiredDescriptionDefault
confirmNo
guest_emailYes
booking_referenceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/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 mutation profile is covered. The description adds genuinely new behavior: the dry-run-first protocol and the obligation to disclose the cancellation fee to the traveller before committing. It does not state whether cancellation is reversible or what happens to non-refundable bookings.

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, zero filler, and the ordering instruction is front-loaded so the agent reads the safe path first. Nothing could be removed without losing meaning.

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?

With no output schema, the description usefully explains that confirm=false returns a fee, but is silent on what confirm=true returns (confirmation record, refund timing) and on failure modes such as an already-cancelled or non-cancellable booking. Adequate for a 3-parameter tool but not exhaustive.

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 description coverage is 0%, so the description must carry the load, and it does for the one non-obvious parameter: confirm=false is a fee quote, confirm=true executes. booking_reference and guest_email are left to their self-evident names with no format hints or examples, which is the only remaining gap.

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?

"Cancel a booking" gives a specific verb plus resource that no sibling shares (book_hotel, get_booking, search_hotels are all distinct actions). It does not explicitly contrast itself with get_booking for agents who may only want booking details, but the action is unambiguous.

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?

The description prescribes an explicit two-step procedure: first call with confirm=false to obtain the fee, then only re-call with confirm=true once the traveller agrees. This is strong when-to-use guidance for the confirm flag, though it names no alternative tool or condition under which cancellation should be avoided.

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