Skip to main content
Glama

convert_pdf_to_image

Convert a specific page or all pages of a PDF to high-res JPG/PNG images.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNopng
fileUrlYesPDF file URL
pageNumberNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It hints at output quality ('high-res') and format (JPG/PNG), but says nothing about how images are returned (URLs, base64, one-per-page), size or page-count limits, or failure behavior for invalid URLs — substantial gaps for a conversion 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?

A single front-loaded sentence that covers the action, the scope (one page or all), and the output formats with zero filler.

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?

With no annotations, no output schema, and only 33% parameter coverage, the description would need to explain the return payload and key constraints. It omits how multiple page images are delivered and how to select all pages, leaving the agent under-informed for a 3-parameter tool.

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 33% (only fileUrl documented), so the description must compensate. It adds that a specific page OR all pages can be targeted, which gives pageNumber meaning beyond the bare schema, but it never says how to request 'all pages' (default is 1), leaving a real ambiguity unresolved.

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 (Convert) and resource (PDF pages to JPG/PNG images), and the direction is unambiguous against siblings like convert_images_to_pdf. It does not explicitly name or contrast those siblings, 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 Guidelines3/5

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

Usage is implied by the name and description (take a PDF and rasterize its pages), but there is no explicit when-to-use guidance or contrast with convert_images_to_pdf, compress_pdf, or convert_image_format. Nothing misleading, just nothing instructive either.

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