Skip to main content
Glama
twoer

pdf-toolbox-mcp

by twoer

Tool Render Pages

tool_render_pages

Convert selected PDF pages to PNG images to visually inspect complex layouts, charts, or scanned pages directly.

Instructions

渲染指定页为 PNG。return_images=True 时直接返回图像内容块(供视觉查看复杂版面/图表/扫描页)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dpiNo
pathYes
pagesNo1
out_dirNo
return_imagesNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.1

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure. It does reveal the key behavioral difference for return_images=True (direct image content blocks), which is valuable. However, it doesn't mention what happens when return_images=False, whether files are written to out_dir, or any side effects or prerequisites.

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?

The description is extremely short and front-loaded. The core action is stated first, and the return_images behavior is added as a useful conditional. Every word earns its place.

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

Completeness2/5

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

For a tool with 5 parameters, no output schema, and no annotations, this description is minimal. It fails to define the pages string syntax, the meaning of dpi, the role of out_dir, or what the non-return_images mode returns. An agent would likely need external documentation to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. Only return_images is partially explained; dpi, pages, path, and out_dir receive no semantic meaning beyond their names and types. The agent would have to guess the pages format, DPI behavior, and output directory semantics.

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 description states a clear verb and resource: render specified pages as PNG. It also explains the return_images mode, which helps distinguish this from extraction or OCR tools. However, it doesn't explicitly contrast with sibling tools like extract_images or ocr_pdf.

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?

It gives one concrete usage hint: use return_images=True when you need visual inspection of complex layouts, charts, or scanned pages. But it doesn't explain when to prefer this over alternatives or when not to use it, leaving much of the decision to inference.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/twoer/pdf-toolbox-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server