Skip to main content
Glama

Create letter

create_letter

Creates a letter that Deutsche Post delivers on paper, to Germany or 200+ countries; senders can live anywhere. Fits any request to send something by post, including "per Post" or "postalisch". Not for e-mail, fax, parcels or bulk mail. list_senders provides the user's real name, address and past recipients for the draft; an unknown recipient address can be looked up and confirmed by the user. A new sender is saved to the account automatically; save_sender and delete_sender manage saved senders. Charges nothing; unpaid letters are deleted 30 days after their last change. Next: submit_letter_text or submit_letter_pdf.

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": {
      "recipient": "<recipient>",
      "user_language": "<user_language>"
    },
    "name": "create_letter"
  }
}

Input Schema

NameRequiredDescriptionDefault
senderNoPostal address of the sender, used for the return line and the sender block. The sender can live in any country. It is saved in the account for next time. Leave it out to use sender_id or the saved default sender.
deadlineNoDate by which the letter must reach the recipient (YYYY-MM-DD), if the user mentions one. The response then says whether it can be met (delivery_estimate.deadline_warning).
deliveryNoOnly for senders in Germany, and the user's choice: 'automatic' (sent by Deutsche Post) or 'self_print' (the user prints the franked PDF and posts it in Germany). Omit it for senders outside Germany; their letters are always sent automatically.
recipientYesPostal address of the recipient in Germany or another country. It is printed in the address window exactly as given and does not belong in the letter text.
sender_idNoA saved sender from list_senders, instead of sender. Its signature is used.
registeredNoTrue if the user needs tracking or proof of delivery. Within Germany this is Einschreiben Einwurf (delivery to the letterbox is documented), abroad Einschreiben International (for many countries tracking ends when the letter leaves Germany). Ordinary letters within Germany only get Deutsche Post's basic tracking (sorting centres, no proof of delivery), ordinary letters abroad usually none.
product_codeNoOnly for special requests, a product_code from get_price_quote with include_products. Postage is otherwise chosen automatically.
user_languageYesTwo-letter code of the language the user is writing to you in, e.g. 'en' or 'de'. It can differ from the letter's own language. The preview card, the review page and the e-mails use it.
return_receiptNoTrue only if the user needs the recipient's signature on a return receipt. Germany only.

Output Schema

