Skip to main content
Glama

Get cancellation terms

anywayr_quote_cancellation
Idempotent

Asks the supplier what cancelling one booking would refund right now. Shows the refund, whether it is the full amount paid, and the next step: confirm in chat (full refunds only, with the cancel permission) or a link where the traveller confirms on Anywayr. Cancels nothing; tell the traveller the refund before any confirmation. Effects: Asks the supplier for a cancellation quote (for flights, a pending airline cancellation that expires unused). No money moves.

Input Schema

NameRequiredDescriptionDefault
booking_refYesAnywayr booking reference (starts with bkg_), as returned by anywayr_list_bookings or a completed booking.
request_keyYesAny unique string of 16-128 characters you generate (letters, digits and . _ : -). Reuse the same key only to retry the exact same request.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false; the description explains exactly why the read is not side-effect free — for flights it opens 'a pending airline cancellation that expires unused' — and reassures that 'No money moves.' It also discloses the cancel-permission requirement for full-refund confirmations, context the annotations cannot convey.

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?

Roughly four sentences, purpose front-loaded, then next-step, then a labeled 'Effects:' clause. Every sentence carries distinct information — scope, follow-up path, and side-effect profile — with no repetition or filler.

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?

With no output schema, the description still tells the agent what the quote returns (refund amount, whether it is the full amount paid, and the confirmation path). Combined with the side-effect disclosure, an agent has everything needed to call it correctly and act on the result.

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 description coverage is 100%, and the schema already documents both booking_ref (format bkg_) and request_key (idempotency/reuse semantics). The description adds no parameter-level detail, which is acceptable at full coverage; baseline 3.

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?

The first sentence names a specific action (ask the supplier what cancelling one booking would refund) and the resource (a single booking's cancellation terms). It clearly distinguishes itself from anywayr_confirm_cancellation by stating it 'Cancels nothing.' An agent can route correctly 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?

The description establishes the flow context ('the next step: confirm in chat... or a link') and an operating rule ('tell the traveller the refund before any confirmation'). It stops short of explicitly naming anywayr_confirm_cancellation as the follow-up call, but the sequencing is clear enough that the agent knows when this tool fits.

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