Skip to main content
Glama

Barcode generator

barcode_generate
Read-onlyIdempotent

Generate 1D barcodes as SVG or PNG for Code 128, EAN-13, UPC-A, and Code 39, with single-value or batch file output for up to 1,000 values.

Instructions

Make 1D barcodes as SVG or PNG: Code 128 (any printable ASCII; digit runs packed with subset C automatically), EAN-13 (12 digits, check digit added; or 13, check digit verified), UPC-A (11 or 12 digits, same) and Code 39 (A-Z, 0-9, space, - . $ / + %, optional mod-43 check). Same encoders, quiet zones, guard bars and human-readable digits as the website. Give "value" for one barcode, or "values" (up to 1000) to write one file per value into a folder; invalid values are reported, not fatal. PNG text uses the system monospace font. Web version: https://s3eidat.github.io/barcode-gen/

Input Schema

NameRequiredDescriptionDefault
scaleNoPNG only: pixel scale (1×, 2× default, 4×…).
valueNoThe value to encode (one barcode).
formatNoOutput format (default svg).svg
heightNoBar height in px, 30-220 (default 80).
outputNoWhere to write the result: a file path, or a folder ending in "/". Default: the server output folder (a temp folder unless --out-dir is set).
valuesNoOr: many values; each becomes its own file in the output folder.
barWidthNoNarrow bar (module) width in px, 1-6 (default 2).
showTextNoPrint the human-readable text/digits under the bars.
symbologyNoBarcode type (default code128).code128
backgroundNoBackground colour, hex.#ffffff
foregroundNoBar colour, hex.#000000
code39CheckNoCode 39 only: append the mod-43 check character.
returnBase64NoAlso return the output as base64 in the result (only for small files). Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior2/5

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

Annotations declare readOnlyHint=true and idempotentHint=true, yet the description says the tool will 'write one file per value into a folder' and lets the caller pick an 'output' path — a filesystem side effect that readOnlyHint denies. Beyond that mismatch the description is genuinely informative (check-digit handling, invalid values non-fatal, subset C packing, system monospace font for PNG text), but the write-vs-readOnly conflict is a real inconsistency.

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?

A single dense paragraph that is front-loaded with the output medium and symbologies, then moves to encoding rules and the value/values modes. Every clause carries information, though the run-on structure with semicolons makes it slightly harder to scan than it could be.

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

Completeness3/5

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

For a 13-parameter tool with no output schema and no annotations covering return shape, the description covers output destination (file path vs folder), the default temp output folder, and the optional base64 return. It does not explain the result payload (does it return written paths?), file naming for the "values" mode, or overwrite behavior — gaps an agent would care about for a batch-writing tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: EAN-13 accepts 12 digits and appends the check digit or 13 and verifies it, UPC-A works the same way, Code 128 takes printable ASCII with automatic subset C packing, Code 39 has a fixed charset plus optional mod-43, and value/values are alternative modes. Only the presentation parameters (scale, barWidth, height, colors) are left entirely to the schema.

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?

Opens with a specific verb+resource ('Make 1D barcodes as SVG or PNG') and then enumerates the four supported symbologies, immediately distinguishing it from qr_generate and the image_* siblings. An agent can tell exactly what this 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 the two operating modes: supply "value" for a single barcode, or "values" (up to 1000) to write one file per value into a folder, plus the note that invalid values are reported rather than fatal. It stops short of naming a sibling alternative (e.g. qr_generate) or stating when-not to use it, so it does not reach a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools