Skip to main content
Glama

Create mail order

create_mail_order

Use when someone wants postcards or letters printed and mailed, to one person or many. Creates an unpaid order with one piece per item, each to a single recipient: a postcard of a photo with an optional note, or a letter from text or a PDF, in black and white or colour and, within the US, as certified mail. Returns a link where the person reviews every piece and address and pays; it never charges money or mails anything. Mailed from the US: 4×6 postcards to 194 countries, 6×9 postcards within the US.

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": {
      "items": "<items>"
    },
    "name": "create_mail_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoImages or PDFs uploaded or generated in this conversation, with download_url and file_id filled in by the host. Items point to them with photo_file or pdf_file.
itemsYesUp to 50 pieces of mail, each to one recipient. A postcard takes one of photo_file, photo_url or photo_base64. A letter takes one of content, pdf_file, pdf_url or pdf_base64; a PDF must be US Letter portrait, at most 11 pages, and prints after a page added for the address.
challengeNoThe id of a challenge this tool answered with, and the answers to its four questions in the order asked, each a short string. The proof-of-work question takes a few million SHA-256 hashes.
order_urlNoThe link of an unpaid order this tool returned earlier. The new items are added to it instead of starting a new order.

Output Schema

NameRequiredDescriptionDefault
urlYesThe link the person opens to review every piece, fix addresses and pay. It expires after about a week.
totalNoThe order's total, postage included.
piecesNo
statusNodraft or pending_payment until the person pays; paid while printing; mailed once every piece is with USPS; failed if any piece couldn't be mailed.
continue_urlYesThe same link as url, for agents that carry checkout on in a browser.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the key contract: the order is created unpaid, the tool never charges money or mails anything, and a review/pay link is returned. It also states mailing coverage (4x6 to 194 countries, 6x9 US only) and that certified mail is US only, which materially shapes when the agent should call it.

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 trigger condition is front-loaded and the four sentences each carry weight, with no filler or restated title. The middle sentence is dense, packing format options and postage limits into one long clause, but the structure remains scannable.

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 nested, open-world tool with a fairly complex schema, the description covers the essential contract: unpaid order, review-and-pay link, no charge, and postal reach. Two gaps remain: the challenge/answers proof-of-work requirement and the ability to append items to a prior order via order_url are undocumented, and those are the likeliest sources of a failed call.

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 explains size, service, printing, recipient, and file-position parameters, so the baseline applies. The description restates the one-piece-per-recipient rule and the postcard/letter source alternatives but adds no meaning beyond the schema and never touches the challenge proof-of-work or order_url append parameters, which are the least obvious inputs.

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?

Starts with a specific verb-and-resource framing: "Use when someone wants postcards or letters printed and mailed," and states that it "Creates an unpaid order" with one piece per item. The two supported item kinds (photo postcard, letter from text or PDF) are named concretely. It never names the get_mail_order sibling, so the create-vs-retrieve distinction is left to be inferred from phrasing rather than stated.

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?

Opens with an explicit trigger condition ("Use when someone wants postcards or letters printed and mailed, to one person or many") and the geographic/format limits on posting are spelled out. It gives no exclusions or named alternatives and doesn't mention the append-to-existing-order path via order_url, which is the closest thing to an alternative mode.

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.