Calculate an IBAN
calculate_ibanBuilds the IBAN from a national bank code and account number and calculates the check digits, including the national ones (Spain, France, Italy) and a test of the national ones where the account number carries them (Belgium, Portugal, Norway). Countries: DE, AT, CH, NL, BE, ES, FR, IT, GB, IE, PT, LU, GR, DK, PL, NO. For GB and IE the bank code is the four letter bank code followed by the six digit sort code; for ES, FR, IT, PT, GR and PL it is bank code and branch code together. The result is arithmetic only: it does not prove that the account exists.
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": {
"country": "<country>",
"bank_code": "<bank_code>",
"account_number": "<account_number>"
},
"name": "calculate_iban"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | Yes | Two letter country code, for example DE. | |
| bank_code | Yes | National bank code (Bankleitzahl, sort code with bank letters, ABI and CAB, entidad and oficina, and so on). | |
| account_number | Yes | National account number. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| iban | No | ||
| reason | No | ||
| country | No | ||
| message | No | ||
| formatted | No |