Skip to main content
Glama

FlyBest AI Travel — Luxury Hotels with Perks

Cancel my booking

cancel_my_trip
DestructiveIdempotent

Cancels one of the connected user's own bookings, by the number shown in my_trips. Two steps: the first call returns the cancellation terms accepted at booking and cancels nothing; a second call with confirm=true within 30 minutes of that preview performs the cancellation. When those terms carry a penalty or are non-refundable, the cancellation also needs accept_penalty=true, which records that the traveller accepted the charge. Not reversible.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tripYesnumber from my_trips
confirmYessecond step: cancels when the terms were previewed within the last 30 minutes; otherwise the call returns the preview
accept_penaltyNorecords that the traveller accepted the penalty shown in the preview; required when the terms carry a penalty or are non-refundable

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / accept_penalty / description
      Previous value: -"true only when the traveller explicitly accepted the penalty the preview showed"New value: +"records that the traveller accepted the penalty shown in the preview; required when the terms carry a penalty or are non-refundable"
    • changedInput schema / properties / confirm / description
      Previous value: -"true only after the preview was shown to the traveller and they confirmed"New value: +"second step: cancels when the terms were previewed within the last 30 minutes; otherwise the call returns the preview"
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds substantive behavior beyond them: the first call is a non-mutating preview, the second must occur within 30 minutes, and penalty acceptance is recorded. 'Not reversible' partly restates destructiveHint, capping it below a 5.

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?

Three tightly packed sentences, front-loaded with the action and identifier, then the protocol, then the penalty condition. No filler, though the density is high enough that it reads as more than strictly necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, yet the description explains what the first call returns (the accepted cancellation terms) and what triggers actual cancellation. For a destructive, multi-step tool this covers everything an agent needs to call it safely.

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 three parameters are already documented (baseline 3). The description adds workflow meaning by linking confirm to the 30-minute preview window and accept_penalty to the previewed terms, which is more than the schema alone conveys.

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 of the connected user's own bookings') and ties the identifier to the sibling my_trips, so an agent can distinguish it from my_trip/my_trips immediately.

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

Usage Guidelines5/5

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

Explicitly describes the required two-step flow, the 30-minute window for confirm=true, and the conditional need for accept_penalty=true when terms carry a penalty or are non-refundable. Conditions for correct invocation are fully specified.

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