Skip to main content
Glama

pdf to images

pdf_to_images
Read-only

Render PDF pages to PNG or JPEG at 50-300 dpi (for vision models, previews or thumbnails). $0.008 + $0.001 per page (max_pages up to 50, default 10); continue with first_page. Costs $0.058 USDC per call (x402).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dpiNoDefault 150
urlNohttps URL of the file (max 20 MB)
storeNoReturn 7-day share links instead of base64 (+$0.001); automatic above 3 MB
formatNobinary = raw file bytes (single output)
filenameNoName with extension, helps detect the type
max_pagesNo1-50, default 10
first_pageNo
file_base64NoOr the file as base64 / data URI
image_formatNopng (default) or jpg

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=true, openWorldHint=true), and the description adds real behavioral context beyond them: per-page pricing, a USDC per-call cost, and the pagination model ('max_pages up to 50, default 10; continue with first_page'). This is useful cost and continuation info an agent would otherwise lack.

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?

Two dense sentences, front-loaded with the purpose and constraint range before the pricing. Every clause carries information, though the two cost statements ('$0.008 + $0.001 per page' and '$0.058 USDC per call') sit awkwardly together and could read as inconsistent.

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 9 parameters at 89% coverage and no output schema, the description supplies the cost, DPI range, and pagination model that matter for correct invocation. It omits any mention of the output shape (base64 vs share links) and the url-vs-base64 input choice, which the schema carries but the agent must still reconcile.

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 already 89%, so the baseline is 3, but the description adds meaning the schema does not: the 50-300 dpi operating range and the 'continue with first_page' pagination semantics. It does not clarify the url vs file_base64 source choice or the store/base64 output behavior.

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+resource+output ('Render PDF pages to PNG or JPEG at 50-300 dpi'), so the agent immediately knows what the tool produces. It does not name or differentiate itself from close siblings like pdf, pdf_tools, doc_convert, or image_convert, so it falls short of a 5.

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 parenthetical '(for vision models, previews or thumbnails)' implies intended use cases but never states when to prefer this over pdf_tools/image_convert or when not to use it. Usage is implied rather than explicitly routed.

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