Skip to main content
Glama

Gotenberg by pagespool

Convert an HTML file to PDF with Chromium

html_to_pdf
Read-only

Convert an HTML document up to 4 MB to a PDF with Chromium (Gotenberg).

Pass the HTML as base64 in content_base64, or as a download link in file. JavaScript runs, and images, fonts and CSS the HTML links by public https URL are loaded. Returns {"download_url": "<link>", "size_bytes": <PDF size>, "expires_in_minutes": 60}: give the user the download_url. Requires an API key.

Credits: 1 per call.

Input Schema

NameRequiredDescriptionDefault
fileNoThe file as a download link, instead of `content_base64`. In ChatGPT, pass the user's uploaded file here. Other clients can set `download_url` to a public https URL.
content_base64NoThe file, base64-encoded. Up to 4 MB before encoding.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

With readOnlyHint/openWorldHint already given, the description still adds real behavior: 4 MB cap, JavaScript execution, that externally linked images/fonts/CSS are fetched, API-key requirement, 1 credit per call, and a 60-minute link expiry. These are exactly the operational facts an agent needs before committing a call.

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?

Front-loaded with the core action and input limit, then input routing, then side effects, then return shape and cost. Every sentence carries information, though the explicit return-value block is partially redundant with the existing output schema.

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 two-parameter, nested-object tool with an output schema and open-world annotations, nothing material is missing: input modes, size cap, external-resource behavior, auth and credit cost are all covered, and the return payload is spelled out even though the output schema already defines it.

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 prose adds meaning beyond the field descriptions by framing the two parameters as alternative input paths rather than independent options, and by clarifying that the 4 MB limit applies to the HTML before encoding.

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 gives a specific verb+resource ('Convert an HTML document ... to a PDF') plus the rendering engine (Chromium/Gotenberg) and the input size ceiling. Against the only sibling, office_to_pdf, the resource distinction (HTML vs. office documents) is immediately legible without opening either schema.

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?

It states the two mutually exclusive input routes ('Pass the HTML as base64 in content_base64, or as a download link in file') and the constraint that linked assets must be public https URLs. It does not explicitly say when to pick this over office_to_pdf, so the routing is implied by file type rather than stated.

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.

Resources