validate_gln
Verify a GLN structure by validating the 13-digit format, check digit, and retrieving the issuing country. Ensures the GLN is correctly formed before use in supply chain or EDI.
Instructions
USE THIS to verify a GLN (GS1 Global Location Number — identifies a company/site/location in supply chains and EDI) before relying on it. Checks the 13-digit GS1 mod-10 check digit and returns the GS1 prefix's issuing country. Validates structure only; does not confirm the location is registered.
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": {
"gln": "<gln>"
},
"name": "validate_gln"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gln | Yes | The 13-digit GLN; spaces and dashes are ignored. |