Skip to main content
Glama

mailer

Print and mail a letter

send_letter
DestructiveIdempotent

Print and mail one envelope (up to 5 A4 pages, black and white) to a Canadian address. IRREVERSIBLE once printed: confirm the recipient and content with the human first unless they pre-authorized it. With a live key the price is debited from credit before anything is created; with a sandbox key nothing is mailed or charged. Retrying with the same idempotency_key returns the original letter and never charges twice.

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": {
      "pdf_base64": "<pdf_base64>",
      "to": "<to>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "send_letter"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesCanadian destination. address_line1 is the recipient name and street line as it should appear on the envelope.
pdf_base64YesThe letter as an A4 PDF, base64. Max 5 pages, about 3 MB.
document_nameNo
service_levelNostandard
return_addressNoOptional. Printed top-left. Default: 157 Adelaide Street West, Suite 242
idempotency_keyYesUnique per letter; reuse when retrying the same letter.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint/idempotentHint/openWorldHint=true, yet the description still adds real substance: irreversibility once printed, the human-confirmation requirement, charge timing for live vs sandbox keys, and that a repeated idempotency_key returns the original letter without double-charging. That is exactly the pre-flight behavior an agent needs for an irreversible external side effect.

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?

Three sentences, front-loaded with what the tool does, then the risk warning, then billing/idempotency behavior. No filler and no repetition of schema or annotation content.

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 an irreversible, money-spending mutation with no output schema, it covers cost timing, sandbox behavior, and retry safety well. It omits what the call returns (letter identifier), expected production/delivery timing, and any price expectations, which an agent would want before confirming with a human.

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 67%, and the description compensates for the main gaps by explaining the 5-page/black-and-white limit on pdf_base64, the Canadian constraint on 'to', and the retry semantics of idempotency_key. service_level, return_address and document_name are left entirely to the schema.

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 ('print and mail one envelope') plus tight scope qualifiers: one envelope, up to 5 A4 pages, black and white, Canadian address. An agent can immediately tell this creates a physical mail piece rather than querying one (get_letter, list_letters).

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 clear use conditions: one envelope, Canadian destination, human confirmation required unless pre-authorized, and reuse of idempotency_key on retry. It does not explicitly route the agent to siblings (e.g., get_pricing before charging, get_letter to check status), so the alternative-selection guidance is implied rather than stated.

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