Skip to main content
Glama

Print-Ready PDF API - Add Bleed, Crop Marks, TrimBox & CMYK Preflight

print_ready_pdf
Read-onlyIdempotent

Preflight any PDF and make it print-ready in one call: adds 0–15 mm mirrored-edge or white bleed, draws vector crop & registration marks, sets PDF TrimBox and BleedBox metadata, and optionally converts RGB to CMYK via Ghostscript. Keeps original vector text sharp. 0 AI, deterministic, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.005/call via x402 at https://radarbg.com/x402/print-ready-pdf.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "bleedMm": 3,
      "cropMarks": true,
      "bleedStyle": "mirror",
      "convertCmyk": true,
      "returnPdfBase64": false
    },
    "name": "print_ready_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
bleedMmNoBleed width in mm (0–15; 3 mm EU, 3.175 mm = 0.125 in US)
cropMarksNoDraw vector hairline crop marks outside bleed
pdfBase64NoBase64-encoded PDF (omit to test with built-in A5 sample flyer)
bleedStyleNoMirrored-edge bleed or white marginmirror
convertCmykNoConvert colors to CMYK using Ghostscript
returnPdfBase64NoInclude output print-ready PDF as Base64
registrationMarksNoDraw registration target marks

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent and openWorld, so the safety profile is covered. The description adds genuinely useful context beyond that: nothing is stored, output is deterministic, vector text stays sharp, and there is a 5 calls/day free tier with API-key or x402 payment paths. It stops short of error behavior, input size limits, or what the response contains when returnPdfBase64 is false.

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?

Front-loaded with the capability sentence, then pricing and access details. The pricing/URL clause is long but relevant to authentication, so it earns its place; still, the trailing commercial block is dense enough to slightly dilute the operational core.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Seven optional parameters, no required inputs and no output schema; the description covers what the tool produces conceptually (a print-ready PDF with bleed and boxes) while the schema handles the encoding parameter. A brief note on output shape or failure modes would close the remaining gap.

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% and each parameter already carries its own description, defaults and enum, so the description is not required to compensate. It echoes the headline parameters (bleed width, mirrored/white style, crop and registration marks, CMYK) but adds no syntax or interaction detail beyond the schema.

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?

States a specific verb and resource ('preflight any PDF and make it print-ready') and enumerates the concrete operations: bleed 0–15 mm mirrored or white, vector crop and registration marks, TrimBox/BleedBox metadata, optional RGB→CMYK. This clearly separates it from image/PDF cropping siblings such as pdf_crop and image_crop, which do not do print preflight.

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 implied by the print-production framing (bleed, crop marks, CMYK) and the schema notes that omitting pdfBase64 runs a built-in sample flyer, which is a useful try-before-you-buy path. However, it never says when to prefer this over a sibling like pdf_crop or pdf_flatten, and gives no exclusion conditions or prerequisites for the input PDF.

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