Skip to main content
Glama

Convert ZPL DPI

convert_zpl_dpi
Read-onlyIdempotent

Rescale ZPL between printer resolutions (203/300/600 DPI): coordinates, fonts, barcode module width and label size are scaled. Embedded ^GF/~DG image data is NOT scaled; the response says so instead of silently passing it through.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
zplYesRaw ZPL code
source_dpiYesResolution the ZPL was written for, in DPI (not dpmm: 203 DPI = 8 dpmm).
target_dpiYesResolution to rescale to, in DPI. Equal to source_dpi means no scaling.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / source_dpi / description
      Added value: +"Resolution the ZPL was written for, in DPI (not dpmm: 203 DPI = 8 dpmm)."
    • addedInput schema / properties / target_dpi / description
      Added value: +"Resolution to rescale to, in DPI. Equal to source_dpi means no scaling."
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already mark the tool as read-only and idempotent, and the description adds a valuable non-obvious caveat: embedded ^GF/~DG image data is NOT scaled, and the response says so instead of silently passing it through. This is exactly the behavioral context an agent needs beyond the structured fields.

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-load the action and immediately highlight the most important exception. There is no filler or repetition, and the image-data caveat earns its place by preventing a silent data-loss misunderstanding.

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

Completeness3/5

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

The description adequately covers what is scaled and what is not, but with no output schema it never explicitly states the return format beyond 'the response says so'. The '(203/300/600 DPI)' list also omits 152 even though the schema accepts it, leaving minor ambiguity about supported conversions.

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 the input schema already documents 'zpl', 'source_dpi', and 'target_dpi' with enums and meanings. The description adds general behavior but little parameter-specific meaning, so the schema carries the semantic weight and the baseline 3 applies.

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?

The description opens with a specific verb and resource: 'Rescale ZPL between printer resolutions', and further lists what gets scaled (coordinates, fonts, barcode module width, label size). This clearly distinguishes the tool from preview/validate/explain siblings, even though the parenthetical DPI list omits 152, which the schema allows.

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 use case is clearly implied: use this tool when ZPL must be rescaled between DPI values. However, there is no explicit guidance about when to prefer this over related ZPL tools, nor any stated exclusions or alternatives, so the agent must infer the routing.

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.