GTIN / EAN / UPC checksum
gtin_checksumCheck or fill the check digit on a barcode number.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gtin_checksum"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | The barcode digits (7 to 14 of them). Spaces and dashes are ignored. | |
| action | No | What to do: "check" (the default) to test the last digit, or "fill" to add the missing check digit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| tool | Yes | ||
| result | Yes |