Skip to main content
Glama

MailmanAPI

Create a mailpiece draft

send_mail
Destructive

Prepare (free): Make a draft letter or postcard. You get the itemized price, page images and approval_url. By default, show the person the draft and send them to approval_url to pay. Keep the full private mail_url to check on it later. Reuse idempotency_key only to retry the same draft. Example: {"product":"letter","service":"certified_err","idempotency_key":"unique-draft-key-001","from":{"organization":"Example Sender","line1":"100 Example St","city":"Philadelphia","state":"PA","zip":"19106"},"to":{"organization":"Example Recipient","line1":"200 Example Ave","city":"Philadelphia","state":"PA","zip":"19106"},"document":{"text":"Hello, this is an example letter."}}

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": {
      "product": "<product>",
      "service": "<service>",
      "from": "<from>",
      "to": "<to>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "send_mail"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
fromYes
optionsNo
productYes
serviceYes
documentNoFor a letter, provide exactly one of text, pdf_base64 or pdf_url. For a postcard, provide front and back with exactly one source each. The front requires a one-page PDF.
idempotency_keyYesUse a unique 16-255 character key and reuse it when retrying.

Output Schema

NameRequiredDescriptionDefault
idYes
toYes
fromYes
modeYes
pagesYes
proofYes
quoteYes
routeYes
stateYes
objectYes
statusYes
optionsYes
paymentYes
productYes
serviceYes
approvalYes
mail_urlYes
timelineYes
next_stepYes
share_urlYes
cancelableYes
created_atYes
record_urlYes
reprint_ofNo
updated_atYes
drafted_viaYes
preview_urlYes
receipt_urlYes
to_as_givenYes
total_centsYes
approval_urlYes
cancel_untilYes
approval_hashYes
address_statusYes
cancel_summaryYes
payment_noticeNo
document_sha256Yes
payment_refusedNo
replacement_urlNo
tracking_numberYes
possible_duplicateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations declare the mutation and open-world profile, but the description adds what those cannot: the call is free, the response carries itemized pricing, page images, an approval_url and a private mail_url that should not be shared, and idempotency keys are scoped to retries. The idempotency guidance is a useful nuance against idempotentHint=false rather than a contradiction, though it could be stated more precisely.

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?

Front-loaded with the verb and the cost qualifier, then the return values, then operational rules, then a worked example. Sentences are dense but purposeful; the example is long yet earns its space for a seven-parameter nested request.

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 complex nested request with an output schema and annotations present, the description covers cost, outputs, the human-approval handoff, URL privacy and retry semantics. Remaining gaps are the options object and any prerequisite like address verification, which an agent might need to call correctly on the first attempt.

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 only 29%, but a full example request illustrates product, service, idempotency_key, from, to and document.text in a usable combination. The options object (size, color, duplex) is never mentioned in the description, and the example does not convey postcard front/back requirements beyond what the schema already says.

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?

States a specific verb and resource: "Make a draft letter or postcard," and clarifies that it is a preparation step that returns price, images and an approval_url. The draft-vs-pay split implicitly separates it from approve_mail, but no sibling (e.g. quote_mail) is named explicitly, so differentiation relies on inference.

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 concrete workflow direction: show the user the draft, send them to approval_url to pay, keep mail_url, and reuse idempotency_key only when retrying the same draft. It does not state when to prefer a quote-only or address-verification path, so exclusions against related tools are absent.

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