Skip to main content
Glama

Prepare a certified letter for review

prepare_certified_letter

ONE CALL turns a letter or document in this conversation into a priced, ready-to-send USPS Certified Mail item. Nothing else is needed first: no account, no sign-up, no card, no second call. Piloxa prints the document, puts it in an envelope, pays the postage and hands it to the Postal Service, with USPS tracking and, on request, an Electronic Return Receipt — the electronic record of who signed for it. A one-page letter with the return receipt is $16.17 in total, or $13.18 without it; printing, the envelope and the postage are all included, and a longer letter costs a little more per page. U.S. destinations. WHAT COMES BACK: a link the person opens to see that exact document, the recipient, the service and the exact total, with no sign-in step in the way; they pay on that page, by card, and only then is anything printed or mailed. Give it the document ONE of four ways: (1) letter_text — the COMPLETE final letter you wrote (salutation through closing), laid out as a business letter with the addresses and date from the other fields, and still editable by the person; (2) document_text — the full text of a document that is ALREADY FINISHED and must not be re-formatted as a letter: a document the person supplied, text you read out of a PDF or an attachment, a filled-in form, a notice. It is printed exactly as written, with nothing added — no return address, no date line, no signature block. Use this whenever the document is not a letter you have just composed; (3) document_base64 — the bytes of a finished PDF, only when you can actually read the file (up to 4 MB), kept byte for byte; (4) person_has_pdf: true — the person attaches the PDF themselves on the review page, everything else prefilled. ADDRESSES: the simplest way is recipient_address_block (and sender_address_block) — paste the name and address exactly as they appear in the letter, one part per line, and Piloxa reads them into the right fields; naming the fields yourself always wins over the block. Anything still missing is asked of the person on the review page and does not stop this call. This tool NEVER mails anything and NEVER charges anyone.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cityNo
stateNoTwo-letter U.S. state code.
serviceNoCERTIFIED_ERR adds the Electronic Return Receipt (proof of who signed).
subjectNoThe "Re:" line of the letter, in a few words.
page_countNoOnly with person_has_pdf: number of pages in the PDF the person will attach, used for the price estimate.
letter_dateNoDate to print on the letter, e.g. "September 5, 2026". Defaults to today.
letter_textNoThe complete, final letter body exactly as it should print: salutation, paragraphs separated by blank lines, and closing. Do not include the addresses or date; they are laid out from the other fields. Up to 60,000 characters.
postal_codeNoFive-digit ZIP code.
sender_cityNo
sender_nameNoName of the person sending the letter (printed as the return address and used for the envelope).
sender_stateNoTwo-letter U.S. state code.
address_line1NoStreet address of the recipient.
address_line2NoSuite, unit or floor.
document_textNoThe COMPLETE text of a document that is already finished, printed exactly as written: no return address, no date line, no "Re:" line and no signature block are added, and line breaks and indentation are kept. This is the right field for a document the person gave you, for text you read out of a PDF or an attachment, for a filled-in form or a notice — anything you did not compose as a letter in this conversation. Include every word that must print, the addresses and signature line included if the document carries them. Up to 60,000 characters. Mutually exclusive with letter_text and document_base64.
person_has_pdfNoOnly when the person already has a finished PDF that neither you nor they can give you the text of, and they will attach it on the review page themselves. Set true to prepare without letter_text, document_text or document_base64. Prefer document_text whenever you can read the document at all: it saves the person an upload.
recipient_nameNoName of the person or company receiving the letter.
sender_companyNoSender company or entity, if any.
signature_nameNoName printed under the closing.
document_base64NoThe finished PDF, base64-encoded (standard or URL-safe alphabet), up to 4 MB decoded. Use ONLY when you have read the actual file bytes; a filename or an attachment reference is not a document. Mutually exclusive with letter_text and document_text. The file is kept exactly as sent.
document_sha256NoOptional with document_base64: the SHA-256 (hex) of the PDF bytes. If given and it does not match what arrived, the call is refused rather than preparing the wrong file.
document_filenameNoWith document_base64: the original file name, e.g. "Demand letter.pdf".
recipient_companyNoCompany name, if the letter goes to an organization.
sender_postal_codeNoFive-digit ZIP code.
document_descriptionNoWhat the document is, in a few words.
sender_address_blockNoThe sender exactly as it should appear as the return address, one part per line. Read the same way as recipient_address_block. This is where a returned envelope goes back to.
sender_address_line1NoSender street address.
sender_address_line2No
recipient_address_blockNoThe recipient exactly as addressed in the letter, one part per line, e.g. "Acme Property Management LLC\nAttn: Jane Doe\n1234 Wilshire Blvd, Suite 500\nLos Angeles, CA 90017". Piloxa reads the name, company, street, suite, city, state and ZIP out of it. Use this when you have the address as written and do not want to split it up yourself; any field you also name explicitly wins over it.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
mailedYesAlways false here: this tool never mails.
chargedYesAlways false here: this tool never charges.
serviceNo
recipientNoThe recipient as Piloxa read it, including anything parsed out of recipient_address_block. Check it against the letter and say it back to the person.
page_countNo
approval_urlYesLink the person opens to review, pay and authorize.
document_kindNoWhich way the document arrived, and so what the person will see on the page.
ready_to_mailNoTrue when nothing is missing: the person only has to read it, pay and authorize.
document_sha256NoSHA-256 of the rendered PDF, when document_rendered is true.
estimated_totalNoThe same total, formatted for a person, e.g. "$16.17".
upload_requiredNoTrue when the person still has to attach the PDF on the review page.
account_requiredNoAlways false: the person needs no account to open the link and read the letter, and none is created by this call.
document_receivedNoTrue when document_base64 arrived intact and is the PDF the person will review; false otherwise.
document_renderedNoTrue when letter_text or document_text was laid out into the PDF the person will review; false otherwise.
missing_for_mailingNoWhat is still needed before this can be mailed, in plain words. Empty when nothing is missing. Ask the person for these now.
estimated_total_centsNo
requires_human_approvalYes
estimated_service_fee_centsNo
estimated_provider_cost_centsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Despite annotations only covering the safety profile, the description adds substantial behavioral context: this tool NEVER mails anything and NEVER charges anyone, payment happens only later on the review page by the recipient, and printing/mailing is conditional on that payment. It also discloses the pricing model ($16.17 with ERR, $13.18 without, per-page surcharge) and the exact return artifact (a review link showing document, recipient, service, total). That is well beyond what readOnlyHint=false and destructiveHint=false convey.

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?

