Skip to main content
Glama

RenderHub — PDF, Markdown, Invoice, Screenshot & OG Image MCP

render_pdf

Renders raw HTML/CSS or a public URL into a print-ready PDF document (A4, Letter, etc.) and returns a base64 resource plus a 5-minute download link.

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": "render_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic URL to convert into PDF (if html is omitted).
htmlNoHTML/CSS markup to render into PDF.
formatNoPage size (default A4).
landscapeNoLandscape orientation (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose genuinely useful behavior: the return shape (base64 resource plus download link) and that the link expires in 5 minutes, plus the constraint that the URL must be public. It omits permission requirements, size/page limits, and what happens on render failure, so the behavioral picture is only partial.

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?

A single front-loaded sentence that carries input modes, output artifact, format scope, and return shape with essentially no filler. The parenthetical '(A4, Letter, etc.)' mildly duplicates the enum but also communicates 'page size', so it earns its place.

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?

For a 4-parameter, all-optional render tool with full schema coverage and no output schema, this is close to sufficient: inputs, formats, and return values are all addressed. Missing pieces are secondary — auth needs, size/time limits, and error behavior for unreachable URLs.

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; the description adds a little by framing format as page size with examples (A4, Letter, etc.) and by positioning html and url as alternatives. It adds no defaults or precedence rules beyond what the schema already states, so it earns only a modest lift above baseline.

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 and artifact: 'Renders ... into a print-ready PDF document', and names the two accepted input modes (raw HTML/CSS or public URL). It does not explicitly differentiate itself from siblings like markdown_to_pdf or generate_invoice_pdf, which is why it stops short of 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description never says when to use this versus markdown_to_pdf, generate_invoice_pdf, or capture_screenshot, and offers no exclusions or prerequisites. Usage is only implied by the fact that the tool produces PDFs, with the html/url choice documented in the schema rather than the description.

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