Skip to main content
Glama
bitterdev

pdf-letter-mcp

by bitterdev

Create letter PDF

create_letter

Renders a letter into a print-ready PDF with DIN 5008 address field, 25 mm writing margin, fold and punch marks, bold subject. Returns file path, page count, and layout metrics.

Instructions

Renders a letter as a PDF file in the fixed house layout (DIN 5008 address field, 25 mm writing margin, fold and punch marks, bold subject block). Pass content only, the layout is fixed. The signature image intentionally overlaps the closing line. Returns the absolute file path, the page count, layout metrics and warnings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesLetter text. Blank lines separate paragraphs, "- " starts a bullet list, "1. " a numbered list, **bold** and *italic* are supported, "\pagebreak" forces a page break.
dateNoISO date (2026-07-24), "today" or free text. Default "today".
marksNoRemark zone above the address, max. 3 lines, e.g. ["Einschreiben"].
placeNoPlace for the "place, date" line.
copyToNo
localeNoLanguage of the fixed texts and date format. Supported: de, en, fr, es, it, nl, pt, pl, tr, da, sv, cs. Regional tags such as "en-US" are accepted. Default "de".
senderNoSender, printed as the small return address line above the recipient. Only needed when no profile is used, a profile always wins.
closingNoDefault is the closing phrase of the locale.
profileNoSender identity, taken from the profile file on this machine (see list_profiles). The profile provides address, return address line and signature image. Use this instead of typing a sender.
subjectNoSubject line, printed without a "Betreff:" label as required by DIN 5008.
metadataNo
dateStyleNoDefault "numeric" (24.07.2026).
overwriteNoOverwrite an existing file instead of adding a counter, default false.
recipientYesRecipient, positioned in the DIN 5008 address field so it shows in the envelope window.
signatureNoSignature below the closing line. The image is scaled and placed by the renderer: it is laid over the blank line above the printed name and deliberately overlaps the closing line, exactly like a signature on paper. That overlap is intended and must not be compensated for.
enclosuresNo
outputPathNoTarget PDF path. Default: PDF_LETTER_OUTPUT_DIR (or the temp directory) plus a name derived from the subject.
salutationNoDefault is the generic salutation of the locale.
returnBase64NoAlso return the PDF as base64, default false.
subjectLinesNoFurther bold lines right below the subject. This is where a normal German letter carries references, e.g. ["Zeichen: 535 B 335D028418", "Kunden-Nummer: 335D028418"].
countryDisplayNoWhen to print the country line, default "auto" (only for foreign recipients).
returnAddressLineNoReturn address line above the recipient. Generated from the sender, pass "" to hide it.
Behavior4/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. The description does a strong job: it reveals the fixed house layout (DIN 5008 address field, 25mm margin, fold/punch marks), the intended signature overlap ('The signature image intentionally overlaps the closing line'), and the return format (file path, page count, layout metrics, warnings). This is meaningful behavioral context beyond the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact (three sentences) and front-loaded with the core purpose. Every sentence earns its place: what it renders, the fixed-layout constraint, a notable quirk (signature overlap), and the return value. It is not padded with schema-echo.

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?

This is a complex tool (22 params, nested objects, no annotations, no output schema), yet the description covers the fixed layout constraint, the signature overlap behavior, and the return payload. The high schema coverage (86%) lets the schema carry the parameter details, and the description compensates for the format/layout context. The main gap is not naming sibling alternatives for when to choose this vs preview_letter, but the description is otherwise thorough for its complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is high at 86%, so the schema documents most parameters well. The description itself does not enumerate individual params (correctly, given coverage), but it does add behavioral semantics around the signature image and layout. Baseline 3 applies given high schema coverage; the description adds some value beyond it.

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 description uses a specific verb+resource combination ('Renders a letter as a PDF file') with detail about the layout (DIN 5008, 25mm margin, fold/punch marks, bold subject). It clearly distinguishes from siblings like preview_letter through 'in the fixed house layout' and 'Pass content only, the layout is fixed.' This is specific and unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives a clear usage directive ('Pass content only, the layout is fixed') and notes when a profile should be used vs typing a sender (in the schema, not the description). However, the description does not explicitly state when to use this vs preview_letter, list_profiles, or get_din5008_spec, nor provide exclusion conditions. The context implies usage well but lacks explicit alternative differentiation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bitterdev/pdf-letter-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server