Skip to main content
Glama

Create a PDF from local images

abox_images_to_pdf

Combine JPEG, PNG, or WebP images into a single PDF in your chosen order, one per page, with configurable paper size, margins, and encoding, then verify page counts and dimensions.

Instructions

Place still JPEG, PNG or WebP images into a new PDF in the requested order, one per page. Supports paper sizes, margins and lossless or JPEG encoding with local browser codecs. Reopens and verifies page counts and dimensions. Keep mode can embed original JPEG metadata.

Input Schema

NameRequiredDescriptionDefault
dpiNo
fitNocontain
qualityNo
max_sideNo
margin_mmNo
page_sizeNoa4
backgroundNo#ffffff
image_modeNokeep
input_pathsYes
orientationNoauto
output_pathYesAbsolute local filesystem path. URLs and network shares are refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already establish the safety profile: not read-only, not open-world, not idempotent, not destructive. The description adds useful behavioral context beyond that, including verification by reopening the PDF and checking page counts/dimensions, local codec use, and metadata retention in keep mode.

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?

The description is four efficiently written sentences, front-loads the core action and output, then layers on supported formats and verification behavior. There is no filler or repetition.

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?

Given 11 parameters, low schema coverage, and no output schema, the description is only partially complete. It covers the core workflow and verification but omits important operational details like overwrite behavior, limits on input volumes, and semantics for several non-enum parameters.

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 only 9%, so the description needs to compensate, and it does for some parameters: input order, paper sizes, margins, lossless/JPEG encoding, and keep-mode metadata. However, many parameters such as dpi, fit, quality, max_side, background, and orientation remain unexplained, leaving clear gaps.

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 states a specific verb and resource: placing JPEG, PNG, or WebP images into a new PDF, one per page, in requested order. That clearly distinguishes it from PDF merge/split and image conversion siblings, though it does not explicitly name an alternative for related tasks.

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?

The description explains what the tool does but gives no explicit guidance on when to use it versus siblings like abox_images_to_video, abox_pdf_merge, or abox_image_convert. Any usage context is implied by the purpose rather than stated.

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