Labelixa
v0.5.3Thermal 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.
| Parameter | Type | Description |
|---|---|---|
zpl * | string | Raw ZPL code (^XA ... ^XZ) |
dpmm | integer | Printer density in dots per mm (6, 8, 12 or 24) |
height_in | number | Label height in inches (at most 15) |
index | integer | Which label to render when the stream contains several |
width_in | number | Label 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.
| Parameter | Type | Description |
|---|---|---|
zpl * | string | Raw ZPL code |
dpmm | integer | Printer density in dots per mm (6, 8, 12 or 24) |
height_in | number | Label height in inches (at most 15) |
width_in | number | Label 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.
| Parameter | Type | Description |
|---|---|---|
data * | string | Data to encode |
type * | string | Barcode type, e.g. code128 |
format | string |
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.
| Parameter | Type | Description |
|---|---|---|
code * | string | Raw 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.
| Parameter | Type | Description |
|---|---|---|
epl * | string | Raw EPL/EPL2 code |
tspl_validate
Lint/validate TSPL/TSPL2 label code and return the structured diagnostics report (findings with positions and severity) as JSON.
| Parameter | Type | Description |
|---|---|---|
tspl * | string | Raw TSPL/TSPL2 code |
cpcl_validate
Lint/validate CPCL label code and return the structured diagnostics report (findings with positions and severity) as JSON.
| Parameter | Type | Description |
|---|---|---|
cpcl * | string | Raw 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.
| Parameter | Type | Description |
|---|---|---|
model * | string | Printer model as manufacturer/model, e.g. zebra/zd421 |
zpl * | string | Raw 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.
| Parameter | Type | Description |
|---|---|---|
command * | string | Command code with or without prefix, e.g. ^PO, BC, ~DG |
locale | string | Language 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.
| Parameter | Type | Description |
|---|---|---|
zpl * | string | Raw ZPL code to convert |
source | integer | Source resolution in dpi (152, 203, 300 or 600) |
target | integer | Target 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.
| Parameter | Type | Description |
|---|---|---|
zpl * | string | Raw ZPL code |
dpmm | integer | Printer density in dots per mm (6, 8, 12 or 24) |
height_in | number | Label height in inches (at most 15) |
model | string | Optional printer model as manufacturer/model (e.g. zebra/zd421) to add a model-compatibility section |
width_in | number | Label width in inches (at most 15) |