Skip to main content
Glama

generate_demand_letter

Generate the finished demand-letter PDF (formal letter + matching envelope), localized and legally formatted for the jurisdiction. Returns the PDF as a base64 resource. Free, no registration.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bankNoPayment/bank details keyed by field (e.g. {bankName, iban, accountNumber}). Optional.
toneNoEscalation level. Default: final.
amountYesAmount owed, as a number (no separators). Required, > 0.
attestedNoConfirms authorization to send under the sender name. Required when senderType is business/firm.
currencyNoISO 4217 currency (optional; defaults to the jurisdiction's).
languageNoLetter language code (e.g. en, es, fr, de, pt, ar, zh, ja). Must be offered for the jurisdiction; defaults to en.
senderRefNoCreditor's own reference number (optional).
debtorNameYesDebtor name. Required.
debtorTypeNoWhether the debtor is a private individual (consumer) or a business. 'individual' activates jurisdiction consumer rules (e.g. GB Pre-Action Protocol 30-day floor, NL WIK wording). Default: business.
enclosuresNoEnclosed documents, printed as 'Encl.: …' under the signature (e.g. 'Copy of invoice INV-123'). Optional.
senderNameYesCreditor name (person or business). Required.
senderTypeNoCreditor type. Business/firm requires attested=true.
signerNameNoName of the person signing (optional; defaults to senderName).
descriptionNoWhat the debt is for (optional).
senderTitleNoSigner's job title (optional).
deadlineDaysNoDays from issue to pay (optional; default 14).
jurisdictionNoISO 3166-1 alpha-2 country code of the debtor (e.g. US, GB, DE, BR, AE). Use list_jurisdictions for the full set; XX = generic/international.
originalDateNoISO date the debt was incurred/invoiced (optional).
debtorAddressYesDebtor postal address, multi-line. Required.
invoiceNumberNoInvoice/account number (optional).
senderAddressYesCreditor postal address, multi-line (\n separated). Required.
senderContactNoCreditor email/phone (optional).
deliveryMethodNoHow the letter is sent; printed as a notation above the recipient (e.g. 'By registered post and email'). Optional.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / debtorType
      Added value: +{
      +  "description": "Whether the debtor is a private individual (consumer) or a business. 'individual' activates jurisdiction consumer rules (e.g. GB Pre-Action Protocol 30-day floor, NL WIK wording). Default: business.",
      +  "enum": [
      +    "individual",
      +    "business"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / deliveryMethod
      Added value: +{
      +  "description": "How the letter is sent; printed as a notation above the recipient (e.g. 'By registered post and email'). Optional.",
      +  "enum": [
      +    "registered",
      +    "email",
      +    "both"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / enclosures
      Added value: +{
      +  "description": "Enclosed documents, printed as 'Encl.: …' under the signature (e.g. 'Copy of invoice INV-123'). Optional.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description provides basic behavior: generates PDF, returns base64. It mentions localization and legal formatting but omits details on processing time, size limits, authentication, or data storage. Adequate for a generation tool but lacks depth.

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?

Two concise sentences: first states core function and output, second adds 'Free, no registration.' Front-loaded with essential information, no redundant words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 23 parameters, nested objects, and no output schema, the description covers core functionality but does not mention prerequisites like jurisdiction requirement or input validation. Sibling tools are not referenced, missing guidance on tool interactions.

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 100%, so the schema fully documents each parameter. The description adds no parameter-level meaning beyond summarizing the tool's purpose. Baseline score of 3 is appropriate.

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 clearly states it generates a finished demand-letter PDF, including formal letter and envelope, localized and legally formatted. It explicitly mentions the output as a base64 resource, distinguishing it from siblings like list_jurisdictions and preview_demand_letter.

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 implies usage for generating final documents but does not explicitly state when to use this tool versus preview_demand_letter or list_jurisdictions. It lacks direct guidance on when not to use it or alternative tools.

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.