Validate Gtin
validate_gtinValidate 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.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "0036000291452"
},
"name": "validate_gtin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | A barcode/GTIN, e.g. "0036000291452" or "4006381333931". |