Skip to main content
Glama

FMF Tools Doc Tools

pdf_images

PDF pages to images ($0.005 per call, paid via MPP on Tempo). Render PDF pages to PNG or JPEG images (for vision models, OCR, thumbnails). Params: pages="1-3" (default first 10, max 50 per call), dpi (36-300, default 110), format png|jpeg, quality (JPEG), output=zip for a ZIP file instead of JSON base64. Up to 40 MB. HTTP POST https://mpp-docs.fmf-x402.workers.dev/mpp/pdf/images. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pdf_images"
  }
}

Input Schema

NameRequiredDescriptionDefault
dpiNo
urlNoPublic URL of the file
dataNoBase64 file content (alternative to url)
pagesNo1-based pages (default first 10, max 50)
formatNopng
outputNojson
qualityNo
filenameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses per-call cost ($0.005), the MPP payment mechanism, the fact that the wrapper does not settle payment itself and needs an Authorization header, and the 40 MB input limit. The main gap is failure behavior for invalid page ranges or oversized input, which is not covered.

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?

Dense but front-loaded: cost and purpose come first, then parameters, then the endpoint and payment caveat. The raw HTTP URL and MPP mechanics are somewhat verbose for an MCP caller, but every clause conveys operational information rather than filler.

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?

For an 8-parameter, no-output-schema tool, the description covers the essential call path: how pages are selected, resolution bounds, output encoding, size limit, and the auth requirement. Only the filename parameter and any error/limit semantics remain undocumented, which are minor omissions against the otherwise thorough coverage.

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 only 38%, so the description must compensate, and it largely does: it restates pages/dpi/format with defaults and bounds, and adds genuinely new meaning by clarifying that quality applies only to JPEG and that output=zip returns a ZIP file instead of JSON base64. It leaves filename undefined and only partially explains how url vs data are alternates, keeping it below a 5.

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?

Opens with a specific verb+resource ('Render PDF pages to PNG or JPEG images') and names the concrete use cases (vision models, OCR, thumbnails), which cleanly separates it from pdf_text, pdf_markdown, and pdf_info siblings. An agent can tell instantly that this produces raster output rather than extracted text.

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

Usage Guidelines4/5

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

The parenthetical '(for vision models, OCR, thumbnails)' gives clear situational context for choosing this tool, and the payment note tells the agent a precondition for success. It stops short of explicitly routing away to siblings (e.g., use pdf_text when you only need text), so it is strong but not a full when/when-not statement.

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