Skip to main content
Glama

Razi Document Tools

images_to_pdf

Assemble pictures into one PDF, a page per picture, in the order supplied. PNG and JPEG bytes are embedded untouched; WebP, GIF, TIFF and AVIF are re-encoded to PNG on the way in, which loses no detail but does rewrite the file. A PDF sitting among the pictures is spliced in whole at its position, so a photo/contract/photo sequence takes one call. Each page defaults to the pixel dimensions of its picture, so nothing is scaled, cropped or letterboxed; choose 'a4' or 'letter' instead to centre every picture on a fixed portrait sheet, optionally inside a margin of blank points. Ceilings per call: 100 files, and 50MB summed across all of them, at 20 calls an hour per IP. Bytes that cannot be decoded as a picture — a spreadsheet, a video, a corrupt upload — earn an HTTP 400 naming the offending file; a blank page is never substituted to hide one. Output is the finished PDF: raw bytes over REST, and over MCP a link to the stored document that keeps working for roughly a day. MCP carries no attachments, so name the pictures with fileUrls — an ordered array of links inside razi.pro's own storage. Links elsewhere on the internet are refused. Mint them by POSTing the pictures to /api/v1/tools/execute first, where they may simply be attached.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
marginNoBlank border in points (72 to the inch) kept clear on every side. Default 0. With 'a4' or 'letter' it shrinks the area the picture is fitted into; with 'fit' it enlarges the page around the picture instead.
pageSizeNoPage geometry. 'fit' (default) makes each page exactly as many points as its picture has pixels, preserving the aspect ratio with no empty space. 'a4' (595x842pt) and 'letter' (612x792pt) use a fixed portrait sheet and centre the picture on it, scaling it up or down to fit; the leftover space is blank.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations provided, the description carries the full disclosure burden and fully delivers: format-specific handling (PNG/JPEG embedded untouched, others re-encoded), page-geometry defaults (nothing scaled/cropped/letterboxed), rate ceilings (100 files, 50MB, 20 calls/hour/IP), explicit failure mode (HTTP 400 naming the offending file, never a blank-page substitution), REST-vs-MCP output differences, and an expiring-storage-link policy. This is exceptional transparency for an unannotated tool.

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 purpose is front-loaded in the first sentence, and every subsequent sentence contributes a distinct piece of non-redundant information: format conversion rules, PDF splicing, page sizing, rate limits, error behavior, output delivery, and the fileUrls prerequisite. The description is long (~170 words) but the tool is genuinely complex; the density is justified, though its sheer volume and run-on structure prevent a 5.

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?

Everything an agent needs to call this correctly is present: accepted input formats and their treatment, the mandatory fileUrls-in-own-storage mechanism and how to mint them, per-call and per-IP ceilings, failure semantics, and the return value (raw bytes over REST, persistent-link over MCP). Given that no output schema exists, the description's coverage of the output shape is essential — and provided.

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 coverage is 100% and both parameter descriptions in the schema are already rich (margin units, pageSize geometry including point dimensions). The description adds contextual framing — default pixel-dimension pages, centering on a fixed portrait sheet — that links the params to the assembly workflow, but it introduces no new parameter semantics beyond what the schema already documents. Baseline 3 is appropriate.

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?

Opens with a precise verb+resource+behavior statement: 'Assemble pictures into one PDF, a page per picture, in the order supplied.' It is immediately distinguishable from the PDF-manipulation siblings (merge_pdf, split_pdf, compress_pdf) by being the image-to-PDF direction, and it reinforces the distinction by describing the mixed-input PDF-splicing behavior.

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?

The description gives clear prerequisites and constraints an agent must honor: files must be fileUrls inside razi.pro's own storage, minted by POSTing to /api/v1/tools/execute first, external links are refused, and MCP carries no attachments. This effectively tells the agent how and when to invoke the tool, but it never names sibling tools or states explicit when-not-to-use conditions, so it stops short of a 5.

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