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.

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_reference": "<booking_reference>",
      "guest_email": "<guest_email>"
    },
    "name": "cancel_booking"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNofalse: only quote the cancellation fee; true: cancel, after the traveller agreed.
guest_emailYesGuest email used in the booking.
booking_referenceYesBooking reference returned by book_hotel.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / booking_reference / description
      Added value: +"Booking reference returned by book_hotel."
    • addedInput schema / properties / confirm / description
      Added value: +"false: only quote the cancellation fee; true: cancel, after the traveller agreed."
    • addedInput schema / properties / guest_email / description
      Added value: +"Guest email used in the booking."
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations declare destructiveHint=true and idempotentHint=true, but the description adds the critical safety behavior: the false call is a non-destructive quote, and the actual destructive cancellation must be gated on traveller consent. That is real value beyond the flags. It does not say when the fee is actually charged or whether cancellation is reversible.

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?

Three short sentences, front-loaded with the action and immediately followed by the required call sequence. Every sentence carries an instruction the agent must follow; nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description usefully states that confirm=false returns the cancellation fee, but it does not describe what the confirm=true call returns, whether the fee is charged immediately, or what happens to the booking afterward. For a destructive, money-involving operation this leaves meaningful gaps.

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%, and the confirm parameter already documents its own false/true meaning, so the baseline is 3. The description adds the sequencing context (quote, then confirm after agreement) that the schema alone does not convey, but nothing about booking_reference or guest_email 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?

States a specific verb and resource ("Cancel a booking") that is unmistakable against siblings like book_hotel, get_booking, or search_hotels. It does not explicitly name a sibling it might be confused with, so it stops short of 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 Guidelines4/5

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

Gives an explicit two-step protocol: call with confirm=false first, tell the traveller the fee, then call again with confirm=true only if they agree. That is concrete when-to-use-each-mode guidance. It does not cover prerequisites (auth/guest verification) or when cancellation should be refused.

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.