Test a BSB's format
validate_bsb_formatValidate an Australian BSB against AusPayNet BECS formatting (6 digits, XXX-XXX) and return FORMAT_VALID or MALFORMED; this checks structure only, not whether the BSB exists.
Instructions
Test a BSB against the format AusPayNet's BECS Procedures publish: 6 digits, XXX-XXX.
result is FORMAT_VALID or MALFORMED. Spaces and one hyphen after the third digit are removed; any other character is MALFORMED, never cleaned up. A BSB has no check digit and this server holds no BSB directory, so a valid format proves neither that AusPayNet issued the BSB nor that it exists or accepts payments: retain not_established and use AusPayNet's BSB 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": {
"bsb": "<bsb>"
},
"name": "validate_bsb_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bsb | Yes | The BSB as written: 6 digits as XXX-XXX or without the hyphen, optionally separated by spaces. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | The check ran; not that the BSB exists. | |
| reason | Yes | ||
| result | Yes | Outcome of the format test; never a directory lookup. | |
| formatted | Yes | The BSB as XXX-XXX; 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 | ||
| institution_established | Yes | A format test never establishes that AusPayNet issued the BSB. |