Skip to main content
Glama

barcode generate

barcode_generate
Read-only

Generate printable barcodes: Code 128 (any text, shipping and inventory labels) or EAN-13 (retail, check digit computed and verified), as PNG or SVG with the human-readable line. Costs $0.002 USDC per call (x402).

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": {
      "data": "<data>"
    },
    "name": "barcode_generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes
typeNocode128 or ean13
formatNo
heightNo
moduleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered, and the description adds substantial context on top: a per-call cost of $0.002 USDC via x402, that the EAN-13 check digit is computed and verified, and that output includes a human-readable line. The payment requirement in particular is a behavioral trait an agent cannot infer from structured fields. Minor gap: no pagination/return-shape note, though there is no output schema to describe.

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?

A single front-loaded sentence that moves from purpose to symbology to output format to cost, with no filler. Every clause carries information an agent needs.

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

Completeness3/5

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

For a no-output-schema generate tool it covers the essentials (cost, formats, symbology, check digit), and the annotations carry the read-only/open-world signal. But with 5 parameters at 20% schema coverage, the unexplained height and module parameters leave the definition short of complete for a toolset this parameterized.

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 only 20%, so the description must compensate. It does add meaning for type (code128 vs ean13) and format (PNG/SVG), but height and module are left entirely undocumented in both the schema and the description, leaving three-of-five parameters unresolved.

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 (Generate) and resource (barcodes), and enumerates the supported symbologies (Code 128, EAN-13) and output formats (PNG/SVG). It is clear what the tool does, but it never references the adjacent sibling tools barcode or barcode_read, so the agent gets no explicit 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?

Gives genuine selection context between the two modes ('Code 128 ... shipping and inventory labels' vs 'EAN-13 ... retail'), which helps an agent pick a type. However, it offers nothing about when to reach for barcode_generate instead of the sibling barcode or barcode_read tools, so the routing guidance is only implied.

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