Skip to main content
Glama

Render PDF pages

render_pdf_pages
Read-onlyIdempotent

Render PDF pages to PNG or JPEG. DPI is 72 to 216. A page range such as 1-3,5 is optional. At most 24 pages and 25 MB of images. Send base64 or a public URL. Private addresses are refused. Returns image base64 and a ZIP when there is more than one page.

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_pages"
  }
}

Input Schema

NameRequiredDescriptionDefault
dpiNo
urlNoPublic URL of a PDF. Private and local addresses are refused. Provide data or url.
dataNoPDF bytes as base64 or a data URI. Decoded size is capped at 10 MB. Provide data or url.
rangeNoPages to render, such as 1-3,5. Blank renders every page, up to 24.
formatNopng
qualityNoJPEG quality from 1 to 100. Ignored for PNG.
filenameNo
mimeTypeNo

Output Schema

NameRequiredDescriptionDefault
zipYesZIP of the images when there is more than one, otherwise null.
imagesYes
pageCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, open-world, so safety is covered; the description goes beyond them by disclosing SSRF-style refusal of private addresses, page and size caps, and the multi-page ZIP return behavior. Error semantics and what happens when a range exceeds the cap are left 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?

Six short sentences, each carrying a distinct fact, with the primary action first and the hard limits following. No filler or restated title content.

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 an 8-parameter tool with an output schema and no required parameters, the description covers the operational envelope an agent needs to call it successfully. The remaining gap is the three undocumented parameters, which is a schema problem more than a prose one.

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 coverage is only 50%, and the description compensates only partially: it explains the range syntax '1-3,5', the DPI band, and the data-or-url choice. It says nothing about quality (JPEG-only), filename, or mimeType, which remain entirely undocumented across both schema and description.

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 and resource plus the output formats: 'Render PDF pages to PNG or JPEG'. That implicitly separates it from text-extraction or compression siblings, and an agent knows exactly what it gets back 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?

The description lists hard operating limits (24 pages, 25 MB, DPI 72-216, no private addresses) which frame when the call will succeed, but never names an alternative such as extracting text instead of rasterizing, nor when to prefer data over url. Usage is implied by constraints rather than stated as guidance.

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.