Validate BIN/IIN
check_binValidate a 12-digit Kazakhstan BIN or IIN offline, including its check digit, before looking up a company or person by identifier.
Instructions
Check that a Kazakhstan BIN or IIN has 12 digits and a correct check digit.
Works offline. Use it before looking up a company or person by identifier.
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": {
"value": "<value>"
},
"name": "check_bin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | 12-digit BIN or IIN, e.g. '123456789012'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | True when the format and check digit are correct. | |
| value | Yes | The identifier as received, trimmed. | |
| reason | No | Why the identifier is invalid; null when valid. |