Skip to main content
Glama

Combine images into a PDF

images_to_pdf

Combine one or more images (PNG/JPEG/WebP) into a single PDF, one image per page, pages sized to each image. Input: a list of base64-encoded image contents (each max 15 MB / 40 MP). Returns a download_url for the PDF (link valid 24 hours), its size and page count. Costs 1 credit; 5 free calls per month.

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_base64": "<images_base64>"
    },
    "name": "images_to_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
dpiNoOutput resolution in DPI, 72-600 (default 200).
images_base64YesThe images (PNG/JPEG/WebP), each as a base64-encoded string, in page order (each max 15 MB / 40 MP).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / dpi / description
      Added value: +"Output resolution in DPI, 72-600 (default 200)."
    • addedInput schema / properties / images_base64 / description
      Added value: +"The images (PNG/JPEG/WebP), each as a base64-encoded string, in page order (each max 15 MB / 40 MP)."
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-destructive, non-idempotent operation, so the description's job is additive — and it delivers: the output is a download_url with a 24-hour expiry, plus size and page count, and each image is capped at 15 MB / 40 MP. It stops short of stating authentication needs or what happens to oversized/invalid images, which keeps it from a 5.

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?

Three compact sentences that lead with the core operation and then append constraints, output, and cost in descending order of importance. Every clause carries information, though the second sentence is a dense list of limits that reads as slightly packed rather than cleanly structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter conversion tool with full schema coverage and an output schema, the description covers formats, per-image limits, page ordering/sizing, return payload, link lifetime, and pricing — everything an agent needs before invoking it. No material gap remains.

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 100%, so both parameters (images_base64 and dpi) are already documented in the schema. The description reinforces formats, the size cap, and page-order semantics for the image list, but says nothing about dpi or its 72-600 range, so it adds only partial meaning beyond the schema. Baseline 3 applies.

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?

States a specific verb and resource ('Combine one or more images ... into a single PDF') plus the exact accepted formats (PNG/JPEG/WebP), page ordering, and page sizing behavior. An agent can distinguish this from merge_pdfs purely on input type (images vs. existing PDFs) without opening either schema.

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?

Cost information ('Costs 1 credit; 5 free calls per month') is genuinely useful context for deciding whether to call it, and the size caps imply when the tool will reject input. However, there is no explicit guidance on when to prefer a sibling such as merge_pdfs or file_to_markdown, and no stated prerequisites.

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.