Skip to main content
Glama

Benchline

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.

Input Schema

TableJSON 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

TableJSON 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. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the readOnly/openWorld/idempotent annotations, the description discloses real operational constraints: DPI bounds, a 24-page cap, a 25 MB image cap, refusal of private addresses, and the base64-plus-ZIP return shape. These limits materially shape invocation, though auth/permission behavior is not discussed.

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?

Seven short sentences, front-loaded with the core operation and then the constraints; nothing is padded. The telegraphic style is efficient, though the fragment structure reads slightly clipped rather than polished.

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 an output schema present, return values need not be explained, yet the description still notes the base64/ZIP result. Safety is covered by annotations and the size/address constraints are stated, so an agent has what it needs; only the roles of filename, mimeType, and quality are left unaddressed.

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 only 50%, so the description has to carry some load, and it does clarify the input source (base64 or public URL), the DPI bounds, and the range syntax such as 1-3,5. However, much of this repeats the schema's own parameter descriptions, and quality, format, filename, and mimeType receive no added meaning.

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?

The first sentence gives a specific verb+resource+output ('Render PDF pages to PNG or JPEG'), which clearly separates it from siblings like extract_pdf_text, images_to_pdf, or compress_pdf. It does not explicitly name or contrast a sibling, but the operation is unambiguous 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 operation and by input guidance ('Send base64 or a public URL'), but there is no explicit when-to-use, when-not-to-use, or named alternative (e.g., extract_pdf_text for text, convert_image for format changes). An agent can infer the context but is given no routing help.

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