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 Name | gtin_barcode_validator |
|---|---|
| Subdomain & Mode | product_barcode · deterministic |
| REST Endpoint | POST https://devour-com.fastmesh.dev/v1/organs/gtin_barcode_validator/invoke |
| MCP Endpoint | POST https://devour-com.fastmesh.dev/mcp (also mounted on https://mcp.fastmesh.dev/mcp) |
| Verified Probe Latency | 0.1 ms (HTTP 200, verified 2026-12-02T10:50:00Z) |
| Archive Cache TTL | 30 days (2592000s) cross-tenant verified-hit cache |
| Empty / Error Rule | Charge $0.00 when input is non-numeric, unsupported length (not 8, 12, 13, or 14), or fails GS1 Modulo-10 check-digit verification. |
| Plans & Privacy | Starter $19/mo · Pro $79/mo · Scale $249/mo · Zero trajectory resale |
Production Use Cases
| Scenario | Trigger Input | Deterministic Output Value |
|---|---|---|
| Google Merchant Center Feed Pre-Flight | Validate thousands of supplier UPCs prior to feed upload | Catches single-digit typos and reports expected_check_digit immediately |
| ERP GTIN-14 Normalization | Unify 12-digit UPC-A and 13-digit EAN codes in SQL | Produces zero-padded normalized_gtin14 keys for warehouse joins |
| Origin GS1 Prefix Auditing | Check country registry prefix on imported goods | Decodes 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.