validate_gtin
Pack: gtin · Endpoint: https://gateway.pipeworx.io/gtin/mcp
Validate a barcode number — EAN-13, UPC-A (12), EAN-8, or GTIN-14 (keyless, offline). Checks the mod-10 check digit, reports the format, normalizes to GTIN-14, and returns the GS1 prefix + issuing country/region. Spaces/dashes ignored. Validates the number, not the product.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
code | string | yes | A barcode/GTIN, e.g. “0036000291452” or “4006381333931”. |
Example call
curl -X POST https://gateway.pipeworx.io/gtin/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"validate_gtin","arguments":{}}}'
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"gtin": {
"url": "https://gateway.pipeworx.io/gtin/mcp"
}
}
}
See Getting Started for client-specific install steps.