Skip to main content
Glama

Render PDF page

read_pdf_page
Read-onlyIdempotent

Render a 1-based PDF page as a JPEG image when layout or graphics matter; otherwise extract text first.

Instructions

Render one PDF page (1-based) as JPEG. Prefer read_pdf_text unless layout or graphics matter.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageYes
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, idempotentHint=true, destructiveHint=false, openWorldHint=false), so the bar is lower. The description still adds value beyond them by disclosing the return format (JPEG image) and the 1-based page numbering, which prevents off-by-one errors. It does not mention resolution/quality or size of the rendered output.

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 tight sentences with zero filler. The core behavior (what is rendered, in what format, with what indexing) is front-loaded ahead of the alternative-tool guidance.

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 states the return type is a JPEG. Both parameters are at least partially addressed and the sibling relationship is resolved, leaving only rendering options (resolution, color) unmentioned, which the schema itself does not expose either.

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 0%, so the description must carry parameter meaning. It clarifies that 'page' is 1-based, which is genuinely useful, and 'path' is inferable as the PDF location, but no format or path-constraint detail is given for either parameter.

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), resource (one PDF page), and output format (JPEG), plus the 1-based indexing convention. It also names the sibling tool it is not (read_pdf_text), so an agent can distinguish it without opening either schema.

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

Usage Guidelines5/5

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

Explicitly routes between alternatives: 'Prefer read_pdf_text unless layout or graphics matter.' The condition that selects this tool over the text extractor is stated directly, leaving nothing to inference.

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