Skip to main content
Glama

Barcode Generator

barcode
Read-only

Generate a barcode as PNG (base64): code128 (default), ean13, ean8, upca, upce, code39, itf14, gs1_128, isbn, datamatrix, pdf417, aztec or qr. Validates check digits for EAN/UPC. Use for labels, shipping, inventory, tickets or invoices. Params: text (required), type, scale (1-8, default 3), include_text boolean (human-readable text under the bars). Price: $0.0025 USDC per call, paid inside this MCP call via x402 (USDC on Base, Solana, Polygon or Arbitrum). x402 MCP clients such as @x402/mcp pay automatically. Free sample: call with the example input {"text":"4006381333931","type":"ean13"}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesData to encode
typeNocode128
scaleNo
include_textNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only cover the safety profile (readOnly, non-destructive, open-world); the description adds genuinely new behavioral facts: the paid model ($0.0025 USDC per call, x402 on Base/Solana/Polygon/Arbitrum), the fact that x402 clients pay automatically, and a free sample input. It also discloses check-digit validation, which determines when a call fails.

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-loads the output format and format list, then use cases, then params, then payment — a sensible order with no filler sentences. It is dense (payment, sample input, and formats in one paragraph) but every clause carries information.

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 no output schema, the description still discloses the return format (PNG base64) and the human-readable-text option. Combined with the disclosed pricing/auth requirement and the complete parameter rundown, an agent has everything needed to call it successfully.

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 25% (only 'text' is described), so the description carries real weight: it marks text as required, restates the type default, explains scale's 1-8 range/default of 3, and clarifies include_text means human-readable text under the bars — the one semantic the schema omits entirely. The type list and scale bounds are largely redundant with the schema's enum and min/max.

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?

States a specific verb and resource — 'Generate a barcode as PNG (base64)' — and enumerates the 13 supported symbologies, so the agent knows exactly what comes back. It does not, however, distinguish itself from the sibling qr_code tool even though 'qr' is one of its own formats, leaving the agent to infer the overlap.

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 concrete usage context ('labels, shipping, inventory, tickets or invoices') and states that EAN/UPC check digits are validated before generation. It stops short of any exclusion or alternative guidance, so the barcode-vs-qr_code decision is left unstated.

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