Skip to main content
Glama

JPG/PNG to PDF

jpg_to_pdf
Idempotent

Turn 1-20 JPG or PNG images into one PDF, one image per page, in the order given. Files are processed on HuntPDF servers and deleted automatically; the download link is temporary.

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": "jpg_to_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesThe files, each with file_url or file_base64

Output Schema

NameRequiredDescriptionDefault
pagesNo
file_nameYes
download_urlYesLink to download the result
expires_in_minutesYesThe link stops working after this time (or 3 minutes after the first download)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare openWorldHint=true, idempotentHint=true, destructiveHint=false, and readOnlyHint=false. The description adds material behavioral context beyond that: processing happens on HuntPDF servers, files are deleted automatically, and the download link is temporary. It does not discuss authentication or rate limits, but for this upload-and-convert tool the added privacy and retention details are valuable.

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 sentences are front-loaded with the core conversion operation and constraints, followed by concise retention and link-lifetime context. Every sentence carries useful information and there is no filler.

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 simple image-to-PDF converter with one required parameter, full schema coverage, annotations, and an output schema, the description is complete enough. It covers format, count, page ordering, server-side processing, automatic deletion, and temporary download links.

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% and there is only one top-level parameter, so the baseline is 3. The description still adds meaning by saying images become one page each and are ordered as given, which clarifies that the files array order is semantically significant. It does not need to repeat file_url/file_base64 details because the schema already documents those well.

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 states a specific verb and resource: turn 1-20 JPG or PNG images into one PDF, one image per page, in the order given. That is precise enough to distinguish this from sibling tools such as pdf_to_jpg, merge_pdf, and word_to_pdf without opening 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The conversion scenario is implied clearly by the operation and format limits, but there is no explicit when-to-use or when-not-to-use guidance and no named alternative. An agent can infer the use case, but the definition does not route between this tool and related PDF tools.

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