Skip to main content
Glama

PDF Efforts

PDF to JPG / PNG images

pdf_to_images
Idempotent

Render PDF pages as images (one JPG or PNG file per page).

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": {
      "file": "<file>"
    },
    "name": "pdf_to_images"
  }
}

Input Schema

NameRequiredDescriptionDefault
dpiNo72 = web, 150 = standard, 300 = print quality.
fileYesThe PDF.
pagesNoPages to render: "all", or numbers and ranges such as "1-3, 5, 8-end" ("end" = last page).all
formatNojpg
jpg_qualityNoJPG quality in percent (JPG only).
transparentNoTransparent background (PNG only).

Output Schema

NameRequiredDescriptionDefault
infoNoFacts about the PDF (get_pdf_info) or the result (e.g. target_met for compress_pdf).
noteNoAnything the user should know about the result.
textNoExtracted text (pdf_to_text, ocr_pdf).
filesYesResult files. Download them before expires_at; pass file_id to another tool to chain.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=true and openWorldHint=true, so the safety profile is covered. The description adds one genuinely useful behavioral fact — output cardinality, one image file per rendered page — but says nothing about result volume limits, how the produced files are returned, or any processing constraints.

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?

A single front-loaded sentence with zero filler and the output cardinality stated up front. It is efficient, though the extreme brevity leaves no room for the routing or behavioral context the tool would benefit from.

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?

With an output schema, full annotations and 83% parameter coverage, the structured fields carry most of the burden, so the description is adequate. It is still thin for a six-parameter, nested-input conversion tool: it does not explain what the agent receives when many pages are rendered or any practical limits.

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 83%, so the schema already documents dpi, pages ranges, jpg_quality, transparent and the file source options. The description adds no parameter meaning beyond that, which is acceptable at this coverage level but not additive.

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 gives a specific verb and resource ("Render PDF pages as images") and states the output shape ("one JPG or PNG file per page"), which distinguishes it from text/office extraction siblings. It does not explicitly name a contrasting sibling, so it stops short of a 5.

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?

There is no when-to-use or when-not-to-use guidance, and no mention of alternatives such as pdf_to_text or pdf_to_word for agents that want content rather than page imagery. The purpose implies the use case, but nothing in the text routes the agent between conversion siblings.

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