Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Piloxa. If you published it, claim ownership there.

Prepare a batch of Certified Mail letters

prepare_certified_mail_batch
Idempotent

Creates an UNSENT draft of 2 or more separately addressed U.S. letters for USPS Certified Mail (the same notice to several tenants, separate demands to several companies) and returns one review_url. The person signs in there, reads every letter, sees each price and the total, and approves once; each letter is charged only when the printer accepts it. PREPARING IS NOT SENDING: nothing is printed, mailed or charged by this call. Pass either template_text with {{blanks}} filled per mailing from merge_fields and the recipient (recipient_name, city, ...), or letter_text per mailing, not both. Put addresses in recipient_address_block and sender_address_block, not in the letter. Unfilled blanks, incomplete addresses and duplicates are named per mailing in missing_for_mailing; fix them and call again with a new client_request_id. One service per batch. Not for marketing, advertising or unsolicited mail, and not for one letter (use prepare_certified_letter). If the person has a spreadsheet you cannot read, use source "web_import" and give them import_url.

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": {
      "source": "<source>"
    },
    "name": "prepare_certified_mail_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesdirect: the letters and addresses are in this call. web_import: the person uploads a list on piloxa.com.
mailingsNo
batch_nameNo
template_textNoOne letter for every mailing, from the salutation to the closing, with {{blanks}}.
signature_nameNo
default_serviceNoDefaults to CERTIFIED_ERR (with electronic return receipt).
template_subjectNo
client_request_idNoReuse on a retry of the same request: the same draft comes back.
sender_address_blockNoThe return address as written, printed on every envelope.

Output Schema

NameRequiredDescriptionDefault
quoteNo
countsNo
mailedYes
chargedYes
preparedYes
expires_atNo
import_urlNo
review_urlNo
batch_tokenNo
missing_for_mailingNo
requires_human_approvalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say it is non-readonly, non-destructive and idempotent; the description goes well beyond, spelling out the full lifecycle: an unsent draft plus one review_url, per-letter and total pricing shown to the human, charging only when the printer accepts, and the emphatic "PREPARING IS NOT SENDING" guarantee. It also discloses the retry contract (new client_request_id after a fix, same client_request_id returns the same draft) and how validation failures are reported via missing_for_mailing.

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 critical constraint ("PREPARING IS NOT SENDING: nothing is printed, mailed or charged") is front-loaded right after the core action, and every sentence carries operational content. The middle section is dense and could be split into shorter sentences for scanability, but nothing 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?

For a 9-parameter batch mutation with an output schema, the description covers everything an agent needs: action, non-effects, approval flow, template-vs-letter choice, address placement, idempotency, error reporting, and the spreadsheet escape hatch. Return values are left to the output schema, which is appropriate.

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?

With only 56% schema description coverage, the description carries real weight: it explains that template_text and letter_text are mutually exclusive, that {{blanks}} are filled per mailing from merge_fields plus recipient fields, that addresses belong in recipient_address_block and sender_address_block rather than the letter body, and that client_request_id must be new on a corrected retry. Secondary fields such as service, subject, reply_by, signature_name and batch_name are not elaborated, leaving a modest residual gap.

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: "Creates an UNSENT draft of 2 or more separately addressed U.S. letters for USPS Certified Mail," with concrete examples of the use case and an explicit boundary ("one service per batch"). It also names the sibling it is not ("not for one letter (use prepare_certified_letter)"), so an agent can route between the batch and single-letter tools without opening either schema.

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?

Gives explicit when-to-use (same notice to several tenants, separate demands to several companies), when-not (marketing, advertising, unsolicited mail, single letter), and names the alternative for the single-letter case. It also routes a specific edge case: if the person has a spreadsheet you cannot read, use source "web_import" and give them import_url.

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