Skip to main content
Glama

Barcode generator

make_barcode
Read-onlyIdempotent

Make an SVG barcode. Validates retail check digits and lengths. GS1-128 and GS1 DataMatrix accept bracketed (01)GTIN(17)YYMMDD(10)lot; use make_qr for QR codes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText to encode; at most 1024 UTF-8 bytes.
formatNocode128

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds real behavioral context beyond that: it validates retail check digits and lengths (i.e. it can fail on bad input) and documents the bracketed GS1 application-identifier input syntax.

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: output form first, then validation behavior, then input syntax, then the alternative tool. Every sentence carries distinct information with no repetition of the schema.

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

Completeness4/5

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

With no output schema, the description correctly names the return artifact (SVG), and it covers validation failures and GS1 syntax for a two-parameter tool. Minor gaps remain: no mention of symbol sizing/options or what a validation failure looks like in the response.

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 only 50% (format has no description), so the description compensates by explaining the GS1-128/DataMatrix bracketed input form such as (01)GTIN(17)YYMMDD(10)lot and the per-format validation rules that constrain `text`. The 1024-byte limit is left to the schema, which already states it.

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 an SVG barcode") plus the formats it supports, and explicitly separates itself from make_qr. An agent can distinguish it from read_barcode and make_qr without opening either 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 routes QR requests to make_qr, which is the main sibling ambiguity in this space. It does not, however, say when to pick each barcode format (e.g. ean13 vs code128 vs datamatrix), so format selection is left to the enum.

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