Skip to main content
Glama

Images to PDF

images_to_pdf

Combine JPG or PNG files into one PDF, with one page per image in the order provided, each page sized to its image and no re-compression.

Instructions

Make one PDF from JPG or PNG images, one page per image in the order given, each page sized to its image (no re-compression). Returns the saved path and page count; the inputs are not changed.

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": {
      "files": "<files>"
    },
    "name": "images_to_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesJPG or PNG paths, in page order.
outputNoWhere to save the result. Defaults to a new file next to the input.

Output Schema

NameRequiredDescriptionDefault
notesYesAnything the output does not carry over from the input.
summaryYesOne line describing the result.
writtenYesPaths of the files written, in order.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.2

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-destructive, non-idempotent, closed-world, so the safety profile is covered. The description still adds real behavior beyond them: no re-compression, page size matched to each image, input files left unchanged, and what is returned. It omits failure modes such as unsupported or corrupt images.

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?

Two tight sentences; the core action and page-mapping rule come first, with behavioral notes (no re-compression, inputs unchanged) and return values following. No filler or redundancy.

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

Completeness4/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, this is nearly complete — the agent knows what goes in, how pages are ordered, and that inputs are untouched. Only edge-case behavior (invalid image, size limits, overwrite handling) is absent.

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 100%, so both parameters are already documented, including 'in page order' and the default output location. The description reinforces ordering semantics but adds no new detail about formats, path conventions, or the output parameter beyond the schema.

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 and resource ('Make one PDF from JPG or PNG images') plus the exact page-mapping rule, so an agent knows precisely what it produces. It doesn't name any sibling to contrast with, but the conversion direction is unambiguous against the rest of the file-conversion catalog.

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 only implied by the input types: use it when you have JPG/PNG files and want a single PDF. There is no explicit statement of when to prefer it over another tool, nor any exclusions or prerequisites.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.