Validate a Mexican CLABE or Argentine CBU and identify the bank
latam_validate_bank_accountChecks an interbank account key and names the institution behind it: the 18-digit Mexican CLABE with the Banxico Mod-10 check digit, and the 22-digit Argentine CBU with its two independent block checksums. It returns the bank name from the embedded institution code, the branch and account portions, and for a CLABE the plaza code. Use it before a first payout, when registering supplier or payroll bank details, or to reject a mistyped key at the point of entry instead of waiting for a returned transfer. Do not use it for tax IDs, which latam_validate_tax_id handles, do not loop it over a payout list when latam_validate_batch checks up to 100 keys for the same single charge, and do not read a pass as confirmation that the account exists, is open or belongs to the named holder: the checksum proves only that the key is well formed, so it catches typos, not fraud. Read-only, deterministic and fully offline at the edge, so a retry is safe. Costs 0.008 USDC per call via x402 v2 on Base (eip155:8453) or a B2B X-API-Key; an unpaid call returns HTTP 402 with a PAYMENT-REQUIRED header. One call is one charge no matter how many identifiers it carries, so batching is strictly cheaper than looping. It never throws on bad input: a malformed key comes back with valid false and the reasons in errors, so branch on results[0].valid.
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": "latam_validate_bank_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Bank account standard. CLABE is the 18-digit Mexican Banxico interbank key and CBU the 22-digit Argentine BCRA key. Omit it to auto-detect by length; supply it to force a strict check and get a clear error instead of a silent 'UNKNOWN'. | |
| value | Yes | The account key, with or without spaces or dashes: 18 digits for a Mexican CLABE, 22 for an Argentine CBU. Separators are stripped before the checksum is computed. | |
| country | No | ISO 3166-1 alpha-2 country code, MX for a CLABE or AR for a CBU. Optional, since the two standards differ in length. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | true when the request was processed and paid for. It does not mean the documents were valid: read results[].valid for that. | |
| meta | Yes | Provenance of the call, worth logging. | |
| error | No | Stable machine-readable failure code, present only on a rejected call. Common values: 'invalid_payment' and 'settlement_failed' (x402 verification or settlement refused, returned with HTTP 402), 'B2B_KEY_INVALID' and 'B2B_QUOTA_EXCEEDED' (B2B X-API-Key path). An invalid document is NOT an error: the call succeeds with valid false and a populated errors array. | |
| message | No | Human-readable explanation of the failure. Safe to log or surface to a human operator. | |
| results | No | A single-element array holding the verdict for the key you sent, with the bank name and the account breakdown under decoded. | |
| summary | Yes | Aggregate counters, so a batch can be triaged without walking the results array. | |
| warnings | No | Non-fatal notes, such as a batch truncated at 100 items or a request that carried nothing to check. | |
| suggestedNextSteps | No | Chaining hints for autonomous agents: sibling paid APIs commonly called right after this one, selected from what was actually found in the results. Purely advisory, never required. |