Skip to main content
Glama

cancel_booking

DestructiveIdempotent

Cancel an existing room booking by booking ID, with confirmation required before cancellation. Use after listing bookings to free a reserved space.

Instructions

Cancel one of the user's bookings (booking_id from list_my_bookings). Confirm with the user first.

Input Schema

NameRequiredDescriptionDefault
booking_idYes
building_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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 safety profile is covered. The description adds a real behavioral requirement not in the annotations: user confirmation before execution. It does not say whether a cancellation can be undone or what happens to the slot afterwards.

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, front-loaded with the action and the parameter provenance, with no wasted wording. The confirmation instruction is tacked on but still earns its place.

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?

For a destructive, open-world mutation with no output schema, the definition covers the action and confirmation but leaves out the second parameter, post-cancellation outcome, and failure modes. Adequate to call correctly on the happy path, thin on consequences.

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 0%, so the description is the only source of parameter meaning. It usefully explains where booking_id comes from, but building_id is left completely unexplained, so compensation for the coverage gap is only partial.

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 one of the user's bookings') and scopes it to the calling user, which cleanly separates it from book_space and list_my_bookings. An agent can identify the operation without opening the schema.

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 the precondition (get booking_id from list_my_bookings) and a mandatory pre-step ('Confirm with the user first'), so the calling sequence is clear. It stops short of stating when not to cancel or naming alternatives beyond the listing tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.