Skip to main content
Glama

Preview ZPL labels

preview_zpl
Read-onlyIdempotent

Render up to 2 unique labels as PNG images to check how they look. No API key needed (rate limited); no quota used.

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": {
      "zpl": "<zpl>"
    },
    "name": "preview_zpl"
  }
}

Input Schema

NameRequiredDescriptionDefault
zplYesZPL code with one or more ^XA … ^XZ label blocks.
labelSizeNoLabel size in inches (width x height) or mm: 2x1, 2x4, 4x2, 4x6 (default, shipping labels), 4x8, 50x80mm, 80x50mm.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, and open-world traits, and the description adds genuinely useful operational context: no API key required, rate limited, and no quota consumed. It stops short of explaining what happens when more than 2 unique labels are supplied (error vs. truncation), which is the main behavioral ambiguity.

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 short sentences, front-loaded with the action and output format, then the constraint/quota facts. No wasted wording.

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 correctly names the return type (PNG images) and the 2-label cap, which is what an agent needs to call it safely. It could be slightly more complete by stating how images are returned or how excess labels are handled.

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%, with both the ZPL payload format and labelSize enum fully documented in the schema. The description adds no additional meaning about either parameter, so baseline 3 applies.

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?

The description gives a specific verb and resource ("Render ... labels as PNG images") plus the output format, so it is clearly a visual preview rather than a conversion or validation. It does not explicitly contrast itself with siblings like convert_zpl_to_pdf or validate_zpl, so the agent must infer that PNG preview differs from PDF conversion.

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?

"to check how they look" implies the use case is visual verification before committing to a real render, and the "up to 2 unique labels" limit hints this is a lightweight trial tool. However, there is no explicit when-not guidance and no alternative named for full-batch preview or validation.

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