It is long, but it is front-loaded with the one-call promise and return value before drilling into input modes and addresses, and nearly every sentence carries operational content. Minor redundancy in restating pricing and the review-page flow, and the pricing detail could arguably be shortened, 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 28-parameter, zero-required tool with a rich output schema, the description covers everything an agent needs: the four mutually exclusive document-input paths, address-block parsing with field precedence, what happens to missing data, the exact return artifact, and the hard constraint that nothing is charged or mailed. Return values are described succinctly even though an output schema exists.

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 description coverage is already 89%, so the schema carries most param documentation. The description still adds genuine meaning: the precedence rule ('naming the fields yourself always wins over the block'), the mutual exclusivity of letter_text/document_text/document_base64, the distinction between a composed letter and an already-finished document, and that page_count only matters with person_has_pdf. It goes beyond the schema rather than repeating it.

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 opening sentence gives a concrete verb and resource: it 'turns a letter or document in this conversation into a priced, ready-to-send USPS Certified Mail item.' The scope (U.S. destinations, review-page payment, never mails) is specific enough that an agent knows exactly what will exist after the call. It never names or contrasts with its sibling quote_certified_letter, so sibling differentiation is left to 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?

It states clearly when nothing else is needed first ('no account, no sign-up, no card, no second call') and gives explicit routing rules among the four document-input modes, including a preference ('Prefer document_text whenever you can read the document at all'). It also explains that missing fields are collected later and do not block the call. The one gap is that it never says when to use the sibling quote_certified_letter instead.

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