Test an ABN check digit
validate_abnValidate an Australian Business Number by check-digit arithmetic, returning valid, invalid, or malformed; spaces are ignored, and registration status is not confirmed.
Instructions
Test an ABN against the check digit arithmetic ABN Lookup publishes.
result is CHECK_DIGIT_VALID, CHECK_DIGIT_INVALID or MALFORMED. Only spaces are removed; any other character is MALFORMED, never cleaned up. A valid check digit proves neither ABR nor GST registration, that the number was issued or that it is active: retain not_established and use ABN Lookup for those. Reads no network.
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": {
"abn": "<abn>"
},
"name": "validate_abn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| abn | Yes | The ABN as written: 11 digits, optionally separated by spaces. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | The check ran; not that the number passed. | |
| reason | Yes | ||
| result | Yes | Outcome of the arithmetic; never a registration status. | |
| formatted | Yes | The digits in the usual groups; null when malformed. | |
| identifier | Yes | ||
| source_url | Yes | ||
| source_checked | Yes | Date in YYYY-MM-DD form. | |
| not_established | Yes | Retain when presenting the result. | |
| source_provision | Yes | ||
| check_digit_valid | Yes | ||
| abr_registration_established | Yes | A check digit never establishes ABR registration. | |
| gst_registration_established | Yes | A check digit never establishes GST registration. |