Skip to main content
Glama

send_text_letter

Destructive

Mail a letter written as plain text, for letters composed in chat. mailbox.bot sets the text exactly as given on US Letter pages (Times 12 pt, 1-inch margins; no letterhead, logo or signature image) and submits it through the same outbound mail service, so the same scopes, approval, cost caps and proof apply and staff print and mail it. dry_run: true returns the exact cost without sending; with a live key this spends the account owner's prepaid credits, and a key that requires approval holds the letter until the owner approves it in the dashboard. Requires the current mailbox_md_version. Up to 15,000 characters of Latin text; plain text only, with no PDF, letterhead or images.

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": {
      "letter_text": "<letter_text>",
      "mailbox_md_version": "<mailbox_md_version>",
      "mail_class": "<mail_class>",
      "recipient_line1": "<recipient_line1>",
      "recipient_city": "<recipient_city>",
      "recipient_state": "<recipient_state>",
      "recipient_zip": "<recipient_zip>"
    },
    "name": "send_text_letter"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNotrue returns the exact cost and checks without creating, charging or mailing anything.
metadataNoYour own reference fields, echoed back in status and webhooks.
mail_classYesUSPS: first_class (no carrier tracking; mailbox.bot records photo proof), priority (USPS Tracking), certified (USPS tracking plus proof of mailing and delivery), certified_return_receipt (certified plus electronic return receipt). FedEx: fedex_ground, fedex_express (Express Saver, about 3 business days), fedex_2day, fedex_overnight.
return_zipNoReturn ZIP code.
agent_notesNoNotes for the owner and the facility.
letter_textYesThe full letter as plain text: date, greeting, body and sign-off as they will print. Line breaks are kept.
return_cityNoReturn city.
return_nameNoReturn name. Defaults to the account's saved return address.
return_line1NoReturn street address. Defaults to the account's saved return address.
return_line2NoReturn suite or unit.
return_stateNoReturn state, 2 letters.
recipient_zipYesRecipient ZIP code.
max_cost_centsNoRefuse the letter if it would cost more than this, in cents.
recipient_cityYesRecipient city.
recipient_nameNoRecipient name.
return_companyNoReturn company line.
recipient_line1YesRecipient street address.
recipient_line2NoSuite, unit or floor.
recipient_stateYesRecipient state, 2 letters.
recipient_companyNoRecipient company or organization line.
requires_approvalNotrue holds the letter until the owner approves it in the dashboard.
delivery_signatureNoOptional signature on delivery for a single letter (batch mail has none). FedEx classes: indirect (FedEx Indirect Signature Required, $8.00: someone at the address, a neighbor, or the recipient on a signed door tag); direct (FedEx Direct Signature Required, $8.50: someone at the address); adult (FedEx Adult Signature Required, $11.00: an adult 21 or older at the address, with ID). priority: direct (USPS Signature Confirmation, $5.00: someone at the address); adult (USPS Adult Signature Required, $11.00: an adult 21 or older at the address, with ID). certified and certified_return_receipt: restricted (USPS Restricted Delivery, $10.00: only the addressee, or an agent they authorized in writing). first_class has no signature service. Omit it or send none for no signature. The fee is added to the price and itemized as cost_breakdown.delivery_signature_cents.
mailbox_md_versionYesCurrent MAILBOX.md version number. Required.

Output Schema

