Product & Barcode Intelligence · Deterministic Engine Slug: gtin_barcode_validator 0-LLM Deterministic

GTIN-8 / UPC-A / EAN-13 / GTIN-14 Check-Digit Validator & GS1 Parser

Corrupted check digits and mis-typed supplier spreadsheets cause silent Amazon, Google Shopping, and Shopify Merchant Center rejections long before inventory ships.

5-Second Try-Now Console Connect via /mcp FastMesh SuperBus

How It Works & Live Probe Telemetry

Executing locally in 0.1 ms with zero external network calls, this deterministic validator strips spaces and hyphens, enforces exact 8, 12, 13, or 14 digit lengths, computes the official GS1 Modulo-10 weighted checksum (3x/1x alternating from right to left excluding the check digit), normalizes every valid barcode into canonical 14-digit GTIN-14 padding, and maps the leading 3-digit GS1 prefix (for instance, prefix 301 maps to France / GS1 France). Invalid check digits return ok: false and valid: false at $0.00.

Verified Endpoint & Billing Contract

MCP Tool Namegtin_barcode_validator
Subdomain & Modeproduct_barcode · deterministic
REST EndpointPOST https://devour-com.fastmesh.dev/v1/organs/gtin_barcode_validator/invoke
MCP EndpointPOST https://devour-com.fastmesh.dev/mcp (also mounted on https://mcp.fastmesh.dev/mcp)
Verified Probe Latency0.1 ms (HTTP 200, verified 2026-12-02T10:50:00Z)
Archive Cache TTL30 days (2592000s) cross-tenant verified-hit cache
Empty / Error RuleCharge $0.00 when input is non-numeric, unsupported length (not 8, 12, 13, or 14), or fails GS1 Modulo-10 check-digit verification.
Plans & PrivacyStarter $19/mo · Pro $79/mo · Scale $249/mo · Zero trajectory resale

Production Use Cases

ScenarioTrigger InputDeterministic Output Value
Google Merchant Center Feed Pre-FlightValidate thousands of supplier UPCs prior to feed uploadCatches single-digit typos and reports expected_check_digit immediately
ERP GTIN-14 NormalizationUnify 12-digit UPC-A and 13-digit EAN codes in SQLProduces zero-padded normalized_gtin14 keys for warehouse joins
Origin GS1 Prefix AuditingCheck country registry prefix on imported goodsDecodes gs1_prefix and gs1_region deterministically

MCP JSON-RPC 2.0 & REST Invocation Examples

Call via MCP tools/call on https://devour-com.fastmesh.dev/mcp:

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

Or invoke directly via REST (POST /v1/organs/gtin_barcode_validator/invoke):

curl -sS -X POST https://devour-com.fastmesh.dev/v1/organs/gtin_barcode_validator/invoke \
  -H 'Content-Type: application/json' \
  -d '{"input": {"code": "3017620422003"}}'

Verified structured JSON response:

{
  "ok": true,
  "valid": true,
  "format": "EAN-13",
  "normalized_gtin14": "03017620422003",
  "expected_check_digit": 3,
  "gs1_prefix": "301",
  "gs1_region": "France (GS1 France)",
  "billable_usd": "0.005"
}

Strict Input Schema

{
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "minLength": 8,
      "maxLength": 18,
      "description": "GTIN-8, UPC-A (12), EAN-13 (13), or GTIN-14 (14) code (spaces/hyphens stripped)."
    }
  },
  "required": [
    "code"
  ],
  "additionalProperties": false
}

Frequently Asked Questions

Why normalize UPC-A and EAN-13 to GTIN-14?

GS1 standards treat all 8, 12, 13, and 14 digit trade item numbers as right-aligned 14-digit integers, eliminating join mismatches across POS and EDI systems.

Are failed check digits billed?

No. Codes failing Modulo-10 validation or containing non-numeric characters settle at $0.00.

Related Commerce & Marketing MCP Tools