Skip to main content
Glama

image_to_pdf

Converts a tall screenshot into a paginated PDF, splitting at clean rows to prevent cutting through text or other content.

Instructions

Paginate an existing long screenshot into a PDF, cutting at clean rows.

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": {
      "image_path": "<image_path>"
    },
    "name": "image_to_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoOptional source URL to stamp on each page.
paperNoPDF paper size.letter
stampNoStamp style.none
image_pathYesPath of an existing tall image (PNG/JPEG).
date_formatNodate | datetime | iso | none | strftime patterndatetime
smart_splitNoAvoid cutting through content (pixel-based).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses that output is paginated and that page breaks land on clean rows, but says nothing about where the PDF is written, whether existing files are overwritten, or any permission requirements. Return values are covered by the output schema, so that omission is acceptable.

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?

A single front-loaded sentence with no filler; the core action and the pagination behavior come first and nothing is wasted.

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?

For a six-parameter tool with an output schema, the description covers the core action but omits how the stamping parameters (url, stamp, date_format) and paper selection affect output, and where the resulting file goes. Adequate but with clear gaps.

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 baseline is 3. The description goes slightly beyond by explaining the splitting behavior ('cutting at clean rows') that the smart_split default produces, giving the agent context for one of the six parameters.

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 gives a specific verb ('paginate') and resource ('an existing long screenshot') with a clear output ('into a PDF'). The word 'existing' implicitly separates it from capture_page, which would produce the screenshot, though it never names that sibling.

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: 'existing long screenshot' signals the image must already be on disk, so the agent infers it should call capture_page first. There is no explicit when-to-use, when-not-to-use, or named alternative.

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

Deploy Server

Other Tools