Skip to main content
Glama

util_barcode

Read-only

util_barcode — Validate and convert product and publication codes offline: UPC-A, EAN-8, EAN-13, GTIN-14, ISBN-10, ISBN-13 and ISSN. Checks the check digit (with the expected digit on a typo), converts between formats (ISBN-10 to 13, UPC to EAN-13/GTIN-14, ISSN to EAN-13), and names the GS1 prefix and ISBN language group. Price: $0.001 USDC (Base, via 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": {
      "code": "<code>"
    },
    "name": "util_barcode"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes0-306-40615-2

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false), and the description adds real behavior beyond that: check-digit validation that returns the expected digit on a typo, the specific conversion directions supported, GS1 prefix and ISBN language-group naming, and a per-call price of $0.001 USDC via x402 — cost being something annotations never carry. One tension: it calls the tool 'offline' while also requiring an x402 payment round-trip on Base, which an agent should not read as strictly network-free.

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-loaded with the name and the core verb, and every clause (formats, check digit, conversions, prefix naming, price) carries information. It is a single dense run-on sentence with nested parentheses, so it is efficient but not as scannable as a short bulleted breakdown would be.

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 one-parameter stateless utility with no output schema, the description covers formats, validation behavior, error feedback, conversion paths and pricing — nearly everything needed to call it correctly. The remaining gap is return shape: because no output schema exists, the description could have sketched what a success versus check-digit-failure result looks like.

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?

There is a single parameter with 100% schema description coverage, so the baseline is 3. The description adds meaning by listing which code families the 'code' string may contain and which conversions are legal, but it gives no syntax detail (separators, hyphens, check-digit inclusion) beyond the schema's format example.

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 specific verbs ('validate and convert') plus the exact resource (product and publication codes), and enumerates the supported symbologies: UPC-A, EAN-8, EAN-13, GTIN-14, ISBN-10/13, ISSN. That enumeration alone distinguishes it from generic siblings like util_convert or util_calc without opening any schema.

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?

The context of use is clearly implied — you have a barcode and want validation or cross-format conversion — and 'offline' signals no external lookup is required. However, no alternative is named (e.g. when to prefer util_convert or a phone/CIDR sibling) and there are no explicit exclusions or prerequisites, so an agent must infer the selection rule.

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