Skip to main content
Glama

WritersLogic verifiable AI agents

print-estimate

Print resolution, bleed and uncompressed bitmap size arithmetic — Given an image's pixel size and a print size (inches, millimetres or centimetres) plus optional bleed, margin and target ppi, returns the effective ppi over trim plus bleed, whether it meets the target, the pixel count a target ppi needs, the largest print size a target ppi allows, the safe area, and the exact uncompressed bitmap size. Built for print-on-demand, layout and image-prep agents; the t

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": {
      "widthPx": "<widthPx>",
      "heightPx": "<heightPx>"
    },
    "name": "print-estimate"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitNoUnit for print size, bleed and margin (default in).
bleedNoBleed added on each side of the trim, in unit (default 0).
marginNoSafe margin inside the trim on each side, in unit (default 0).
widthPxYesImage width in pixels.
channelsNoChannels per pixel for the raw size (default 3).
heightPxYesImage height in pixels.
targetPpiNoThe resolution you require, in pixels per inch.
printWidthNoTrim width in unit.
printHeightNoTrim height in unit.
ppiToleranceNoAccepted ppi difference for claimedEffectivePpi (default 0.5).
bitsPerChannelNoBits per channel (default 8).
claimedRawBytesNoAn uncompressed byte count you assert.
claimedEffectivePpiNoAn effective ppi you assert; checked against the computed value.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources