Skip to main content
Glama

Send letter (charges credit)

send_letter
Destructive

Use this when the user has explicitly confirmed a specific draft letter (recipient, content and total price) and wants it printed and posted. Pays the letter from the user's prepaid credit and releases it to print; it can be cancelled with cancel_letter only until production starts. Only call this after that confirmation and after the user agreed to the Terms (https://printandmailcompany.com/en/legal/terms) and to printing starting immediately (which ends the consumer right of withdrawal once printed). If credit is too low, the result contains a payment link for the user; the assistant cannot pay. A US Letter PDF to a recipient outside the US, Canada and US territories needs paper_size (ask the user: shrink to A4, recommended, or keep US Letter; same price); without it the call fails with PAPER_CHOICE_REQUIRED and nothing is charged. While the account has no sender details (the user's REAL full name, no alias, and postal address) the call fails with SENDER_DETAILS_REQUIRED and nothing is charged: ask the user for them and call send_letter again with them as sender (saved to the account before paying; once the account has them, the saved details are used). Posts paper letters only: no email, fax or parcels. Needs the user's account.

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_id": "<letter_id>",
      "confirm": "<confirm>",
      "user_accepted_terms": "<user_accepted_terms>"
    },
    "name": "send_letter"
  }
}

Input Schema

NameRequiredDescriptionDefault
senderNoThe user's own sender details: their REAL full name (first and last name, not an alias, nickname or pseudonym) and postal address, any country. Optional: needed only while the account has no sender details yet (SENDER_DETAILS_REQUIRED); they are then checked and saved to the account before paying. Once the account has them, the saved details are used and this is not saved (the user changes them in Settings → Your details). The user's saved sender details (name and postal address) are printed at the top left of the envelope after "Sent on behalf of:" (their company name and business address instead, if the account has business details); undeliverable letters are returned to that address.
confirmYesMust be true: the user explicitly confirmed sending this letter (recipient, content and total price).
letter_idYesletter_id of the draft the user confirmed, from create_letter or compose_letter, e.g. ltr_8f3k2m9q4x7v1c6b0n5p. Sending charges its total to the user's prepaid credit.
paper_sizeNoThe user's choice for a US Letter PDF to a recipient outside the US, Canada and US territories: "a4" = shrink to A4 (recommended), "us_letter" = keep US Letter. Same price. Saved on the draft before paying; ignored for other letters. No default: omit unless the user has chosen.
user_accepted_termsYesMust be true: the user agreed to the Terms and to the immediate start of printing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / sender / description
      Previous value: -"The user's own sender details: their REAL full name (first and last name, not an alias, nickname or pseudonym) and postal address, any country. Optional: needed only while the account has no sender details yet (SENDER_DETAILS_REQUIRED); they are then checked and saved to the account before paying. Once the account has them, the saved details are used and this is not saved (the user changes them in Settings → Your details). The user's saved sender details (name and postal address) are printed on the back of the envelope as the sender (their company name and business address instead, if the account has business details)."New value: +"The user's own sender details: their REAL full name (first and last name, not an alias, nickname or pseudonym) and postal address, any country. Optional: needed only while the account has no sender details yet (SENDER_DETAILS_REQUIRED); they are then checked and saved to the account before paying. Once the account has them, the saved details are used and this is not saved (the user changes them in Settings → Your details). The user's saved sender details (name and postal address) are printed at the top left of the envelope after \"Sent on behalf of:\" (their company name and business address instead, if the account has business details); undeliverable letters are returned to that address."
  2. Changed1 schema field changed
    • changedInput schema / properties / sender / description
      Previous value: -"The user's own sender details: their REAL full name (first and last name, not an alias, nickname or pseudonym) and postal address, any country. Optional: needed only while the account has no sender details yet (SENDER_DETAILS_REQUIRED); they are then checked and saved to the account before paying. Once the account has them, the saved details are used and this is not saved (the user changes them in Settings → Your details)."New value: +"The user's own sender details: their REAL full name (first and last name, not an alias, nickname or pseudonym) and postal address, any country. Optional: needed only while the account has no sender details yet (SENDER_DETAILS_REQUIRED); they are then checked and saved to the account before paying. Once the account has them, the saved details are used and this is not saved (the user changes them in Settings → Your details). The user's saved sender details (name and postal address) are printed on the back of the envelope as the sender (their company name and business address instead, if the account has business details)."
  3. Changed1 schema field changed
    • changedInput schema / properties / sender / description
      Previous value: -"The user's own sender details: their REAL full name (first and last name, not an alias, nickname or pseudonym) and postal address, any country. Optional: needed only while the account has no sender details yet (SENDER_DETAILS_REQUIRED); they are then checked and saved to the account before paying, kept on record and never printed on the envelope or in the letter. Once the account has them, the saved details are used and this is not saved (the user changes them in Settings → Your details)."New value: +"The user's own sender details: their REAL full name (first and last name, not an alias, nickname or pseudonym) and postal address, any country. Optional: needed only while the account has no sender details yet (SENDER_DETAILS_REQUIRED); they are then checked and saved to the account before paying. Once the account has them, the saved details are used and this is not saved (the user changes them in Settings → Your details)."
  4. Changed1 schema field changed
    • addedInput schema / properties / sender
      Added value: +{
      +  "description": "The user's own sender details: their REAL full name (first and last name, not an alias, nickname or pseudonym) and postal address, any country. Optional: needed only while the account has no sender details yet (SENDER_DETAILS_REQUIRED); they are then checked and saved to the account before paying, kept on record and never printed on the envelope or in the letter. Once the account has them, the saved details are used and this is not saved (the user changes them in Settings → Your details).",
      +  "properties": {
      +    "city": {
      +      "description": "City or town, e.g. Berlin.",
      +      "maxLength": 50,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "company": {
      +      "description": "The user's company or organisation, e.g. Example GmbH. Optional.",
      +      "maxLength": 60,
      +      "type": "string"
      +    },
      +    "country": {
      +      "description": "Country as an ISO 3166-1 alpha-2 code, e.g. DE, FR or US.",
      +      "maxLength": 2,
      +      "minLength": 2,
      +      "type": "string"
      +    },
      +    "line1": {
      +      "description": "Street and house number, or PO box, e.g. Hauptstraße 5.",
      +      "maxLength": 60,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "line2": {
      +      "description": "Optional extra address line: c/o, apartment, floor or building, e.g. Apt 4B.",
      +      "maxLength": 60,
      +      "type": "string"
      +    },
      +    "name": {
      +      "description": "The user's full name: their REAL first and last name, not an alias, nickname or pseudonym, e.g. Anna Schmidt.",
      +      "maxLength": 60,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "postal_code": {
      +      "description": "Postcode / ZIP code, e.g. 10115 or 94105. Required in countries that use postcodes.",
      +      "maxLength": 16,
      +      "type": "string"
      +    },
      +    "region": {
      +      "description": "State, province or region where the user's country has one in addresses, e.g. CA (California, US), ON (Ontario, CA) or Madrid (ES). Required for addresses in AE, AS, AU, BR, CA, CN, CO, CR, ES, FM, HK, HN, ID, IN, IQ, IT, JM, JP, KN, KR, KY, MH, MP, MX, NR, PF, PG, PW, RU, SO, SV, TW, US, VE, VI, VN when this block is saved as the user's sender details (an account without them yet: SENDER_DETAILS_REQUIRED, fields.region); otherwise optional.",
      +      "maxLength": 50,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "name",
      +    "line1",
      +    "city",
      +    "country"
      +  ],
      +  "type": "object"
      +}
  5. Changed4 schema fields changed
    • changedInput schema / properties / confirm / description
      Previous value: -"Must be true: the user explicitly confirmed sending this letter"New value: +"Must be true: the user explicitly confirmed sending this letter (recipient, content and total price)."
    • addedInput schema / properties / letter_id / description
      Added value: +"letter_id of the draft the user confirmed, from create_letter or compose_letter, e.g. ltr_8f3k2m9q4x7v1c6b0n5p. Sending charges its total to the user's prepaid credit."
    • changedInput schema / properties / paper_size / description
      Previous value: -"The user's choice for a US Letter PDF to a recipient outside the US, Canada and US territories: \"a4\" = shrink to A4 (recommended), \"us_letter\" = keep US Letter. Same price. Saved on the draft before paying; ignored for other letters."New value: +"The user's choice for a US Letter PDF to a recipient outside the US, Canada and US territories: \"a4\" = shrink to A4 (recommended), \"us_letter\" = keep US Letter. Same price. Saved on the draft before paying; ignored for other letters. No default: omit unless the user has chosen."
    • changedInput schema / properties / user_accepted_terms / description
      Previous value: -"Must be true: the user agreed to the Terms and to the immediate start of printing"New value: +"Must be true: the user agreed to the Terms and to the immediate start of printing."
  6. Changed1 schema field changed
    • addedInput schema / properties / paper_size
      Added value: +{
      +  "description": "The user's choice for a US Letter PDF to a recipient outside the US, Canada and US territories: \"a4\" = shrink to A4 (recommended), \"us_letter\" = keep US Letter. Same price. Saved on the draft before paying; ignored for other letters.",
      +  "enum": [
      +    "a4",
      +    "us_letter"
      +  ],
      +  "type": "string"
      +}
  7. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations (destructiveHint=true, openWorldHint=true, idempotentHint=false) by disclosing the actual consequence: prepaid credit is charged and the letter is released to print, making it irreversible once production starts. It adds permission/account prerequisites, the fact that the assistant cannot pay and must hand the user a payment link, and that sender details are persisted to the account before paying. These are exactly the behaviors an agent needs before invoking a destructive, money-spending call.

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-loads the trigger and the charge consequence, then layers prerequisites and failure modes in a logical order. It is dense and slightly overlong, with heavy parenthetical nesting, but nearly every clause carries operative information rather than 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 destructive, credit-charging tool with a nested sender object and no output schema, the description covers cost, reversibility window, permission/terms preconditions, error codes and recovery, and scope limits. Nothing an agent needs in order to call it safely and correctly is missing.

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 already 100%, so the baseline is 3; the description still adds meaning, notably that paper_size has no default and must reflect a user choice, why it is needed (US Letter PDF to a recipient outside US/Canada/US territories) and that it is ignored otherwise. It also explains sender persistence semantics and that letter_id comes from create_letter or compose_letter. It does not, however, tie every field (e.g. the region requirement list) to the high-level narrative.

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 concrete verb and resource ("printed and posted" a confirmed draft letter) and names the trigger condition (user explicitly confirmed recipient, content and price). It also distinguishes itself from drafting siblings by emphasizing that only a confirmed draft is sent, and from cancel_letter by describing the cancellation window.

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 rules (only after confirmation and after agreeing to Terms and immediate printing start), names the alternative path (cancel_letter, valid only until production starts), and explains the error escapes (insufficient credit, PAPER_CHOICE_REQUIRED, SENDER_DETAILS_REQUIRED) with instructions to ask the user and retry. It also states scope exclusions: paper letters only, no email, fax or parcels.

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.