Skip to main content
Glama

render_serial_letters

Destructive

Serial letter as ONE print file: fills an HTML document template (template_id or key, see list_document_templates) for every recipient — saved_filter_id, filter or ids; entity contacts (default) or accounts — renders each as PDF via the tenant's browser service and joins them into one PDF stored as a document. Same placeholders as group e-mails (all values HTML-escaped). Max 100 letters per call; for more use offset (returns next_offset). Returns document_id and a download link.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "render_serial_letters"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNoExplicit recipient record IDs (alternative to saved_filter_id or filter)
keyNoKey of the document template (alternative to template_id)
titleNoTitle of the resulting PDF document
entityNoRecipient type: contacts (default) or accounts
filterNoRecipient filter as in search_crm (alternative to saved_filter_id or ids)
offsetNoNumber of entries to skip (for paging)
template_idNoID of the template
saved_filter_idNoID of the saved filter

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / entity / description
      Added value: +"Recipient type: contacts (default) or accounts"
    • addedInput schema / properties / filter / description
      Added value: +"Recipient filter as in search_crm (alternative to saved_filter_id or ids)"
    • addedInput schema / properties / ids / description
      Added value: +"Explicit recipient record IDs (alternative to saved_filter_id or filter)"
    • addedInput schema / properties / key / description
      Added value: +"Key of the document template (alternative to template_id)"
    • addedInput schema / properties / offset / description
      Added value: +"Number of entries to skip (for paging)"
    • addedInput schema / properties / saved_filter_id / description
      Added value: +"ID of the saved filter"
    • addedInput schema / properties / template_id / description
      Added value: +"ID of the template"
    • addedInput schema / properties / title / description
      Added value: +"Title of the resulting PDF document"
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare a destructive, non-read-only, non-idempotent write; the description adds real context beyond them — rendering happens via the tenant's browser service, output is persisted as a document, placeholders are HTML-escaped, and there is a 100-letter cap with offset paging. It stops short of describing failure behavior or what the produced document is named/where it lands.

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?

A single dense paragraph, front-loaded with the core action and followed by template, recipient, limit, and return information in a logical order. No filler sentences, though the semicolon-heavy packing makes it slightly harder to scan than a short bulleted structure would.

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?

For an 8-parameter write tool with a nested filter object and no output schema, it covers the essentials: template selection, recipient sources, entity type, size cap, paging, escaping, and return values (document_id plus download link). Missing only edge details such as permission requirements or what happens when the 100 cap is exceeded without offset.

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 goes further by grouping parameters into template (template_id or key), recipient source (saved_filter_id, filter, or ids), entity default, and paging via offset, making the mutual alternatives and defaults explicit. It could add filter-object shape details, but nested filter is delegated to search_crm semantics.

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 specific verb and resource: fills an HTML template for every recipient, renders each to PDF, and joins them into a single PDF document. It also distinguishes the batch-recipient behavior (saved_filter_id/filter/ids, contacts vs accounts) that separates it from single-document render siblings.

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?

Gives concrete operating guidance: see list_document_templates for the template, choose recipients via saved_filter_id, filter, or ids, max 100 letters per call, and use offset for more. It does not explicitly contrast itself with render_document_template or render_document_pdf, so the when-not-to-use case is left implicit.

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.