Skip to main content
Glama

preview_demand_letter

Render the demand letter's text content (title, subject, body paragraphs, amount line, legal reference, closing) as structured JSON, without producing a PDF. Use to review or refine wording before generating.

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.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It states the tool renders text without producing a PDF, but does not explicitly declare it as read-only or free of side effects, nor mention authentication or rate limits. Basic transparency is present but incomplete.

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 consists of two well-structured sentences: the first states the action and output type, the second states the use case. No wasted words; information is front-loaded and easy to parse.

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?

While the description covers purpose and basic behavior, it lacks details on the output structure (no output schema). With 23 parameters and nested objects, the agent might benefit from a clearer indication of how the JSON is structured. However, the description is sufficient for a preview tool.

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?

The input schema has 100% description coverage, so parameters are adequately documented. The tool description does not add additional meaning beyond what the schema already provides, meeting the baseline of 3.

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 the tool renders demand letter text content as structured JSON without producing a PDF, and explicitly distinguishes it from the sibling generate_demand_letter by noting it is for review before generating.

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?

The description explicitly says 'Use to review or refine wording before generating,' giving clear context for when to use. Alternatives are implied by sibling names (generate_demand_letter for final output), but no explicit when-not-to-use guidance is given.

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.