Skip to main content
Glama

Barcode Tools (decode, render, GTIN validate)

Render a barcode/QR to PNG

render_barcode

Render text as a barcode PNG. format: one of qr, aztec, datamatrix, code128, code39, code93, ean13, ean8, upca, itf, pdf417. Output: base64 PNG plus 'decoded' self-check flag (we decode our own render; upca intentionally verifies as zero-padded EAN-13). GTIN codes must have a valid mod-10 checksum.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesPayload to encode (digits for GTIN symbologies)
scaleNoRasterization scale, default 6
formatYesSymbology id: qr, aztec, datamatrix, code128, code39, code93, ean13, ean8, upca, itf, pdf417

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does so well by disclosing the output shape (base64 PNG plus decoded self-check flag), the self-check behavior, and the intentional UPCA-as-zero-padded-EAN-13 quirk. It does not mention error cases or side effects, but rendering is a benign operation and the key behavioral caveats are covered.

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: one for the core action, one for the format enumeration, and one for output and validation caveats. Information is front-loaded and every sentence earns its place.

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?

For a tool with no output schema, the description compensates by explaining the return payload and self-check flag, and it documents format constraints. It omits explicit alternative routing and potential error conditions, but for a simple 3-parameter render tool this is adequate.

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 coverage is 100%, so the baseline is 3; the schema already documents text, scale, and format with descriptions. The description adds value by naming all format options and the GTIN checksum constraint, but it does not substantially enrich the meaning of text or scale beyond what the schema provides.

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 concrete action ('Render') and resource ('text as a barcode PNG'), and enumerates supported symbologies. This clearly distinguishes it from siblings decode_barcode, list_formats, and validate_gtin.

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?

The description makes the rendering use case clear and adds practical constraints like the mod-10 checksum requirement for GTIN codes. It does not explicitly name alternatives or state when not to use the tool, but the sibling names and context make the intended usage evident.

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