Skip to main content
Glama

pdf_images_to_pdf

Images to PDF — Combine multiple images (JPG, PNG, TIFF) into a single PDF document. [category: pdf]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesYesInput files (JPG, JPEG, PNG, WEBP)
marginNoWhite border around each picture, in points - 72 points is one inch. A margin so large that nothing is left for the picture is ignored rather than refused.
fitModeNoHow each picture sits on the page.contain
pageSizeNoFit makes every page exactly the size of its own picture, so a phone photo becomes a page yards across. Any fixed size gives one uniform, printable document.fit
autoOrientNoTurn photos the right way up using the camera's own rotation tag. On by default — switch it off only if you want the raw pixels exactly as stored.
orientationNoLeave blank to follow the page size you picked.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / orientation / x-ui / unset_label
      Added value: +"Follows page size"
  2. Changed1 schema field changed
    • addedInput schema / properties / margin / x-ui
      Added value: +{
      +  "unit": "pt"
      +}
  3. Changed6 schema fields changed
    • addedInput schema / properties / autoOrient
      Added value: +{
      +  "default": true,
      +  "description": "Turn photos the right way up using the camera's own rotation tag. On by default — switch it off only if you want the raw pixels exactly as stored.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / files / description
      Previous value: -"Input files (JPG, PNG, TIFF)"New value: +"Input files (JPG, JPEG, PNG, WEBP)"
    • addedInput schema / properties / fitMode
      Added value: +{
      +  "default": "contain",
      +  "description": "How each picture sits on the page.",
      +  "enum": [
      +    "contain",
      +    "fill"
      +  ],
      +  "type": "string",
      +  "x-show-when": {
      +    "pageSize": [
      +      "a4",
      +      "a4-landscape",
      +      "letter",
      +      "letter-landscape",
      +      "legal",
      +      "legal-landscape",
      +      "a3",
      +      "a3-landscape",
      +      "a5",
      +      "a5-landscape",
      +      "tabloid",
      +      "tabloid-landscape"
      +    ]
      +  },
      +  "x-ui": {
      +    "labels": {
      +      "contain": "Show the whole picture",
      +      "fill": "Fill the page (crops the edges)"
      +    }
      +  }
      +}
    • addedInput schema / properties / margin
      Added value: +{
      +  "default": 0,
      +  "description": "White border around each picture, in points - 72 points is one inch. A margin so large that nothing is left for the picture is ignored rather than refused.",
      +  "maximum": 200,
      +  "minimum": 0,
      +  "type": "integer",
      +  "x-show-when": {
      +    "pageSize": [
      +      "a4",
      +      "a4-landscape",
      +      "letter",
      +      "letter-landscape",
      +      "legal",
      +      "legal-landscape",
      +      "a3",
      +      "a3-landscape",
      +      "a5",
      +      "a5-landscape",
      +      "tabloid",
      +      "tabloid-landscape"
      +    ]
      +  }
      +}
    • addedInput schema / properties / orientation
      Added value: +{
      +  "description": "Leave blank to follow the page size you picked.",
      +  "enum": [
      +    "portrait",
      +    "landscape",
      +    "auto"
      +  ],
      +  "type": "string",
      +  "x-show-when": {
      +    "pageSize": [
      +      "a4",
      +      "a4-landscape",
      +      "letter",
      +      "letter-landscape",
      +      "legal",
      +      "legal-landscape",
      +      "a3",
      +      "a3-landscape",
      +      "a5",
      +      "a5-landscape",
      +      "tabloid",
      +      "tabloid-landscape"
      +    ]
      +  },
      +  "x-ui": {
      +    "labels": {
      +      "auto": "Match each picture",
      +      "landscape": "Landscape",
      +      "portrait": "Portrait"
      +    }
      +  }
      +}
    • addedInput schema / properties / pageSize
      Added value: +{
      +  "default": "fit",
      +  "description": "Fit makes every page exactly the size of its own picture, so a phone photo becomes a page yards across. Any fixed size gives one uniform, printable document.",
      +  "enum": [
      +    "fit",
      +    "a4",
      +    "a4-landscape",
      +    "letter",
      +    "letter-landscape",
      +    "legal",
      +    "legal-landscape",
      +    "a3",
      +    "a3-landscape",
      +    "a5",
      +    "a5-landscape",
      +    "tabloid",
      +    "tabloid-landscape"
      +  ],
      +  "type": "string",
      +  "x-ui": {
      +    "labels": {
      +      "a3": "A3 portrait",
      +      "a3-landscape": "A3 landscape",
      +      "a4": "A4 portrait",
      +      "a4-landscape": "A4 landscape",
      +      "a5": "A5 portrait",
      +      "a5-landscape": "A5 landscape",
      +      "fit": "Fit the page to the picture",
      +      "legal": "Legal portrait",
      +      "legal-landscape": "Legal landscape",
      +      "letter": "Letter portrait",
      +      "letter-landscape": "Letter landscape",
      +      "tabloid": "Tabloid portrait",
      +      "tabloid-landscape": "Tabloid landscape"
      +    }
      +  }
      +}
  4. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations provide only readOnlyHint=false and destructiveHint=false, and the description adds no additional behavioral context such as output handling, file side effects, limits, or permissions. The outcome 'single PDF document' is the core purpose but adds little behavioral transparency beyond what the annotations and title already imply.

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?

The core sentence is short, front-loaded with the verb, and contains no filler beyond the redundant 'Images to PDF' prefix and the category tag. It earns a high score for efficiency, but loses a point because the opening phrase duplicates the tool title and the bracketed category adds little value.

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?

The tool is moderately complex with six parameters, but the schema fully documents each one and the description states the output type. What is missing is explicit usage guidance and behavioral side-effect disclosure, which keeps the description adequate rather than complete.

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 the schema carries the parameter-semantics burden and the baseline is 3. The description itself adds no parameter semantics, and its format list ('JPG, PNG, TIFF') is inconsistent with the schema's file list ('JPG, JPEG, PNG, WEBP') which could mislead an agent about accepted inputs.

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 concrete action and output: 'Combine multiple images ... into a single PDF document.' It is clear that this is a PDF-creation tool for multiple images. It does not explicitly differentiate itself from overlapping siblings like convert_jpg_to_pdf, and the format list in the description partially conflicts with the schema.

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?

There is no guidance about when to choose this tool versus convert_jpg_to_pdf, convert_batch, or pdf_merge. The description implies a combination use case but gives no exclusions, conditions, or alternative routing; it leaves the choice entirely to inference.

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