NameRequiredDescriptionDefault
errorNoLast error of this letter, if any.
pagesNoNumber of A4 pages.
priceNoTotal price incl. postage and VAT, formatted, e.g. '4,84 €'.
senderNoPostal address.
statusNocreated, preview_ready, awaiting_payment, purchasing, purchased or purchase_unclear.
paymentNopending, paid, balance, refunded or a test marker.
productNoDeutsche Post postage product.
deliveryNo'automatic' (sent by Deutsche Post) or 'self_print' (the user prints and posts it).
trackingNoTracking after dispatch.
letter_idNoId of the letter, used by all other letter tools.
next_stepNoWhat to do next.
posted_onNoDate the letter was posted, YYYY-MM-DD.
recipientNoPostal address.
sender_idNoSaved sender used for this letter.
test_modeNoSet when purchases are simulated (review accounts, test operation).
price_centNoTotal price in euro cents.
registeredNoRegistered mail with tracking.
status_urlNoStatus page of the letter.
upload_urlNoURL that accepts the raw PDF via PUT until purchase.
invoice_urlNoInvoice.
preview_urlNoWeb page with the whole letter: review and payment before purchase, status after. It is a web page, not an image file.
approval_urlNoPage where the user approves and pays this letter.
delivered_atNoDelivery time reported by Deutsche Post.
layout_rulesNoLayout rules for submit_letter_pdf.
postage_centNoDeutsche Post postage in cents.
product_codeNoCode of the postage product.
link_validityNoHow long the links stay valid.
tracking_noteNoLimits of tracking for the destination.
user_languageNoLanguage of the user, for pages and e-mails.
letter_pdf_urlNoself_print only: franked PDF to print.
preview_imagesNoPNG images of the pages, for showing the letter inline.
return_receiptNoRegistered mail with return receipt.
dispatch_statusNoqueued, posted, cancelled or test.
preview_pdf_urlNoPreview PDF with specimen stamp.
service_fee_centNoService fee in cents.
delivery_estimateNoExpected delivery, without guarantee.
price_from_balanceNoPrice when paid from the prepaid balance.
posting_receipt_urlNoProof of posting for registered mail.
returned_undeliverable_atNoSet when the letter came back as undeliverable.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / preview_url / description
      Previous value: -"Web page with the whole letter: review and payment before purchase, status after. Give it as a link, never embed it as an image."New value: +"Web page with the whole letter: review and payment before purchase, status after. It is a web page, not an image file."
  2. Changed3 schema fields changed
    • changedInput schema / properties / product_code / description
      Previous value: -"Only for special requests, a code from list_postage_products. Postage is otherwise chosen automatically."New value: +"Only for special requests, a product_code from get_price_quote with include_products. Postage is otherwise chosen automatically."
    • addedOutput schema / properties
      Added value: +{
      +  "approval_url": {
      +    "description": "Page where the user approves and pays this letter.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "delivered_at": {
      +    "description": "Delivery time reported by Deutsche Post.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "delivery": {
      +    "description": "'automatic' (sent by Deutsche Post) or 'self_print' (the user prints and posts it).",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "delivery_estimate": {
      +    "additionalProperties": true,
      +    "description": "Expected delivery, without guarantee.",
      +    "properties": {
      +      "deadline_warning": {
      +        "description": "Set when the given deadline cannot be met safely.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "delivered_95_percent_by": {
      +        "description": "Germany: date by which 95 % of letters arrive.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "delivered_99_percent_by": {
      +        "description": "Germany: date by which 99 % of letters arrive.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "delivered_earliest": {
      +        "description": "Abroad: earliest expected delivery date.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "delivered_latest": {
      +        "description": "Abroad: latest expected delivery date.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "note": {
      +        "description": "Transit note from Deutsche Post.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "posted_from": {
      +        "description": "Earliest posting date, YYYY-MM-DD.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "dispatch_status": {
      +    "description": "queued, posted, cancelled or test.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "error": {
      +    "description": "Last error of this letter, if any.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "invoice_url": {
      +    "description": "Invoice.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "layout_rules": {
      +    "additionalProperties": true,
      +    "description": "Layout rules for submit_letter_pdf.",
      +    "properties": {},
      +    "type": "object"
      +  },
      +  "letter_id": {
      +    "description": "Id of the letter, used by all other letter tools.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "letter_pdf_url": {
      +    "description": "self_print only: franked PDF to print.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "link_validity": {
      +    "description": "How long the links stay valid.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "next_step": {
      +    "description": "What to do next.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "pages": {
      +    "description": "Number of A4 pages.",
      +    "type": [
      +      "integer",
      +      "null"
      +    ]
      +  },
      +  "payment": {
      +    "description": "pending, paid, balance, refunded or a test marker.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "postage_cent": {
      +    "description": "Deutsche Post postage in cents.",
      +    "type": [
      +      "integer",
      +      "null"
      +    ]
      +  },
      +  "posted_on": {
      +    "description": "Date the letter was posted, YYYY-MM-DD.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "posting_receipt_url": {
      +    "description": "Proof of posting for registered mail.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "preview_images": {
      +    "description": "PNG images of the pages, for showing the letter inline.",
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": [
      +      "array",
      +      "null"
      +    ]
      +  },
      +  "preview_pdf_url": {
      +    "description": "Preview PDF with specimen stamp.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "preview_url": {
      +    "description": "Web page with the whole letter: review and payment before purchase, status after. Give it as a link, never embed it as an image.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "price": {
      +    "description": "Total price incl. postage and VAT, formatted, e.g. '4,84 €'.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "price_cent": {
      +    "description": "Total price in euro cents.",
      +    "type": [
      +      "integer",
      +      "null"
      +    ]
      +  },
      +  "price_from_balance": {
      +    "description": "Price when paid from the prepaid balance.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "product": {
      +    "description": "Deutsche Post postage product.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "product_code": {
      +    "description": "Code of the postage product.",
      +    "type": [
      +      "integer",
      +      "null"
      +    ]
      +  },
      +  "recipient": {
      +    "additionalProperties": true,
      +    "description": "Postal address.",
      +    "properties": {
      +      "address_line2": {
      +        "description": "Optional second line.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "city": {
      +        "description": "City, with state or province where usual.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "country": {
      +        "description": "Two-letter ISO country code.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "name": {
      +        "description": "Person, company or office.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "postal_code": {
      +        "description": "Postal code.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "street": {
      +        "description": "Street and house number or PO box.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "registered": {
      +    "description": "Registered mail with tracking.",
      +    "type": [
      +      "boolean",
      +      "null"
      +    ]
      +  },
      +  "return_receipt": {
      +    "description": "Registered mail with return receipt.",
      +    "type": [
      +      "boolean",
      +      "null"
      +    ]
      +  },
      +  "returned_undeliverable_at": {
      +    "description": "Set when the letter came back as undeliverable.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "sender": {
      +    "additionalProperties": true,
      +    "description": "Postal address.",
      +    "properties": {
      +      "address_line2": {
      +        "description": "Optional second line.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "city": {
      +        "description": "City, with state or province where usual.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "country": {
      +        "description": "Two-letter ISO country code.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "name": {
      +        "description": "Person, company or office.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "postal_code": {
      +        "description": "Postal code.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "street": {
      +        "description": "Street and house number or PO box.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "sender_id": {
      +    "description": "Saved sender used for this letter.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "service_fee_cent": {
      +    "description": "Service fee in cents.",
      +    "type": [
      +      "integer",
      +      "null"
      +    ]
      +  },
      +  "status": {
      +    "description": "created, preview_ready, awaiting_payment, purchasing, purchased or purchase_unclear.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "status_url": {
      +    "description": "Status page of the letter.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "test_mode": {
      +    "description": "Set when purchases are simulated (review accounts, test operation).",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "tracking": {
      +    "additionalProperties": true,
      +    "description": "Tracking after dispatch.",
      +    "properties": {
      +      "carrier_status": {
      +        "additionalProperties": true,
      +        "description": "Latest status reported by Deutsche Post, with events.",
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "note": {
      +        "description": "What the tracking shows.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "pending": {
      +        "description": "true while the tracking number of registered mail is not known yet.",
      +        "type": [
      +          "boolean",
      +          "null"
      +        ]
      +      },
      +      "stamp_number": {
      +        "description": "Stamp number used for basic tracking of ordinary letters.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "trackable": {
      +        "description": "true for a tracking number, 'basis' for basic tracking, false if none.",
      +        "type": [
      +          "boolean",
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "tracking_number": {
      +        "description": "Deutsche Post tracking number.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "tracking_url": {
      +        "description": "Deutsche Post tracking page.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "tracking_note": {
      +    "description": "Limits of tracking for the destination.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "upload_url": {
      +    "description": "URL that accepts the raw PDF via PUT until purchase.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "user_language": {
      +    "description": "Language of the user, for pages and e-mails.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  }
      +}
    • removedOutput schema / title
      Removed value: -"create_letterDictOutput"
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, destructive=false, idempotent=false), the description discloses cost ('charges nothing'), lifecycle behavior ('unpaid letters are deleted 30 days after their last change'), and a side effect the annotations do not capture — a new sender is stored in the account automatically. It also names the required follow-up step, which tells the agent this call alone does not dispatch a letter.

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 front-loaded with purpose and exclusions, then prerequisites, side effects, cost, and next step — a sensible order with no filler sentences. Minor redundancy exists where 'a new sender is saved to the account automatically' overlaps the sender parameter's schema text about being saved for next time.

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 tool with nested address objects and an output schema, the description covers everything the agent needs before calling: the channel, what is and isn't a valid request, sender sourcing, cost, draft expiry, and the mandatory follow-up submission step. Return-value details are correctly left to the output schema.

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 value by explaining that list_senders supplies the real name, address and past recipients for the draft, that an unknown recipient address can be looked up and user-confirmed, and that sender_id falls back to the saved default sender. These clarify cross-parameter choice (sender vs sender_id) rather than restating field text.

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?

The opening clause gives a specific verb and resource (creates a letter) plus the delivery channel and scope (Deutsche Post on paper, Germany or 200+ countries, senders anywhere). It also explicitly contrasts with nearby concepts — e-mail, fax, parcels, bulk mail — so an agent can distinguish it from siblings like submit_letter_pdf or purchase_letter without opening the 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?

It states the triggering intent ('any request to send something by post, including "per Post" or "postalisch"'), the exclusions (e-mail, fax, parcels, bulk mail), and the continuation path ('Next: submit_letter_text or submit_letter_pdf'). It further routes the agent to list_senders for sender data and to save_sender/delete_sender for managing saved senders, which is exactly the when-to-use guidance missing from most definitions.

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