Skip to main content
Glama

Barcode Generator - EAN-13, EAN-8, UPC-A, Code 128, Code 39, ISBN

barcode_generator
Read-onlyIdempotent

Draw a print-ready barcode as PNG (base64) and SVG: EAN-13, EAN-8, UPC-A, ISBN-13 (check digit computed or verified), Code 128 and Code 39 for any text. Wrong length or check digit -> clear 400 error. Runs on our server, < 0.2 s. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/barcode-generator.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "type": "ean13",
      "value": "590123412345"
    },
    "name": "barcode_generator"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoean13, ean8, upca, code128, code39 or isbn13ean13
valueYesThe number or text to encode, e.g. 590123412345

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/openWorld, and the description adds real behavioral detail beyond them: server-side rendering under 0.2 s, a deterministic 400 error on wrong length or check digit, and the free-tier limit of 5 calls/day per IP. It also names both auth paths (Radar API key via X-API-Key, or x402 per-call billing), which is exactly the operational context an agent needs.

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?

The capability statement is front-loaded before error behavior, latency and billing, which is the right order for an agent skimming for fit. The pricing/endpoint sentence is the densest part and borders on marketing copy, but it carries genuine auth and cost information, so little is truly wasted.

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?

With only two parameters and no output schema, the description carries the return-format burden itself by naming PNG base64 and SVG. Error behavior, supported types and access/pricing are all covered, so nothing needed to call this 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 100% and the enum is documented in the schema, so the baseline is a 3. The description earns above that by clarifying per-type value semantics: check digits are computed or verified for ISBN-13, and Code 128/Code 39 accept arbitrary text rather than digits only.

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?

"Draw a print-ready barcode as PNG (base64) and SVG" gives a specific verb, resource and output formats, then enumerates the six supported symbologies. That enumeration alone separates it from qr_code_generator and other siblings without needing an explicit exclusion clause.

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

Usage Guidelines3/5

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

Usage is implied through the enumerated barcode types and the note that check digits are computed or verified, so an agent can tell this is the tool for linear barcodes. However, there is no explicit when-to-use/when-not statement and no pointer to an alternative (e.g. qr_code_generator for 2D codes), leaving routing to inference.

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