Skip to main content
Glama

doc_tools_pdf_to_images

Draw the pages of a PDF as PNG, JPEG or WebP at the resolution you choose: thumbnails, previews, slides for a post, or page images to look at or run text recognition on. Price: $0.02 USDC via x402, charged only on success. Part of Document tools: Work with PDFs and scans: read the text out of a PDF with page numbers and metadata, recognize the text in a scan, photo or screenshot, merge PDFs, take or reorder pages, split into parts, and turn images into a PDF..

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": "doc_tools_pdf_to_images"
  }
}

Input Schema

NameRequiredDescriptionDefault
dpiNoResolution. 72 for thumbnails, 150 for reading on screen, 300 for print or OCR.
pdfNoPDF file as base64.
pagesNoPages to draw, like "1-3,7". The first 20 when omitted.
formatNopng
pdfUrlNoLink to the PDF.
qualityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does add one genuinely valuable behavioral fact: the cost model ('$0.02 USDC via x402, charged only on success'). However, it says nothing about what comes back (one image per page? base64 or links?), how large outputs can get, or how pdf versus pdfUrl are chosen when neither is marked required — the operationally risky facts for a zero-required-parameter tool.

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?

The front-loaded first sentence and the pricing sentence are efficient and earn their place. The trailing 'Part of Document tools: ...' paragraph is a suite-wide boilerplate catalog that spends most of its length describing sibling capabilities rather than this tool, which is dead weight for an agent deciding how to call this one.

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 6-parameter tool with zero required inputs, no output schema, and no annotations, the description leaves the two biggest operational questions unanswered: which input source to supply (pdf base64 vs pdfUrl) and what the result looks like. The pricing detail is welcome, but the definition is not complete enough for confident invocation without inspecting the schema.

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 67%, and the description's mention of resolution presets largely restates the dpi schema text ('72 for thumbnails, 150 for reading on screen, 300 for print or OCR'). The remaining undescribed parameters — format (enum only), quality, and the pdf/pdfUrl either-or relationship — get no added meaning from the description.

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?

The opening clause gives a specific verb and resource ('Draw the pages of a PDF as PNG, JPEG or WebP at the resolution you choose') and immediately scopes the output formats and the resolution choice. That distinguishes it cleanly from sibling text/OCR tools such as doc_tools_pdf_text or doc_tools_ocr, which produce text rather than page images.

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?

It supplies concrete use contexts ('thumbnails, previews, slides for a post, or page images to look at or run text recognition on'), which tells an agent when rasterization is the right move and even hints that OCR is a downstream consumer. It stops short of explicit exclusions or naming an alternative tool to use instead when the goal is text extraction, so it is strong but not complete routing guidance.

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