Labelixa

v0.5.3
com.labelixa/zpl Checked 2 days ago Published 9 days ago

Thermal label MCP server: render, validate, debug and convert ZPL, EPL, TSPL and CPCL labels.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

zpl_preview

Render ZPL label code to a PNG image via the Labelixa API. This is a SERVER-SIDE render for inspection — it is not a guarantee of how a specific physical printer will output the label.

ParameterTypeDescription
zpl *stringRaw ZPL code (^XA ... ^XZ)
dpmmintegerPrinter density in dots per mm (6, 8, 12 or 24)
height_innumberLabel height in inches (at most 15)
indexintegerWhich label to render when the stream contains several
width_innumberLabel width in inches (at most 15)

zpl_validate

Pass/fail lint for ZPL: machine-readable diagnostics with line/column, code and severity (unknown commands, parameter range errors, layout overflow). Fast; run it before zpl_preview whenever you generate or edit ZPL. For a human-readable report with a score use explain_zpl instead. Pass the real label size — checks depend on it.

ParameterTypeDescription
zpl *stringRaw ZPL code
dpmmintegerPrinter density in dots per mm (6, 8, 12 or 24)
height_innumberLabel height in inches (at most 15)
width_innumberLabel width in inches (at most 15)

barcode_generate

Generate a standalone barcode (SVG text or PNG image). Supported types include code128, code39, ean13, upca, upce, itf14, msi, qrcode, datamatrix, pdf417.

ParameterTypeDescription
data *stringData to encode
type *stringBarcode type, e.g. code128
formatstring

language_detect

Detect which printer language raw label code is written in (ZPL, EPL, TSPL or CPCL). Heuristic: returns the language plus a confidence TIER (high/medium/low) and signal codes — not a probability.

ParameterTypeDescription
code *stringRaw label code to classify

epl_validate

Lint/validate EPL/EPL2 label code and return the structured diagnostics report (findings with positions and severity) as JSON.

ParameterTypeDescription
epl *stringRaw EPL/EPL2 code

tspl_validate

Lint/validate TSPL/TSPL2 label code and return the structured diagnostics report (findings with positions and severity) as JSON.

ParameterTypeDescription
tspl *stringRaw TSPL/TSPL2 code

cpcl_validate

Lint/validate CPCL label code and return the structured diagnostics report (findings with positions and severity) as JSON.

ParameterTypeDescription
cpcl *stringRaw CPCL code

zpl_compatibility

Compatibility RISK analysis of ZPL code against a specific printer model, given as manufacturer/model (e.g. 'zebra/zd421'). NOT an emulator and never says 'it works': reports the model's language posture with evidence level, size-rule findings and the scope of our preview.

ParameterTypeDescription
model *stringPrinter model as manufacturer/model, e.g. zebra/zd421
zpl *stringRaw ZPL code

zpl_command_help

Look up one ZPL command in the maintained catalog: name, syntax, parameters (types, ranges, defaults) and whether the preview engine actually renders it — printer-side commands are honestly marked as not rendered.

ParameterTypeDescription
command *stringCommand code with or without prefix, e.g. ^PO, BC, ~DG
localestringLanguage for the name and descriptions (default English). Command codes, syntax strings, examples and parameter names are protocol and never change.

convert_zpl_dpi

Rescale ZPL coordinates between printer resolutions (203/300/600 dpi). Embedded ^GF/~DG bitmap data is NOT rescaled — when present, a Warnings block precedes the output instead of silently passing.

ParameterTypeDescription
zpl *stringRaw ZPL code to convert
sourceintegerSource resolution in dpi (152, 203, 300 or 600)
targetintegerTarget resolution in dpi (152, 203, 300 or 600)

explain_zpl

Human-readable health REPORT for a finished ZPL label with a 0-100 score, sectioned (syntax, size/DPI, orientation, barcodes, fonts, memory): only assessable sections count, the rest say 'not assessed'. Use it to review or explain a label to a person; for a quick pass/fail check while editing use zpl_validate. Pass the real label size — findings depend on it.

ParameterTypeDescription
zpl *stringRaw ZPL code
dpmmintegerPrinter density in dots per mm (6, 8, 12 or 24)
height_innumberLabel height in inches (at most 15)
modelstringOptional printer model as manufacturer/model (e.g. zebra/zd421) to add a model-compatibility section
width_innumberLabel width in inches (at most 15)