validate_clabe_mx
Validates Mexican CLABE bank account numbers using the official weighted modulo-10 checksum algorithm to confirm accuracy for wire transfers and payment flows.
Instructions
Validates a Mexican CLABE (Clave Bancaria Estandarizada) — the 18-digit standardized bank account number used for electronic transfers in Mexico, as defined by BANXICO (Banco de México). Applies the official weighted modulo-10 checksum algorithm (weights: 3,7,1 repeating). Returns { valid: boolean, clabe: string, bank_code: string, city_code: string } or { valid: false, reason: string }. Use when processing Mexican wire transfers, validating supplier bank accounts, or building Mexican payment flows in AI agents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clabe | Yes | 18-digit Mexican CLABE bank account number. Example: '032180000118359719' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | ||
| clabe | No | ||
| bank_code | No | ||
| city_code | No | ||
| reason | No |