validate_gtin
Validate a UPC, EAN, GTIN or ISBN-13. Checks the GS1 check digit and names the format (UPC-A, EAN-13, EAN-8, GTIN-14). When the digit is wrong it returns the digit it should be. Notes ISBN and ISSN prefixes. It does not look the product up. Nothing is stored.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "validate_gtin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |