Skip to main content
Glama

Image to PDF

ImagetoPDF
Read-only

Image to PDF: Image to PDF combines up to 20 images, uploaded or fetched from URLs, into one PDF with one image per page, and returns a download link valid for 2 days. Pages can match each image or be A4, Letter or Legal with a margin, and multi-page TIFF scans and animated GIFs become one page per frame. (Cost: 10 credits) REST: POST https://api.apiverve.com/v1/imagetopdf, multipart/form-data with the file in "image" and other params as form fields, key in the x-api-key header. Docs: https://apiverve.com/md/marketplace/imagetopdf.md

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ImagetoPDF"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlsNoA JSON array of public image URLs, added in order after image; a comma- or newline-separated list also works. Up to 20 images per call in all
imageNoAn image file (upload one or more as multipart files, up to 20), base64 image data, or a public image URL
marginNoMargin around each image in millimetres, from 0 to 50
qualityNoRe-compress every image as JPG at this quality (1-100) to make the PDF smaller. Omit to keep JPG and PNG images unchanged
pageSizeNoPage size: fit makes each page the size of its image; a4, letter and legal fit the image inside the marginsa4
orientationNoPage orientation for a4, letter and legal; auto turns each page to match its image. Ignored for fitauto

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNoError message, null on success
statusNo"ok" on success

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / urls / description
      Previous value: -"A JSON array of public image URLs, added in order after image. Up to 20 images per call in all"New value: +"A JSON array of public image URLs, added in order after image; a comma- or newline-separated list also works. Up to 20 images per call in all"
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnlyHint, openWorldHint, and destructiveHint=false annotations, the description discloses cost (10 credits), download-link expiry (2 days), multipart upload requirements, the x-api-key header, and special handling of multi-page TIFFs and animated GIFs. These are meaningful operational details an agent would otherwise have to guess.

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 definition is a single dense paragraph with the core purpose front-loaded and no filler sentences. It repeats 'Image to PDF' at the start and packs REST and docs details into the same paragraph, but every sentence carries useful information.

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 conversion tool with an output schema, the description covers what the tool does, limits, page sizing, special image handling, cost, link lifetime, and the REST form of the call. Nothing essential for correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents urls, image, margin, quality, pageSize, and orientation in detail. The description still adds value by clarifying that pages can match each image or be A4/Letter/Legal with a margin, and by noting that multi-page TIFFs and animated GIFs become one page per frame, which is not obvious from the parameters alone.

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 description starts with a specific verb and resource: it combines up to 20 images into one PDF, one image per page, and returns a download link. That is concrete enough to distinguish it from siblings like ImagetoText, HTMLtoPDF, and ImagetoImage without opening any schema.

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?

It clearly frames the tool as an image-to-PDF combiner with a 20-image cap and one-page-per-image behavior, which tells an agent when it is applicable. It does not explicitly name alternatives or say when not to use it, but for a straightforward conversion tool the intended use is clear.

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.