Skip to main content
Glama

Cancel a booking

cancel_booking
DestructiveIdempotent

Cancel one of the signed-in person's own bookings, by its id from list_my_bookings, under the club's cancellation policy. Confirm with the person first, telling them what list_my_bookings' cancelNow says it refunds or still owes. The answer says what was refunded, if anything.

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

Input Schema

NameRequiredDescriptionDefault
bookingIdYesThe booking’s `id` from list_my_bookings.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations declare destructiveHint=true and idempotentHint=true, so the safety profile is already conveyed. The description adds genuinely new behavior: cancellation is governed by the club's policy and the result reports what was refunded, if anything. It does not disclose failure modes (policy-blocked cancellation, partial refunds, irreversibility beyond the word 'cancel').

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 scope, then the confirm-first requirement, then the return information. No filler or repetition.

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 one-parameter destructive mutation with no output schema, the description covers scope, the id source, human confirmation, and the shape of the answer. What's missing is what happens when the policy disallows the cancellation or the booking is already cancelled.

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 single bookingId is already documented as the `id` from list_my_bookings, which the description merely echoes. No additional syntax or format meaning is contributed beyond the schema.

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"), constrains scope to "the signed-in person's own bookings," and names the authoritative source of the identifier (list_my_bookings). An agent can distinguish it from book_* and leave_waitlist siblings immediately.

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 a clear precondition/sequence: fetch the id from list_my_bookings, then confirm with the person, relaying cancelNow's refund/owed figures before cancelling. It stops short of explicit when-not guidance (e.g., what to do for waitlisted entries or when the policy forbids cancellation), leaving that to inference.

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