Skip to main content
Glama

Render ZPL label

zpl_preview
Read-onlyIdempotent

Render ZPL label code and return the label as a PNG image. Use this to SEE what ZPL output looks like — LLMs can write ZPL but cannot otherwise verify the visual result. One call renders one label (use index to pick a label from a multi-label stream). The result also carries an 'Open this label in the Labelixa editor' link the user can click to edit, save or share the label.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
zplYesZPL source (^XA...^XZ)
dpmmNoPrinter density (8 = 203 dpi)
indexNoLabel index in the stream
width_inNoLabel width, inches
height_inNoLabel height, inches

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish readOnly=true, idempotent=true, destructive=false, and closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: the return type (PNG), the one-label-per-call constraint, the use of index for multi-label streams, and the presence of an editor link in the result.

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?

The action and return value are front-loaded in the first sentence, followed by the motivating use case, the per-call constraint, and the output link. Three tight sentences with no filler; every sentence carries distinct information.

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?

With no output schema, the description usefully describes the return (a PNG image plus an editor link). For a read-only render tool with full schema coverage and clear annotations, this is near-complete; only minor output details (e.g., error behavior on invalid ZPL) are left implicit.

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%, so the schema already documents all five parameters including the index and dpmm semantics. The description's mention of index for multi-label streams largely restates the schema's 'Label index in the stream', adding minimal new meaning. Baseline 3 is appropriate.

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 (render) and resource (ZPL label code), plus the output form (PNG image). This clearly differentiates it from siblings like zpl_validate or explain_zpl, which inspect rather than render. An agent can tell what it produces without opening the schema.

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?

Explicitly states when to use it: to SEE what ZPL output looks like, since LLMs cannot otherwise verify the visual result. It stops short of naming the alternative tools (e.g., zpl_validate) or stating when NOT to use it, so it's clear context without exclusions.

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.