Skip to main content
Glama

Validate Barcodes (FREE — $0.00)

validate_barcodes
Read-onlyIdempotent

FREE ($0.00) local GS1 barcode pre-validator. ALWAYS call this BEFORE paying for catalog lookups to strip spaces/hyphens, detect format (EAN-8, UPC-A, EAN-13, GTIN-14), verify GS1 Modulo-10 check digits, and deduplicate 1 to 50 scanned barcodes. Never calls external APIs and never charges USDC.

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": {
      "barcodes": "<barcodes>"
    },
    "name": "validate_barcodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
barcodesYesList of 1 to 50 raw barcode strings (hyphens/spaces allowed) to validate locally for free.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly, closed-world, idempotent, non-destructive, but the description adds meaningful context beyond them: it runs locally, makes no external API calls, and never incurs a charge. Deduplication also implies a side effect (output shorter than input) that annotations would not reveal.

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?

Dense and front-loaded, with the cost/ordering rule first and the operation list second. Slightly redundant: 'FREE ($0.00)' appears in the title and again in the description, and the cost point is restated at the end as 'never charges USDC'.

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?

Covers the input contract and the cost/ordering decision well, but leaves the output undefined in both description and structured fields. The agent must guess whether the result is a cleaned list, a per-barcode valid/invalid map, or an error on malformed input — information that matters for a pre-validation gate.

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 100% and the single parameter is already documented, so the baseline is 3. The description earns a bump by explaining what the tool does to the strings — stripping hyphens/spaces and validating check digits — plus the 1-to-50 bound, which tells the agent the input can be raw scanned text rather than pre-cleaned GTINs.

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 specific verb and resource ('local GS1 barcode pre-validator') and enumerates the concrete operations: normalizing spaces/hyphens, detecting formats (EAN-8, UPC-A, EAN-13, GTIN-14), verifying Modulo-10 check digits, and deduplicating. This is clearly distinguishable from a paid catalog lookup tool.

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

Usage Guidelines5/5

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

'ALWAYS call this BEFORE paying for catalog lookups' gives an explicit ordering and a cost-based decision rule that routes the agent to this tool first. The when-not is implied by 'never calls external APIs' — this is only the pre-validation step, not the spec lookup itself.

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.