Skip to main content
Glama

calculate_print_size

Calculate target pixel dimensions, effective DPI, upscale factor, and aspect-ratio crop warnings for a chosen print size so you can verify image print quality before resizing.

Instructions

Calculate target pixel dimensions, effective DPI, required upscale factor, and aspect-ratio crop warnings for a target print size. Supported presets: 4x6, 5x7, 8x10, 11x14, 16x20, poster-24x36, A5, A4, A3, A2.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "calculate_print_size"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitNoUnit for custom print dimensions.in
presetNoStandard print size preset.
imagePathNoPath to a local image (auto-reads width & height).
targetDpiNoTarget print DPI (default 300).
autoOrientNoMatch print orientation to image orientation.
pixelWidthNoImage width in pixels (if imagePath is omitted).
pixelHeightNoImage height in pixels (if imagePath is omitted).
targetWidthNoCustom print width (used when preset is omitted).
targetHeightNoCustom print height (used when preset is omitted).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does well to name the computed outputs, which reveals that this is an analytical calculation rather than an image mutation, but it never states that the operation is non-destructive, whether imagePath causes a file read from disk, or what happens on failure (e.g., unreadable file, zero-size dimensions, preset and custom dimensions both supplied).

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, front-loaded with the capability and followed by the preset enumeration. No filler, no restating of the tool name, and the enum list is genuinely useful at a glance.

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?

For a 9-parameter, zero-required calculator with no output schema, the description usefully enumerates the four returned values so the agent knows what comes back. What remains thin is the optionality and mutual-exclusion story among the parameter groups, though the schema itself covers most of that at 100% coverage.

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?

With 100% schema description coverage the baseline is 3, and the description adds modest value by spelling out the supported preset values in human-readable form. It still adds no meaning about the preset-versus-targetWidth/targetHeight precedence, the pixelWidth/pixelHeight versus imagePath alternative, or unit applicability, so it stays near baseline.

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?

Specific verb (Calculate) plus a precise enumeration of the outputs: target pixel dimensions, effective DPI, required upscale factor, and aspect-ratio crop warnings. An agent knows exactly what this tool returns and can distinguish it from mutating siblings like upscale_pixel_art, though the description never explicitly contrasts itself with them.

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 phrase 'for a target print size' implies the context of use, and the preset list suggests when presets are applicable. But there is no explicit when-to-use versus when-not-to-use guidance, no statement that this is a read-only preflight before an upscale, and no mention of the relationship to upscale_pixel_art or inspect_image.

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