Skip to main content
Glama

Render PDF

render_pdf
Read-only

Render a public web page or an inline HTML snippet to a paginated PDF document, using a real headless browser (JS, CSS, and web fonts execute). Use this to turn a URL or HTML into a downloadable/printable PDF, e.g. an invoice, report, or saved article.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoPublic http(s) URL to render (exactly one of url/html)
htmlNoRaw HTML to render (exactly one of url/html, max 1MB)
widthNoViewport width in pixels, 320-1920 (default 1280)
heightNoViewport height in pixels, 240-1080 (default 800)

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, and destructiveHint=false. The description adds value by noting that JS, CSS, and web fonts execute in a real headless browser—context beyond the safety flags. It does not mention potential limitations (e.g., timeouts, pagination control), but with annotation coverage, this is a solid 4.

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 concise and front-loaded: two sentences that state the operation, mechanism, and typical use cases. No filler or redundant restating of the title. Perfectly sized.

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?

With 4 fully described parameters, no output schema, and useful annotations, the description sufficiently conveys the tool's scope and output (a PDF document). It could benefit from noting how the PDF is returned or any pagination details, but the current description is adequate for an agent to select and invoke it correctly.

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 covers all 4 parameters with descriptions, so the bar is at baseline 3. The description does not add extra meaning to parameters beyond what the schema already provides (e.g., exactly one of url/html, min/max dimensions). Thus, no additional semantic value.

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 what the tool does: renders a public web page or HTML snippet to a PDF document. It explicitly distinguishes the output (PDF vs. screenshot) and the rendering mechanism (real headless browser), setting it apart from sibling tools like screenshot_url or extract_page.

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?

The description provides clear usage context (turn a URL/HTML into a printable PDF for invoices, reports, saved articles) and implies input constraints, but it does not explicitly contrast with when to use screenshot_url or extract_page. Since siblings exist, lack of explicit exclusions drops this to 4.

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.

TDQS

A4.1/5.0
Disambiguation4/5

Each tool targets a distinct output format (markdown/JSON, OG image, PDF, screenshot), but render_og and screenshot_url both produce images and could be confused without careful reading. Descriptions are clear enough for most cases.

Naming Consistency3/5

Names mix patterns: extract_page uses verb_noun, render_og/render_pdf use render_ prefix, and screenshot_url uses screenshot_ prefix. While readable, the conventions are not fully consistent across the set.

Tool Count5/5

Four tools is a well-scoped count for a rendering API, covering common needs without bloat. Each tool has a clear purpose and earns its place.

Completeness4/5

The set covers web page extraction and HTML/URL rendering to common output formats (PDF, image, OG image). A minor gap is lack of direct HTML-to-text or batch rendering, but core workflows are well covered.

Resources