Skip to main content
Glama

Generate Local 1D/2D Barcode

barcode_generate

Generate standard industrial and retail barcodes offline from text, including Code128, EAN-13, UPC-A, Code39, ITF-14, PDF417, DataMatrix, and Aztec, with PNG or SVG export.

Instructions

Generate standard industrial & retail barcodes offline (Code128, EAN-13, UPC-A, Code39, ITF-14, PDF417, DataMatrix, Aztec). PNG is Free; SVG vector export requires ThisMyOwn PRO.

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": {
      "text": "<text>",
      "outputPath": "<outputPath>"
    },
    "name": "barcode_generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesBarcode value to encode
scaleNo
formatNopng
heightMmNo
symbologyNocode128
outputPathYesDestination file path (.png or .svg)
includeTextNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does add two real facts: generation is offline/local and SVG export is gated behind ThisMyOwn PRO (PNG free). However it says nothing about overwriting an existing outputPath, directory creation, or what happens when text is invalid for the chosen symbology (e.g. EAN-13 digit rules).

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?

Two dense sentences with zero filler, and the capability statement is front-loaded before the licensing caveat. The symbology parenthetical is long but earns its place by previewing the enum.

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

Completeness2/5

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

For a 7-parameter mutation tool with no annotations and no output schema, the description leaves too much unsaid: output file behavior, image sizing, overwrite semantics, and per-symbology input validation are all missing. The licensing note is the only behavioral detail beyond the schema.

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

Parameters2/5

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

Schema coverage is only 29% — scale, heightMm, format, and includeText have no schema descriptions. The description partially compensates by naming symbologies and tying format to the free/PRO gate, but the listed names (EAN-13, UPC-A, ITF-14, Aztec) do not match enum values (ean13, upca, itf14, azteccode) and omit ean8, upce, code93, and gs1-128 entirely; scale, heightMm, and includeText are never explained.

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 names a specific verb and resource (generate barcodes) and enumerates concrete symbologies, so an agent knows exactly what it produces. It implicitly separates itself from the qr_* siblings by listing 1D/2D industrial symbologies rather than QR, but never states that distinction explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'standard industrial & retail barcodes' hints at the domain, but there is no explicit when-to-use vs. qr_generate, no guidance on which symbology to pick for a given payload, and no prerequisites or exclusions. The agent must infer all routing decisions from the enumeration.

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