Skip to main content
Glama

ean_validate

Validates an 8-digit (EAN-8), 12-digit (UPC-A), 13-digit (EAN-13), or 14-digit (GTIN-14) barcode checksum: alternating weights 1 3 applied right-to-left, check digit is (10 - sum mod 10) mod 10.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYesidentifier or value to check

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
validYes
reasonNo

TDQS

A4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the checksum algorithm (alternating weights 1 3, right-to-left, check digit formula), which is helpful. However, it doesn't state whether the tool returns a boolean or throws errors, or what happens on invalid input format (e.g., non-numeric characters). The presence of an output schema mitigates this somewhat, but basic behavioral details are missing.

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?

The description is a single sentence that packs all critical information: supported barcode types, digit lengths, and the checksum algorithm. No wasted words, front-loaded with the core purpose. Excellent conciseness.

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?

Given the tool has a single required parameter, an output schema (not shown here but present), and 100% schema coverage, the description is largely complete. It explains what formats are valid and how the check works. A minor gap is not explaining return format or error behavior, but the output schema likely covers returns.

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?

The schema has 1 required parameter with 100% coverage (value is described as 'identifier or value to check'). The description adds significant meaning by specifying exactly what formats are accepted (EAN-8, UPC-A, etc.) and the validation algorithm, which goes beyond the schema's generic 'identifier or value to check' description.

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?

The description clearly states it validates barcode checksums for EAN-8, UPC-A, EAN-13, and GTIN-14, with specific digit lengths. The verb 'validates' combined with the explicit resource ('barcode checksum') makes the purpose unambiguous and distinct from sibling tools like iban_validate or isbn_validate.

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 description implicitly suggests when to use this tool—when validating barcode checksums—but provides no explicit guidance on when not to use it or when to prefer one of the sibling tools (e.g., luhn_validate for credit cards, iban_validate for IBANs). The list of supported barcode types is helpful but lacks exclusionary context.

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.

TDQS

A4.1/5.0
Disambiguation5/5

Each tool validates a completely distinct type of identifier (barcodes, IBANs, ISBNs, Luhn-based numbers, SWIFT/BIC codes, and EU VAT numbers). There is no overlap in purpose, and descriptions clearly differentiate the specific format and algorithm used.

Naming Consistency5/5

All six tools follow an identical naming pattern: the lowercase identifier name followed by '_validate'. This consistent noun_verb structure makes it easy for an agent to predict the tool name for any identifier type.

Tool Count5/5

With six tools covering the most common checksum-based identifiers (barcodes, IBANs, ISBNs, payment cards, SWIFT/BIC, EU VAT), the server is well-scoped. Each tool serves a clear purpose without unnecessary redundancy or excessive complexity.

Completeness5/5

The tool set covers the major standardized identifiers that rely on checksums or structural validation. While additional identifiers like VIN or SSN could be added, the current selection represents a natural and comprehensive set for a 'Checksum Validator' server.

Resources