Skip to main content
Glama

Cancel a reservation

cancel_reservation
DestructiveIdempotent

Changes: cancels one booked stay; a late-cancel fee the hotel's policy sets is posted to its folio and left for the desk to collect (no card is charged, nothing is waived). Previews first: the first call shows the change and makes nothing. Cancels a booked stay. First call without confirm: a preview (the fee or "no fee", the letter), nothing changes. Not for a stay booked on Expedia or Booking.com: cancel it there. Second step: after the preview, the call with confirm true sends a link to the person's own phone or e-mail; the change is made only when they open it and press Approve. Call again with the same values to learn whether it was made. Needs the owner's sign-in.

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": {
      "confirmation": "<confirmation>",
      "reason": "<reason>"
    },
    "name": "cancel_reservation"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesWhy, in the person's words
confirmNotrue to go ahead with the change shown in the preview
preview_idNopreview_id from the preview
reason_codeNoThe hotel's cancellation reason, when it has a list
confirmationYesThe stay's confirmation number

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well past the annotations: it discloses the late-cancel fee posting to the folio, that no card is charged and nothing is waived, that the first call is a pure preview, and that the real mutation requires the guest to open a link and press Approve. The 'call again to learn whether it was made' note is consistent with idempotentHint=true. This is exactly the operational context annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the key outcome, but the text is visibly redundant: cancellation of 'one booked stay' is stated twice and the preview behavior is explained three times with slightly different wording. Trimming the duplicates would make the two-step flow easier to parse without losing information.

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?

No output schema exists, and the description compensates by describing what the preview returns (the fee or 'no fee', the letter) and what the guest-side approval does. It omits what happens if approval never arrives or whether preview_id expires, which is a minor gap for a destructive two-step mutation.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline would be 3, but the description adds genuine meaning: confirm true is the second-step commit, preview_id comes from the preview, and reason is in the person's own words. The interactions between confirm, preview_id, and the preview step are clearer than the schema alone.

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 ('cancels one booked stay') and immediately scopes it away from OTA bookings ('Not for a stay booked on Expedia or Booking.com'). An agent can distinguish this from change_reservation or reinstate_reservation without opening a 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 explicit when-not guidance for channel-managed stays and a clear two-step procedure (preview, then confirm), plus a follow-up call to check status. It does not name sibling tools such as change_reservation for non-cancellation modifications, which keeps it short of a full 5.

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