Test a bank account number's format
validate_account_number_formatValidates an Australian bank account number against AusPayNet BECS formatting rules, returning FORMAT_VALID or MALFORMED without confirming the account exists.
Instructions
Test an account number against the account number field in AusPayNet's BECS Procedures.
result is FORMAT_VALID or MALFORMED. The field takes up to 9 ASCII letters, digits, hyphens or spaces, not all zeros or blanks; hyphens are removed from a longer number, as the procedures direct, and spaces at either end are removed. Any other character is MALFORMED, never cleaned up. The procedures set no check digit and this server holds no account data, so a valid format proves neither that the account exists or belongs to the payee nor that it matches a BSB: retain not_established. 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": {
"account_number": "<account_number>"
},
"name": "validate_account_number_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_number | Yes | The Australian bank account number as written, without the BSB. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | The check ran; not that the account exists. | |
| reason | Yes | ||
| result | Yes | Outcome of the format test; never an account lookup. | |
| formatted | Yes | The account number as the BECS field carries it, without its blank fill; 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 | ||
| account_established | Yes | A format test never establishes that the account exists. |