Skip to main content
Glama

Barcode Pro: barcodes and QR codes

Make a barcode or QR code

generate_barcode
Read-only

Draw a barcode or QR code and return it as SVG (for print) and as a PNG preview. format: EAN13, EAN8, UPC (UPC-A), ITF14, CODE128, CODE39 or QR. value: the digits or text (QR: any text or URL up to 256 characters). Colours as #rrggbb; keep the bars dark on a light background so scanners can read it.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "format": "<format>",
      "value": "<value>"
    },
    "name": "generate_barcode"
  }
}

Input Schema

NameRequiredDescriptionDefault
bgNoBackground colour#ffffff
fgNoBar colour#0a0a0b
textNoPrint the number under 1D barcodes
valueYes
formatYes
heightNoBar height (1D barcodes)
png_widthNoWidth of the PNG preview in pixels

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

The annotations only declare readOnlyHint and openWorldHint, so the description must carry the rest, and it does disclose that output is both SVG and a PNG preview (important since there is no output schema). It does not cover failure behavior, such as what happens with a bad EAN13 length or checksum, so it is not fully transparent.

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: purpose and output first, then parameter meaning, then a scannability tip. Nothing is padded and the most important information is front-loaded.

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 fills the gap by naming both return formats, and with 7 parameters it covers the ambiguous ones while schema descriptions handle the rest. The remaining gap is runtime behavior on invalid inputs and how barcode generation relates to the sibling validation tool.

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 71%, and the description adds real meaning where the schema is bare: it maps the ambiguous enum value 'UPC' to UPC-A, explains that 'value' is digits/text (any text or URL up to 256 chars for QR), and constrains colours to '#rrggbb'. It says nothing about height, png_width or the text toggle, though those already have schema descriptions.

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 opens with a concrete verb+resource ('Draw a barcode or QR code') and states the output form ('SVG for print' plus 'PNG preview'), which is far more specific than the title. It never names the sibling check_barcode_number, so it stops short of explicit sibling differentiation.

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 only implied: an agent can infer this is the tool for producing barcode images rather than validating numbers. It gives a practical tip ('keep the bars dark on a light background so scanners can read it') but offers no when-not guidance or pointer to check_barcode_number for validating a number first.

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