pdfzen
Server Details
Render PDFs from 45 starter templates or raw HTML. Pay-per-render with USDC via x402.
- Status
- Healthy
- Last Tested
- Transport
- Streamable HTTP
- URL
Glama MCP Gateway
Connect through Glama MCP Gateway for full control over tool access and complete visibility into every call.
Full call logging
Every tool call is logged with complete inputs and outputs, so you can debug issues and audit what your agents are doing.
Tool access control
Enable or disable individual tools per connector, so you decide what your agents can and cannot do.
Managed credentials
Glama handles OAuth flows, token storage, and automatic rotation, so credentials never expire on your clients.
Usage analytics
See which tools your agents call, how often, and when, so you can understand usage patterns and catch anomalies.
Tool Definition Quality
Average 4.7/5 across 4 of 4 tools scored. Lowest: 4.1/5.
Each tool has a clearly distinct purpose: listing templates, getting a template's details, rendering a predefined template, or rendering arbitrary HTML. No overlap.
All names follow a consistent verb_noun pattern in snake_case: list_starters, get_starter, render_html_to_pdf, render_template_to_pdf.
Four tools cover the server's scope (template discovery and PDF rendering) without being excessive or insufficient.
The tool set fully covers the domain: discover available templates, inspect a template's expected data shape, render a template to PDF, or render custom HTML to PDF. No obvious gaps.
Available Tools
4 toolsget_starterARead-onlyInspect
Fetch the full HTML body, CSS, sampleData, and pageOptions for one starter template by slug. Use this when you need to understand the exact shape of data the template expects before calling render_template_to_pdf, or when you want to fork a starter into custom HTML. Free, no payment, no auth required.
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The starter slug. Examples: "invoice", "receipt", "certificate", "contract", "nda", "boarding-pass", "menu". Call list_starters to discover all 45 slugs. |
Tool Definition Quality
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already indicate readOnlyHint=true, and the description adds 'Free, no payment, no auth required', clarifying cost and authentication. It also specifies the exact data returned, further ensuring the agent knows the tool is safe and non-destructive. No contradiction with annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences, no filler. The first sentence immediately states purpose and return values; the second provides usage context. Every word earns its place, and the key information is front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has low complexity (1 parameter, no output schema, no nested objects), and the description fully covers purpose, return contents, usage scenarios, and additional context (free, no auth). No gaps remain.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema provides 100% coverage for the single 'slug' parameter with description and examples. The description adds a suggestion to call list_starters to discover all 45 slugs, which is valuable context but not critical since schema already gives examples. This slightly exceeds the baseline of 3.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses the verb 'Fetch' and specifies the resource ('starter template by slug') and return contents ('full HTML body, CSS, sampleData, and pageOptions'). It clearly differentiates from sibling tools like list_starters (which lists all) and render_template_to_pdf (which renders).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicitly states when to use: before calling render_template_to_pdf to understand the data shape, or to fork a starter. Also mentions it's free and requires no auth, which guides usage context. No explicit when-not statements, but the positive guidance is strong.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_startersARead-onlyInspect
List pdfzen's 45 public starter templates — invoices, receipts, contracts, certificates, NDAs, letters, reports, resumes, boarding passes, menus, bank statements, lab reports, lease agreements, performance reviews, and more. Returns an array of { slug, name, description, icon, pageOptions, fonts, dataKeys }. Free, no payment, no auth required. Call this first to discover what fits the user request, then optionally call get_starter to see the expected data shape, then call render_template_to_pdf to produce the PDF.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Tool Definition Quality
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true, and the description adds additional behavioral context: 'Free, no payment, no auth required.' It also describes the return structure as an array with fields, which is beyond what annotations provide. No contradictions.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single paragraph of four sentences, each earning its place: listing templates, specifying return fields, stating free/no auth, and providing a call sequence. No redundancy or filler. Front-loaded with purpose.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool has no parameters, no output schema, but annotations indicate a safe read operation, the description fully covers what the tool does, what it returns, and how it fits into a workflow. No gaps remain.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has zero parameters (100% coverage trivially). The description does not add parameter meaning but provides context about the return value and usage flow. According to rubric, baseline for 0 parameters is 4, and the description adds value beyond schema (though not param-specific), so 4 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool lists 45 public starter templates with specific categories (invoices, receipts, etc.). It uses a specific verb ('list') and resource ('pdfzen's public starter templates'), and distinguishes from siblings by recommending a call sequence including get_starter and render_template_to_pdf.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explicit usage guidance: 'Call this first to discover what fits the user request, then optionally call get_starter to see the expected data shape, then call render_template_to_pdf to produce the PDF.' This clearly instructs when and in what order to use the tool relative to siblings.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
render_html_to_pdfAInspect
Render arbitrary Handlebars-flavoured HTML into a PDF. Use only when no starter fits the user request (one-off layouts, custom branding the user described in chat). Prefer render_template_to_pdf when a starter matches — output quality is more predictable. Returns the PDF as base64-encoded bytes. Settled per call via x402 USDC on Base mainnet — $0.006 per render. Pass the signed payment in the X-PAYMENT header on the outer POST /mcp request. If missing, returns a PaymentRequirement to sign.
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | Optional CSS injected into the document head. Alternative to inline <style> in `html`. | |
| data | No | Handlebars context object resolved against the {{...}} expressions in `html`. | |
| html | Yes | The HTML body. Supports Handlebars {{ }} expressions resolved against `data`, plus pdfzen helpers ({{barChart}}, {{lineChart}}, {{pageBreak}}, {{#each}}, {{#if eq}}). Don't include <html>/<head>; just the body content + any <style> tags. | |
| pageOptions | No | Page format/margin/orientation. Defaults to A4 portrait. Example: { "format": "A4", "margin": { "top": "20mm" } }. |
Tool Definition Quality
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Beyond annotations indicating non-read-only and open-world, the description discloses the exact payment mechanism ($0.006 per render via x402 USDC), the required header, and the consequence of missing payment, giving full behavioral transparency.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Description is concise with three sentences plus a bolded payment note; every sentence adds value and no extraneous text.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with nested parameters and no output schema, the description adequately covers input purpose, output format (base64 PDF), cost, and error handling, leaving no critical gaps for an AI agent.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so baseline is 3. The description adds no significant parameter-specific meaning beyond what the schema already provides; the note about Handlebars helpers in the html parameter description is already part of the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states it renders Handlebars HTML to PDF, and explicitly distinguishes from the sibling render_template_to_pdf by indicating when to use each.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Description explicitly says 'Use only when no starter fits' and 'Prefer render_template_to_pdf when a starter matches', providing clear when/when-not guidance with a named alternative.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
render_template_to_pdfAInspect
Render one of the 45 starter templates into a PDF. Returns the PDF as base64-encoded bytes in the tool result. Settled per call via x402 USDC on Base mainnet — $0.006 per render. Pass the signed payment authorization in the X-PAYMENT header on the outer POST /mcp HTTP request. If the header is missing, this tool returns a structured PaymentRequirement that x402-aware runtimes (Coinbase Agent Kit, x402-fetch) auto-sign and retry. Your user-supplied data is merged ON TOP of the template sampleData, so partial payloads inherit demo defaults — handy for incremental input (e.g. only the customer's name + total, ship the rest as the demo).
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Handlebars context. Each starter expects a specific shape — call get_starter to see the sampleData and dataKeys for the chosen slug. Your fields merge ON TOP of sampleData, so you can supply only the fields the user gave you and the rest fall back to the demo content. | |
| template | Yes | Slug of the starter to render (e.g. "invoice", "receipt", "certificate"). Call list_starters first if unsure which fits the user request. | |
| pageOptions | No | Page format/margin/orientation overrides. Defaults come from the starter (most are A4 portrait). Example: { "format": "Letter", "landscape": true }. |
Tool Definition Quality
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Discloses payment model (USDC, $0.006 per render), header requirement, and error recovery (returns PaymentRequirement). Also explains data merging behavior. No contradiction with annotations (readOnlyHint=false). OpenWorldHint not explained, but overall transparent for a paid tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Description is concise (~120 words) with well-structured sentences. Each sentence adds value: purpose, payment, error handling, data merging. No redundancy or fluff.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no output schema and minimal annotations, the description covers purpose, payment, parameter usage, and error scenario. Lacks explicit return structure beyond base64, but is otherwise complete for a paid template renderer.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, and description adds meaning beyond schema: explains merging for 'data', recommends calling get_starter for shape, gives example for 'pageOptions', and advises listing starters for 'template'. This enriches understanding significantly.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states it renders a starter template to PDF and returns base64 bytes. It specifies the number of templates (45) and output format, but does not explicitly differentiate from sibling render_html_to_pdf, though purpose is clear.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides detailed usage context: payment via x402, X-PAYMENT header handling, auto-retry for payment, and data merging behavior. Suggests calling get_starter and list_starters for guidance. Lacks explicit when-not-to-use guidance but context is strong.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Claim this connector by publishing a /.well-known/glama.json file on your server's domain with the following structure:
{
"$schema": "https://glama.ai/mcp/schemas/connector.json",
"maintainers": [{ "email": "your-email@example.com" }]
}The email address must match the email associated with your Glama account. Once published, Glama will automatically detect and verify the file within a few minutes.
Control your server's listing on Glama, including description and metadata
Access analytics and receive server usage reports
Get monitoring and health status updates for your server
Feature your server to boost visibility and reach more users
For users:
Full audit trail – every tool call is logged with inputs and outputs for compliance and debugging
Granular tool control – enable or disable individual tools per connector to limit what your AI agents can do
Centralized credential management – store and rotate API keys and OAuth tokens in one place
Change alerts – get notified when a connector changes its schema, adds or removes tools, or updates tool definitions, so nothing breaks silently
For server owners:
Proven adoption – public usage metrics on your listing show real-world traction and build trust with prospective users
Tool-level analytics – see which tools are being used most, helping you prioritize development and documentation
Direct user feedback – users can report issues and suggest improvements through the listing, giving you a channel you would not have otherwise
The connector status is unhealthy when Glama is unable to successfully connect to the server. This can happen for several reasons:
The server is experiencing an outage
The URL of the server is wrong
Credentials required to access the server are missing or invalid
If you are the owner of this MCP connector and would like to make modifications to the listing, including providing test credentials for accessing the server, please contact support@glama.ai.
Discussions
No comments yet. Be the first to start the discussion!