Skip to main content
Glama

doc_tools_images_to_pdf

One PDF from a set of images, one per page: scans, photos of documents, screenshots, slides. Pages sized to A4 or Letter with margins, or exactly to each image; phone photos are turned upright. Price: $0.01 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

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": {
      "images": "<images>"
    },
    "name": "doc_tools_images_to_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNo
imagesYes
qualityNoJPEG quality for photos. Images with transparency stay lossless.
marginMmNo
pageSizeNofit makes each page exactly the size of its image.A4
orientationNoauto turns the page to match each image.auto

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does so well: it discloses output shape (one PDF, one image per page), layout behavior (A4/Letter with margins, or exact-fit), automatic uprighting of phone photos, and a clear pricing model ($0.01 USDC via x402, charged only on success), which is meaningful behavioral and cost context. Gaps remain on what happens with mixed formats, ordering guarantees, failure/refund handling beyond 'charged only on success', and what the caller receives back.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first two sentences are tight, front-loaded, and high-value. The appended 'Part of Document tools: ...' block is a catalog dump that restates sibling capabilities and even re-describes this tool ('turn images into a PDF'), adding length without aiding invocation, and it ends with a stray double period.

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?

For a 6-parameter mutation tool with no annotations and no output schema, the description covers composition, layout, orientation, and pricing. It does not tell the agent what is returned (URL, base64, or binary) or how image order and limits (max 60, min 1) are treated, which matters when no output schema exists to compensate.

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 50%, and the description adds meaning for several of the undocumented parameters: page sizing and margin behavior, and that phone photos are turned upright (relevant to the auto orientation setting). However, it says nothing about title, the base64-vs-URL distinction in the images array, or quality, leaving a meaningful share of parameters explained only by the schema or not at all.

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 states a specific verb and resource: turning a set of images into one PDF, one image per page. It further narrows scope with concrete input types (scans, photos, screenshots, slides), so an agent can immediately distinguish it from siblings like doc_tools_pdf_merge or image_tools_convert.

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 description gives clear usage context through enumerated input types and a trailing catalog that names adjacent capabilities (read text from PDF, recognize text in a scan, merge, reorder, split) so the agent can route elsewhere when appropriate. It stops short of explicit when-not-to-use conditions or naming a specific alternative for ambiguous cases like a single image.

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