Skip to main content
Glama

render_pdf

Read-only

Converts a PDF page to a PNG image at a chosen DPI using pdftoppm, so you can inspect pages without a browser.

Instructions

Render a PDF page as a PNG image using pdftoppm. No browser needed.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "render_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
dpiNoResolution in DPI
pageNoPage number to render (1-indexed)
pathYesAbsolute path to the PDF file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds real operational context — local pdftoppm conversion with no browser dependency — but says nothing about where the PNG lands or how it is returned, which matters for a render tool.

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 short sentences, front-loaded with the action and output format, with zero redundant wording. Nothing here could be removed without losing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple three-parameter read-only renderer this is close to sufficient, and the schema covers inputs fully. The notable gap is the return value: with no output schema, an agent cannot tell whether it receives image bytes, a file path, or a base64 payload.

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 100%, so path, page, and dpi are all documented with defaults and bounds in the schema. The description adds no parameter meaning beyond that, which is the appropriate baseline when the schema carries the full load.

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: render a PDF page as a PNG. The 'using pdftoppm, no browser needed' clause implicitly separates it from the browser-based siblings (render_url, render_html), though it never names which sibling to pick when a PDF is already on disk.

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?

No explicit when-to-use or when-not-to-use guidance, and no mention of render_pdf_smart, which is the obvious alternative an agent would need to disambiguate against. Usage is only inferable from the requirement that 'path' be an absolute PDF path.

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