Skip to main content
Glama

DPI calculator

calc_print_resolution
Read-only

Calculate resolution for print. Pass print width and height with unit (mm, cm, in), optional viewing_distance with distance_unit (cm, in, m) and optionally pixels_w, pixels_h of the image you have. Formulas: pixels = size in inches x ppi; the ppi a viewer can resolve at distance d is 1 / (2 d tan(0.5 arcminute)) which is about 3438 / d(inches), assuming normal 20/20 vision resolves 1 arcminute; effective ppi = pixels / size in inches. Returns pixels needed at the acuity-suggested ppi (capped at 300) and at 300 ppi, and, if you give pixel dimensions, the effective ppi and a verdict. 300 ppi is the usual figure for work held in the hand; large format is viewed from farther away and can go lower. The vendor's stated minimum wins. 'DPI' here means image pixels per inch.

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": {
      "width": "<width>",
      "height": "<height>"
    },
    "name": "calc_print_resolution"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitNoSize unit
widthYesPrint width
heightYesPrint height
pixels_hNoImage height in pixels
pixels_wNoImage width in pixels you have
distance_unitNoDistance unit
viewing_distanceNoViewing distance (default: handheld, 300 ppi)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds substantial behavioral context beyond that: the acuity formula, the 300 ppi cap, the distinction between acuity-suggested ppi and 300 ppi, and the verdict returned when pixel dimensions are supplied.

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-loads the purpose in the first sentence and is reasonably efficient, but the formulas and caveats make it a dense single paragraph. Every sentence carries useful information, though bullet-style structuring would improve readability.

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?

Covers the core computation, optional inputs, return values, and key caveats despite the absence of an output schema. Minor gaps remain around precise verdict criteria and error handling, but the agent has enough to invoke it correctly.

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 description coverage is 100%, so baseline is 3. The description adds meaning by tying parameters to the formulas (pixels = size in inches × ppi) and explaining how viewing_distance feeds into the acuity calculation, which helps an agent understand parameter roles rather than just their names.

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?

States a specific verb and resource: 'Calculate resolution for print', and clarifies 'DPI here means image pixels per inch'. It is clear what the tool does, though it does not explicitly differentiate itself from related siblings such as calc_print_spec or convert_paper_size.

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?

Gives clear context for when to use it — print resolution calculation — and when to lower ppi for large-format work, plus the caveat that the vendor's stated minimum wins. It does not name alternative tools or explicitly exclude use cases, so it falls 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