Skip to main content
Glama

Render documents from rows

render_documents

Render one PDF per row of data with a built-in template, and return a PNG preview and a PDF download link for each document. Use when the user has a spreadsheet, table, CSV or list and wants a certificate of completion, letter, donation receipt or job offer letter for each row. Get the field keys from list_document_templates, map the user's columns onto them, and pass each row as an object keyed by field key; values must be text, numbers, true/false or null; a text value may hold at most 2000 characters unless list_document_templates gives a different limit for that field. Renders up to 25 rows per call and up to 50 documents per month for each user (in Claude, each conversation); callers the service cannot tell apart, such as all Claude users together, also share one monthly limit. The response says how many documents remain this month (or that the month's limit is shared with other users) and when the count resets. Rows missing a required field are reported in missing_fields. Preview and PDF links expire after one hour. This tool only fills the built-in templates; it does not accept HTML or custom designs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rowsYesOne object per document, at most 25 per call.
titleNoOptional name for this set of documents, e.g. "Q3 volunteer certificates".
templateYesTemplate key from list_document_templates.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusNo
volumeYes
messageNo
continueYes
templateYes
documentsYes
expires_atYes
rows_receivedYes
rows_renderedYes
template_nameYes
missing_fieldsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

With annotations covering only the safe/read-write profile, the description carries the real behavioral load: per-call row cap (25), monthly quota (50 per user/conversation, shared among indistinguishable callers), quota-reset reporting, one-hour link expiry, missing_fields error reporting, and value-type/length rules. That is exactly the context annotations cannot express.

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?

Purpose and usage are front-loaded in the first two sentences, followed by operational detail. It is a dense single block rather than a list, but almost every clause carries actionable information; only minor tightening of the quota sentences is possible.

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?

An output schema exists, so return values need little explanation, yet the description still clarifies the quota portion of the response and error reporting. Combined with limits, expiry, prerequisites and template restrictions, an agent has everything needed to call it correctly.

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, but the description goes further: it tells the caller to derive keys from list_document_templates, map user columns onto them, pass each row as an object keyed by field key, and states the 2000-character text ceiling and permitted value types. The title/template params get less attention, but the hard part (rows) is well explained.

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 sentence gives a precise verb+resource+output: 'Render one PDF per row of data with a built-in template, and return a PNG preview and a PDF download link.' It also names the sibling that supplies inputs (list_document_templates), so the agent can distinguish this from its siblings without opening a 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?

Explicit trigger conditions are given ('Use when the user has a spreadsheet, table, CSV or list and wants a certificate of completion, letter, donation receipt or job offer letter'), plus an explicit exclusion ('does not accept HTML or custom designs') and the prerequisite step of fetching field keys from list_document_templates.

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.