Skip to main content
Glama

Gookit Barcode Tools

Generate a barcode

generate_barcode
Read-onlyIdempotent

Make one Code 128, UPC-A, EAN-13, Code 39 or ITF-14 barcode as a PNG image and/or SVG markup, with the same rules as gookit.co/barcode-generator. For UPC-A, EAN-13 and ITF-14, leave the check digit off and it is added; a wrong check digit is reported with the corrected number. One barcode per call; this tool doesn't make label sheets or PDFs.

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": {
      "value": "<value>"
    },
    "name": "generate_barcode"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYesData to encode. Code 128: letters, numbers and keyboard symbols. Code 39: uppercase letters, numbers, space and - . $ / + %. UPC-A: 11 or 12 digits. EAN-13: 12 or 13 digits. ITF-14: 13 or 14 digits.
formatNopng: an image, 4x the SVG size (smaller when that would pass 2048 px). svg: markup in structuredContent.svg. both: the two.png
heightNoBar height, in px at 1x.
bar_widthNoWidth of the narrowest bar, in px at 1x.
show_textNoPrint the value under the bars.
symbologyNocode128

Output Schema

NameRequiredDescriptionDefault
pngNo
svgNo
noteNo
valueYesWhat the barcode encodes, check digit included.
svg_sizeYes
next_stepNoOne line naming the Gookit product for the next step, such as printing labels. Not part of the result.
symbologyYes
check_digit_addedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds non-obvious behavior: check digits are appended when omitted, a wrong check digit is reported back with the corrected number, and PNG output is 4x the SVG size capped at 2048 px. It stops short of describing the full return payload (beyond structuredContent.svg), but that ground is partly covered by the output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with capability and symbologies, then constraints, then the check-digit caveat. No filler and nothing repeated from the schema.

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?

For a single-purpose generator with an output schema, full annotations and 83% parameter documentation, the description covers the remaining gaps an agent needs: allowed symbologies, per-symbology input rules reference, check-digit handling, and explicit scope exclusions. Nothing needed to invoke it correctly is missing.

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 83%, so the baseline is 3, and the description earns above that by supplying the check-digit rule for UPC-A/EAN-13/ITF-14 values and by grounding height/bar_width as 1x-scale measurements that the 4x PNG scaling applies to. It adds meaning rather than restating 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?

States a specific verb and resource ('Make one ... barcode') and enumerates the exact supported symbologies plus output forms (PNG and/or SVG). The cardinality constraint ('One barcode per call') makes it unmistakably distinct from a batch or label-sheet tool.

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 real when-not guidance: one barcode per call, no label sheets or PDFs, and it points at the gookit.co/barcode-generator rule set as the behavioral reference. It does not, however, route to siblings such as validate_gtin for check-digit verification or generate_qr for QR needs.

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