Skip to main content
Glama

pdf_create_from_template

Create a polished PDF by populating a named template (invoice, report, or letter) with structured data that is validated against the template's schema.

Instructions

Create a polished PDF from a named template (invoice, report, or letter). Pass structured data matching the template's fields; data is validated against the template's schema.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
templateNameYesTemplate to use: invoice, report, or letter
dataYesTemplate data. Invoice: companyName, clientName, invoiceNumber, invoiceDate, items[{description, quantity, unitPrice}], taxRate, currency (ISO code or symbol, default USD), dueDate, notes, paymentTerms. Report: title, author, date, subtitle, sections[{heading, body}]. Letter: senderName, senderAddress, recipientName, recipientAddress, subject, body, closing, signatureName.
outputPathYesAbsolute path for the output PDF file
Behavior3/5

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

The description reveals that data is validated against the template's schema, a useful behavioral trait. However, with no annotations providing safety profile (all false), the description does not cover potential side effects like file overwriting, permissions, or error handling. It adds some value but lacks full transparency for a creation tool.

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 sentences front-load the primary action and provide essential detail on data requirements. Every word is purposeful; no redundancy or filler. The structure efficiently conveys the core function without unnecessary elaboration.

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?

Given the rich input schema and explicit field lists, the description adequately prepares an agent to use the tool. The absence of an output schema is acceptable. Minor gaps like file overwrite behavior or return value are not critical, and overall the description feels complete for the task.

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?

The input schema already covers all three parameters with descriptions (100% coverage). The description goes further by enumerating the required fields for each template (invoice, report, letter), adding meaningful context beyond the schema, especially for the complex data object.

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 creates a PDF from a named template (invoice, report, or letter), using a specific verb and resource. This directly distinguishes it from siblings like pdf_create or pdf_create_from_markdown, as it focuses on templates rather than blank documents or markdown.

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 when a named template and matching structured data are available, but it does not explicitly state when to use this tool versus alternatives (e.g., pdf_create, pdf_fill_form). No exclusions or when-not guidance is provided, leaving the selection mostly to the agent's inference.

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/AryanBV/pdf-toolkit-mcp'

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