NameRequiredDescriptionDefault
resultYesThe outbound send result: status, cost breakdown, human review and next step.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / letter_text / description
      Previous value: -"The full letter as plain text: date, greeting, body and sign-off as they should print. Line breaks are kept."New value: +"The full letter as plain text: date, greeting, body and sign-off as they will print. Line breaks are kept."
    • changedInput schema / properties / mailbox_md_version / description
      Previous value: -"Current MAILBOX.md version from get_mailbox_md. Required."New value: +"Current MAILBOX.md version number. Required."
    • changedOutput schema / properties / result / description
      Previous value: -"The send_outbound_mail result: status, cost breakdown, human review and next step."New value: +"The outbound send result: status, cost breakdown, human review and next step."
  2. Changed1 schema field changed
    • addedInput schema / properties / delivery_signature
      Added value: +{
      +  "description": "Optional signature on delivery for a single letter (batch mail has none). FedEx classes: indirect (FedEx Indirect Signature Required, $8.00: someone at the address, a neighbor, or the recipient on a signed door tag); direct (FedEx Direct Signature Required, $8.50: someone at the address); adult (FedEx Adult Signature Required, $11.00: an adult 21 or older at the address, with ID). priority: direct (USPS Signature Confirmation, $5.00: someone at the address); adult (USPS Adult Signature Required, $11.00: an adult 21 or older at the address, with ID). certified and certified_return_receipt: restricted (USPS Restricted Delivery, $10.00: only the addressee, or an agent they authorized in writing). first_class has no signature service. Omit it or send none for no signature. The fee is added to the price and itemized as cost_breakdown.delivery_signature_cents.",
      +  "enum": [
      +    "none",
      +    "indirect",
      +    "direct",
      +    "adult",
      +    "restricted"
      +  ],
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / mail_class / description
      Previous value: -"USPS: first_class (no carrier tracking; mailbox.bot records photo proof), priority (USPS Tracking), certified (USPS tracking plus proof of mailing and delivery), certified_return_receipt (certified plus electronic return receipt). FedEx: fedex_ground, fedex_express (Express Saver, about 3 business days), fedex_2day, fedex_overnight. UPS: ups_ground, ups_2day (2nd Day Air), ups_next_day (Next Day Air)."New value: +"USPS: first_class (no carrier tracking; mailbox.bot records photo proof), priority (USPS Tracking), certified (USPS tracking plus proof of mailing and delivery), certified_return_receipt (certified plus electronic return receipt). FedEx: fedex_ground, fedex_express (Express Saver, about 3 business days), fedex_2day, fedex_overnight."
    • changedInput schema / properties / mail_class / enum
      Previous value: -[
      -  "first_class",
      -  "priority",
      -  "certified",
      -  "certified_return_receipt",
      -  "fedex_ground",
      -  "fedex_express",
      -  "fedex_2day",
      -  "fedex_overnight",
      -  "ups_ground",
      -  "ups_2day",
      -  "ups_next_day"
      -]New value: +[
      +  "first_class",
      +  "priority",
      +  "certified",
      +  "certified_return_receipt",
      +  "fedex_ground",
      +  "fedex_express",
      +  "fedex_2day",
      +  "fedex_overnight"
      +]
  4. Changed2 schema fields changed
    • changedInput schema / properties / mail_class / description
      Previous value: -"USPS: first_class (no carrier tracking; mailbox.bot records photo proof), priority (USPS Tracking), certified (USPS tracking plus proof of mailing and delivery), certified_return_receipt (certified plus electronic return receipt). FedEx: fedex_ground, fedex_express (Express Saver, about 3 business days), fedex_2day, fedex_overnight."New value: +"USPS: first_class (no carrier tracking; mailbox.bot records photo proof), priority (USPS Tracking), certified (USPS tracking plus proof of mailing and delivery), certified_return_receipt (certified plus electronic return receipt). FedEx: fedex_ground, fedex_express (Express Saver, about 3 business days), fedex_2day, fedex_overnight. UPS: ups_ground, ups_2day (2nd Day Air), ups_next_day (Next Day Air)."
    • changedInput schema / properties / mail_class / enum
      Previous value: -[
      -  "first_class",
      -  "priority",
      -  "certified",
      -  "certified_return_receipt",
      -  "fedex_ground",
      -  "fedex_express",
      -  "fedex_2day",
      -  "fedex_overnight"
      -]New value: +[
      +  "first_class",
      +  "priority",
      +  "certified",
      +  "certified_return_receipt",
      +  "fedex_ground",
      +  "fedex_express",
      +  "fedex_2day",
      +  "fedex_overnight",
      +  "ups_ground",
      +  "ups_2day",
      +  "ups_next_day"
      +]
  5. Added

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only flag destructive, open-world, non-idempotent; the description goes well beyond them by disclosing that it spends the account owner's prepaid credits, that approval keys hold the letter in the dashboard, that real staff print and mail it, that cost caps and proof apply, and that a current mailbox_md_version is required. The 15,000-character Latin-text limit and the exact rendering (Times 12pt, 1-inch margins, no letterhead or signature) are concrete behavioral facts an agent cannot get elsewhere.

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 core action, then progressively adds cost, approval, and format constraints in a single dense paragraph. It is long and somewhat run-on, but nearly every clause carries operational information rather than repetition.

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 23-parameter, high-consequence physical-mailing tool with an output schema, it covers cost, approval, scopes, rendering, and text limits. It omits what happens on retry (the non-idempotent risk of double-mailing) and whether a submitted letter can be cancelled, which the cancel_outbound_mail sibling implies is possible.

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 100%, so the baseline is 3; the description still adds meaning by explaining dry_run's cost-only semantics, the mailbox_md_version requirement, and the cost-cap/fee behavior that the max_cost_cents schema only gestures at. Enum parameter fees and constraints remain in the schema, which is appropriate.

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: mail a letter written as plain text, aimed at letters composed in chat. It implicitly separates itself from the PDF/file-based sibling (send_outbound_mail) by stating 'plain text only, with no PDF, letterhead or images', but never names that alternative, so the agent must infer the routing.

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 usage context: use when the letter is composed in chat, use dry_run: true to price it without sending, and expect a hold when the key requires approval. It does not explicitly exclude or name the alternative tool for file-based letters, leaving that step to inference.

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.