Skip to main content
Glama

Generate barcode

generate_barcode

Generate barcodes and QR codes as PNG images, supporting Code 128, EAN-13, EAN-8, UPC-A, Code 39, ITF-14, and QR with configurable size and error correction.

Instructions

Generate a 1D barcode (Code 128, EAN-13, EAN-8, UPC-A, Code 39, ITF-14) or QR code as a PNG image.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesThe data/text to encode
scaleNoPixel scale factor (default 3)
heightNo1D bar height in mm-units (default 10; ignored for QR)
eclevelNoQR error-correction level (default M)
symbologyNoBarcode type (default code128)
includetextNoShow the human-readable value under 1D barcodes (default true)
Behavior2/5

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

With no annotations, the description carries the full burden of disclosure, but it only states the output format (PNG image) and supported symbologies. It does not explain the return value representation, error handling, size limits, or any side effects. This is insufficient for an agent to anticipate tool behavior reliably.

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?

The description is a single, front-loaded sentence that conveys the core functionality and supported formats without redundancy. Every word earns its place, and it is appropriately sized for a relatively simple tool.

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

Completeness2/5

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

The tool has 6 parameters, no output schema, and no annotations, yet the description provides minimal context. It doesn't explain the actual return format (e.g., file path, base64 data), how errors are surfaced, or the difference between 1D barcodes and QR handling. This is incomplete for an agent to use the tool correctly without additional assumptions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so each parameter is already documented with meaningful descriptions. The tool description adds no additional parameter semantics beyond what the schema provides, such as cross-parameter dependencies (e.g., height ignored for QR). The baseline of 3 is appropriate given full schema coverage.

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?

The description clearly states the tool generates barcodes and QR codes as PNG images, listing specific symbologies. However, the overlap with sibling tool 'generate_qr' is not addressed, so the description doesn't fully distinguish when to use this tool rather than that one. The verb and resource are specific, but sibling differentiation is incomplete.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives like 'generate_qr' for QR codes or 'bulk_barcode' for multiple barcodes. The description doesn't mention any conditions, exclusions, or preferred scenarios. The agent is left to infer usage solely from the tool name and sibling list.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Convalexa-Solutions-LLP/barcode-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server