Skip to main content
Glama

Cancel a pending transfer request

cancel_transfer_request
DestructiveIdempotent

Use this only when the customer has explicitly asked to cancel their transfer request and you have the booking reference returned by create_transfer_request and the email used for it. Cancels a request that is still pending or assigned, tells the operator (WhatsApp/email) and emails the customer a cancellation notice. Calling it again for an already-cancelled request is harmless and returns cancelled=true without notifying anyone again. Destructive and sends real messages: never call it to explore, to "test", or because the customer is merely unsure or wants to change details. Do not use for a request the operator has already confirmed (it is refused: the customer must contact the operator), for changing time/passengers/vehicle (contact the operator), or for refunds. Use get_request_status to check the current state first if unsure.

Input Schema

NameRequiredDescriptionDefault
reasonNoOptional short reason given by the customer
referenceYesBooking reference, e.g. AT-20260605-0001
customerEmailYesEmail address used when the request was submitted

Output Schema

NameRequiredDescriptionDefault
statusYes
messageYes
cancelledYestrue: the request is cancelled
referenceYes
alreadyCancelledNotrue when it had been cancelled before this call (no new notification sent)
operatorNotifiedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only flag destructive/openWorld/idempotent; the description goes well beyond them by disclosing downstream side effects (operator notified via WhatsApp/email, customer emailed a cancellation notice), the exact idempotency behavior (returns cancelled=true without re-notifying), and the refusal path for operator-confirmed requests.

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?

The preconditions and 'never call it to test/explore' warning are front-loaded, and every sentence carries operational weight. It is dense and a bit long, but no sentence is 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?

Given an output schema exists, return values need no explanation, and the description still covers side effects, idempotency, refusal cases, and the correct fallback tool. An agent has everything needed to invoke it safely.

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%, so the schema already documents reference, customerEmail, and the optional 200-char reason. The description reinforces that customerEmail must be the address used at submission, but adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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+resource (cancels a pending/assigned transfer request) and names the exact prerequisites: the booking reference returned by create_transfer_request plus the submission email. It clearly separates itself from siblings by pointing to create_transfer_request and get_request_status by name.

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?

Explicit when-to-use (customer asked to cancel and you hold the reference/email), explicit when-not (never to explore or test, not for unsure customers, not for confirmed requests, not for changes or refunds), and names the alternative tool to check state first. Nothing is left to inference.

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