Skip to main content
Glama

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.

MCP client
Glama
MCP server

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.

100% free. Your data is private.
Tool DescriptionsA

Average 4.7/5 across 4 of 4 tools scored. Lowest: 4.1/5.

Server CoherenceA
Disambiguation5/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.

Naming Consistency5/5

All names follow a consistent verb_noun pattern in snake_case: list_starters, get_starter, render_html_to_pdf, render_template_to_pdf.

Tool Count5/5

Four tools cover the server's scope (template discovery and PDF rendering) without being excessive or insufficient.

Completeness5/5

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 tools
get_starterA
Read-only
Inspect

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
slugYesThe starter slug. Examples: "invoice", "receipt", "certificate", "contract", "nda", "boarding-pass", "menu". Call list_starters to discover all 45 slugs.
Behavior5/5

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.

Conciseness5/5

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.

Completeness5/5

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.

Parameters4/5

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.

Purpose5/5

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.

Usage Guidelines5/5

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_startersA
Read-only
Inspect

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.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Behavior5/5

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.

Conciseness5/5

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.

Completeness5/5

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.

Parameters4/5

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.

Purpose5/5

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.

Usage Guidelines5/5

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
cssNoOptional CSS injected into the document head. Alternative to inline <style> in `html`.
dataNoHandlebars context object resolved against the {{...}} expressions in `html`.
htmlYesThe 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.
pageOptionsNoPage format/margin/orientation. Defaults to A4 portrait. Example: { "format": "A4", "margin": { "top": "20mm" } }.
Behavior5/5

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.

Conciseness5/5

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.

Completeness5/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines5/5

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).

ParametersJSON Schema
NameRequiredDescriptionDefault
dataNoHandlebars 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.
templateYesSlug of the starter to render (e.g. "invoice", "receipt", "certificate"). Call list_starters first if unsure which fits the user request.
pageOptionsNoPage format/margin/orientation overrides. Defaults come from the starter (most are A4 portrait). Example: { "format": "Letter", "landscape": true }.
Behavior4/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters4/5

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.

Purpose4/5

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.

Usage Guidelines4/5

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.

Discussions

No comments yet. Be the first to start the discussion!

Try in Browser

Your Connectors

Sign in to create a connector for this server.

Resources