Skip to main content
Glama

RenderForge Web & Document Engine

Render HTML or URL to PDF

html_to_pdf
Read-onlyIdempotent

Render raw HTML/CSS markup or a public HTTP/HTTPS webpage URL into a print-ready PDF document using headless Chromium. Provide either html or url. Returns JSON containing content_type, size_bytes, and base64-encoded PDF bytes. Cost: 2 credits.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "html_to_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic http:// or https:// webpage URL to convert to PDF (provide this or html).
htmlNoRaw HTML markup to render into a PDF (provide this or url).
landscapeNoSet true to render PDF pages in landscape orientation.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, and the description sensibly does not repeat them. Instead it adds genuinely new context: headless Chromium as the renderer, the exact response envelope (content_type, size_bytes, base64 PDF), and a cost of 2 credits. Remaining gaps are operational limits – timeouts, page-size caps, or behavior on JS-heavy pages – which are unstated.

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?

Four short sentences, front-loaded with the capability before the input rule, the return shape, and the cost. Every sentence carries distinct information with no restatement of the name or annotations.

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 no output schema, the description correctly takes on the return-value burden by naming the JSON fields. For a three-parameter tool this covers inputs, output, and pricing adequately; only failure modes and rendering limits are missing.

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 description coverage is 100%, so the schema already documents url, html and landscape fully. The description reinforces the html/url exclusivity but adds no syntax, format, or default information beyond the schema, so the baseline 3 applies.

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?

States a specific verb ('Render') and concrete inputs ('raw HTML/CSS markup or a public HTTP/HTTPS webpage URL') plus the output artifact ('print-ready PDF'), which implicitly separates it from markdown/screenshot siblings. It stops short of naming an alternative tool, so it is clear but not explicitly differentiated.

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 mutual-exclusivity rule 'Provide either html or url' is a useful usage constraint. However, there is no guidance on when to choose this tool over a sibling like website_screenshot or url_to_markdown, and no mention of preconditions such as whether the URL must be publicly reachable without auth (beyond 'public').

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.