Skip to main content
Glama

Convert ZPL to PDF

convert_zpl_to_pdf
Idempotent

Convert ZPL labels to a PDF (or PNG/JPEG on Pro and above) and return a download URL valid for 15 minutes. Needs an API key with the "mcp" scope; uses 1 PDF of the monthly plan quota. Retrying the same ZPL the same day returns the same file without charging again. If it takes longer than ~25 s, returns a jobId to poll with get_conversion.

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": "convert_zpl_to_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
zplYesZPL code with one or more ^XA … ^XZ label blocks.
formatNoOutput format (default pdf). png/jpeg return a ZIP and need Pro or higher.
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

A4.1/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: quota consumption, a 15-minute URL lifetime, same-day retry deduplication that avoids re-charging, and the async jobId fallback past ~25 s. These details materially affect how an agent should call and retry the tool.

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?

Three dense sentences, front-loaded with the core action and return value, then auth/quota, then retry and async behavior. Efficient overall, with only minor overlap with the schema's format gating note.

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

Completeness5/5

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

No output schema exists, yet the description covers the return value (URL with 15-minute validity) and the async alternative (jobId). For a 3-parameter conversion tool, an agent has everything needed to call it correctly.

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 parameters are already documented. The description's mention of PNG/JPEG availability on Pro and above largely restates what the format parameter description already says, adding little new semantic detail.

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 ('Convert ZPL labels to a PDF') plus the output artifact (a download URL), so the operation is unambiguous. It does not explicitly contrast itself with siblings like preview_zpl or validate_zpl, which keeps it just short of a 5.

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 concrete operating context (mcp-scoped API key, one PDF of monthly quota) and routes the agent to an alternative when the call exceeds ~25 s: poll with get_conversion. No guidance on when to prefer preview_zpl or validate_zpl over an actual conversion, so it stops short of full when/when-not coverage.

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