Skip to main content
Glama

API Keg — Barcode, QR & Label Sheet Engine

Validate or Compute GS1 GTIN / SSCC Check Digit

validate_gtin_check_digit
Read-onlyIdempotent

Validates or computes official GS1 Modulo-10 check digits for GTIN-8, GTIN-12 (UPC-A), GTIN-13 (EAN-13), GTIN-14, GSIN-17, and SSCC-18 identifiers (single value or batch up to 100). Pricing: $0.0005 USD per GTIN/SSCC validation request (up to 100 codes) (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "validate_gtin_check_digit"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueNoSingle GTIN-8, GTIN-12 (UPC-A), GTIN-13 (EAN-13), GTIN-14, GSIN-17, or SSCC-18 string to validate or complete.
valuesNoOptional batch of 1 to 100 GTIN/SSCC strings to validate in a single call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so safety is covered structurally. The description adds genuinely new behavior beyond that: per-request pricing ($0.0005 USD, x402 micropayment) and a batch ceiling of 100, which affect how an agent should plan calls. It omits what the call actually returns (boolean vs. computed digit), keeping it below 5.

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 supported-format list and batch limit are front-loaded, and the pricing note earns its space by informing call budgeting. The trailing 'Pass ?dry_run=true on REST' clause is an HTTP-API detail that is not directly actionable from an MCP tool call and adds mild noise.

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?

With no output schema, the description must carry return-value semantics, yet it never says whether the result is a boolean, a corrected identifier, or the computed check digit. Pricing and scope are covered well, but that return-shape gap matters for an agent that needs to consume 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%, so both 'value' and 'values' are already documented in the schema, making 3 the baseline. The description restates the single-vs-batch split and the 100-item cap but does not resolve the ambiguity of whether 'value' and 'values' are mutually exclusive or which takes precedence when both are supplied.

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 pair ('validates or computes') and a precise resource ('official GS1 Modulo-10 check digits') plus the exact identifier families covered (GTIN-8, GTIN-12/UPC-A, GTIN-13/EAN-13, GTIN-14, GSIN-17, SSCC-18). This is clearly distinguishable from the sibling 'generate_barcode', which produces barcodes rather than checking digits.

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?

Gives clear usage context: single value or batch up to 100, with an explicit free schema-validation path via dry_run. It stops short of stating when to prefer this over a sibling or what happens on an invalid identifier, so it is strong context rather than full when/when-not guidance.

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