Skip to main content
Glama

Duo Data Utilities: IBAN, VAT, ISIN Validation API

EAN/UPC barcode validator: GTIN, EAN-13, UPC-A (GTIN-12), GTIN-8/14, GLN and SSCC check digits

gtin_barcode_validate
Read-onlyIdempotent

GTIN barcode validator: validate and convert GS1 identifiers: GTIN-8, GTIN-12 (UPC-A), GTIN-13 (EAN-13), GTIN-14, GLN and SSCC. Returns the check-digit verdict, the computed correct check digit, the GTIN-14 form with its indicator digit, and conversion between GTIN-8, -12, -13 and -14. No company-prefix split is returned: GS1's prefix-length table is no longer public data. Also computes a missing check digit from a partial code. Structure only, no product database. Price: $0.05 per successful call, paid over x402 (USDC on Base).

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": {
      "value": "<value>"
    },
    "name": "gtin_barcode_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
opNovalidate (default), checkdigit (compute the missing final digit) or convert. Accepted: validate, checkdigit, convert.
toNoTarget format. Required when op=convert. Accepted: gtin8, gtin12, gtin13, gtin14.
valueYesGS1 code, digits with optional spaces or hyphens. For op=checkdigit, omit the final digit. Accepted: 8, 12, 13, 14 or 18 digits.

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. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already establish readOnly/idempotent/closed-world, and the description goes well beyond them: it lists the concrete return payload (verdict, computed correct check digit, GTIN-14 form with indicator digit, conversions), states an explicit scope limitation (no GS1 prefix split, with the reason), and discloses the cost model ($0.05 per successful call via x402 USDC on Base). Cost and return-shape disclosure are exactly the kind of non-annotation context an agent needs before calling.

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?

The description is dense and front-loaded, moving from capability to return values to limitations to pricing in a logical order, with no filler. It loses a point because the opening clause restates the title's format list almost verbatim, creating light redundancy.

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

Completeness5/5

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

With no output schema, the description must carry the return-value burden and it does, naming each returned field and clarifying that an invalid code still yields a verdict. Combined with the pricing note and the stated data limits, an agent has everything required to call this correctly and interpret the result.

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 100% and two of three parameters carry enums, so the schema already explains op, to and value thoroughly. The description only lightly reinforces this by noting the partial-code case for checkdigit and the accepted digit lengths, which largely duplicates the schema text rather than adding new semantics. Baseline 3 applies.

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 opens with a specific verb+resource ('GTIN barcode validator: validate and convert GS1 identifiers') and then enumerates exactly which identifier families are covered (GTIN-8/12/13/14, GLN, SSCC). An agent can tell this apart from iban_validate or isin_cusip_sedol_validate purely from the text, without inspecting the schema.

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?

It gives clear conditions: use checkdigit mode when the final digit is missing from a partial code, use convert for cross-format conversion, and it scopes the tool as 'structure only, no product database' with no company-prefix split. It does not explicitly say when NOT to use it (e.g. use a lookup tool for product data), but the domain is narrow enough that the context is unambiguous.

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.