Skip to main content
Glama

Cancel a booking before hotel confirmation

cancel_booking_session
DestructiveIdempotent

SENSITIVE WRITE. Withdraws a booking before the hotel confirms it (the advisor is told). Confirmed reservations are cancelled with the hotel under its cancellation policy, through the advisor.

Input Schema

NameRequiredDescriptionDefault
session_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already flag destructive and open-world, but the description adds real value beyond them: the advisor gets notified and confirmed reservations are handled under the hotel's cancellation policy rather than simply voided. It doesn't say what happens to the session record afterward or how failures surface.

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?

The critical warning 'SENSITIVE WRITE' is front-loaded, and all three sentences carry distinct information: severity, scope of the pre-confirmation case, and the confirmed-reservation fallback. No filler.

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 one-parameter destructive mutation with no output schema, the description covers consequences and the advisor side effect reasonably well. The key gap is parameter meaning and any indication of what state the booking session is left in, which an agent needs before calling a destructive tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the single required parameter session_id is never explained — the description doesn't say it is a booking-session ID or where to obtain it (e.g., from get_booking_session or create_booking_session). With no annotation or schema help here, the description should compensate and does not.

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 (withdraws a booking) plus a temporal scope condition (before the hotel confirms it) that separates it from the sibling cancel_booking for confirmed reservations. It never names cancel_booking explicitly, so the differentiation must be inferred.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The 'before the hotel confirms it' clause implies when to use it, and the second sentence sketches the alternative path for confirmed reservations. But it doesn't name the alternative tool or state an exclusion directly, leaving the agent to map 'confirmed reservations ... through the advisor' to cancel_booking.

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