Skip to main content
Glama

Cancel one of my bookings

cancel_booking
DestructiveIdempotent

Cancels a booking of the signed-in customer. Ask the customer to confirm first. It cancels only when that costs them nothing (an unpaid booking, or a paid one 14+ calendar days ahead, whose prepayment is refunded in full); otherwise it returns cancelled: false and the booking page, where the customer decides.

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

Input Schema

NameRequiredDescriptionDefault
localeNoLanguage of the texts: ru, en or pt (default en).
booking_idYesA booking id from list_my_bookings.

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?

Beyond the annotations (destructiveHint=true, idempotentHint=true), the description discloses the exact business rule governing whether the side effect occurs: free only if unpaid, or paid and 14+ calendar days ahead with full refund. It also discloses the non-obvious non-destructive outcome shape (`cancelled: false` plus the booking page), which is valuable since no output schema exists.

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 and the confirmation prerequisite, then the conditional rule in a compact parenthetical. The clause 'whose prepayment is refunded in full' is slightly dense but carries real decision-relevant meaning, so nothing is clearly wasted.

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 destructive mutation with annotations carrying the safety profile, the description covers the confirmation step, the gating rule, and the failure path. What remains unstated is minor: behavior on an invalid or foreign booking_id, and any auth expectations beyond the implicit 'signed-in customer'.

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% and both parameters are documented in-schema, including the locale enum and the provenance hint for booking_id ('from list_my_bookings'). The description adds no parameter-level meaning of its own, so the baseline of 3 applies.

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?

opens with a specific verb+resource ('Cancels a booking') and scopes it to 'the signed-in customer', which separates it cleanly from read-only siblings like get_booking or list_my_bookings. It stops short of naming any alternative tool, so sibling differentiation is implied by scope 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 Guidelines4/5

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

'Ask the customer to confirm first' is an explicit precondition for invocation, and the description makes clear the tool decides autonomously whether cancellation applies rather than requiring the agent to pre-screen. It does not name alternative tools or state when to avoid calling it (e.g. for other people's bookings), so it falls just short of full when/when-not guidance.

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