Skip to main content
Glama

SendForMe

Cancel a letter

cancel_letter
DestructiveIdempotent

Stops a letter that hasn't been printed yet: during the undo window it's always possible and the credit goes back to the balance. Once printing starts it can't be pulled back.

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": {
      "letter_id": "<letter_id>"
    },
    "name": "cancel_letter"
  }
}

Input Schema

NameRequiredDescriptionDefault
letter_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true and idempotentHint=true, so the description's best contribution is the credit-refund behavior and the hard cutoff at print start, which the annotations do not convey. It does not describe permissions or the resulting letter state, so it stops short of full behavioral disclosure.

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?

Two sentences, no filler, with the reversible-window fact placed first and the irreversible cutoff second. Every clause carries decision-relevant 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?

For a one-parameter mutation with no output schema, the description covers the crucial risk information (refund, irreversibility after printing). The remaining gap is the identity/format of the letter_id and the observable result of a successful cancellation.

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 description coverage is 0% and the description never addresses letter_id at all — not its source (e.g., from list_letters or get_letter), format, or what happens with an invalid or already-printed ID. With a single mandatory parameter, one sentence naming it would have closed the gap.

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?

The description states a specific verb and resource ('Stops a letter') and immediately scopes it with the precondition 'that hasn't been printed yet'. It is distinguishable from preview_letter or get_letter by the cancellation framing, though it never names a sibling explicitly.

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?

It gives a clear eligibility window: always possible during the undo window, impossible once printing starts. That is a usable when/when-not rule. It stops short of saying what to do instead after printing begins (e.g., contacting support or using another path).

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