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 €15/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. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent/openWorld annotations by disclosing server-side execution latency (<0.2 s), validation behavior (wrong length or check digit yields a clear 400), rate limits (5 free calls/day per IP), and both auth paths (X-API-Key paid tier or x402 per-call pricing). These are the operational facts an agent needs before calling.

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?

Front-loaded with capability and output format, then validation, speed, and pricing. Dense with no filler, though the full pricing URL and dual payment explanation make the tail longer than strictly necessary for tool selection.

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 two-parameter generator with no output schema, the description covers return format (base64 PNG and SVG), error behavior, latency, and access/pricing model. Nothing material for correct invocation 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%, so the baseline is 3, but the description adds real meaning: that ISBN-13 check digits are computed or verified and that value length is validated per symbology, implying the value must match the selected type. That is a useful constraint the schema does not encode.

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 ('Draw a print-ready barcode') and enumerates exactly which symbologies are supported, which immediately separates it from the qr_code_generator sibling. The output formats (PNG base64 and SVG) are named up front.

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?

Implied usage is clear (barcode symbologies, 'for any text' for Code 128/39), and it adds a helpful selection rule: check digit is computed or verified for ISBN-13. It stops short of explicit when-not guidance or naming an alternative tool, so it is strong context but not full routing.

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