Skip to main content
Glama

render_html_to_pdf

Convert HTML into a PDF via the PaperSprocket API. Returns the PDF file, its local path, and billing metadata such as page count and cost.

Instructions

Render HTML to a PDF through the PaperSprocket API. Returns the PDF as an application/pdf embedded resource (base64 blob), the local file path when the server can write it, and render metadata (render_id, page_count, charged_cents, balance_cents). Billed to the configured PaperSprocket account.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
htmlYesHTML to render (non-empty).
pageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden and does well: it discloses that the call is billed to the configured account (charged_cents, balance_cents), what artifacts come back (embedded base64 resource, local file path when writable), and render metadata. It omits auth requirements, failure modes, and rate limits, so it is strong but not exhaustive.

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 tightly written sentences, with the core action front-loaded and the return/billing details following in order of importance. No filler.

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 usefully documents the return shape (embedded resource, file path, render metadata) and the billing implication, which is exactly the value it needs to add. It stops short of covering error conditions or authentication, but for a 2-parameter render tool it is largely complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 50%, and the description adds nothing about parameters beyond 'HTML to PDF'. Key semantics such as default page size, margin defaults, and orientation live only in the nested schema, so the description fails to compensate for the coverage gap.

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?

States a specific verb (render) and resource (HTML to PDF) and names the backing service (PaperSprocket API). An agent immediately knows what the tool produces without opening the schema.

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?

Usage is implied by the purpose (convert HTML when a PDF is needed) and the sole sibling check_balance is unrelated, so no explicit routing is necessary. However, the description gives no when-to-use conditions, prerequisites, or limits, leaving guidance at the implied level.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools