Skip to main content
Glama

IBAN Validation

iban_validate
Read-only

Validate an IBAN and identify the institution that holds the account.

Performs format check, country-specific length check, and ISO 7064 mod-97 checksum verification. Also returns COUNTRY-level banking rules for the IBAN's country prefix (national currency, SEPA status, expected format).

CROSS-CHECKS THE BENEFICIARY BANK. Where the country's IBAN registry mask defines the bank identifier as four alpha characters (GB, NL, IE, RO, PK, MT, JO, QA, KW and others), bank_identifier.resolved_institution names the institution that actually holds the account, read out of the IBAN itself. Call this whenever the user supplies an IBAN AND names a beneficiary bank or BIC — if the two disagree, that mismatch is a far better explanation for a rejected or returned payment than anything you can infer, and it is invisible without this call. Everywhere else the bank identifier is a NATIONAL bank/sort code (the German BLZ, Italian ABI, French code banque): bank_identifier.code is those characters and is_bic_prefix is false. That code is looked up in our reference data, and bank_identifier.resolution says what came back: named, not_held, ambiguous or not_looked_up. Only when it is named does resolved_institution name the institution the code is registered to, dated by source_as_of. source names the register when it is an official one (a central bank's list, for example) and is null when the answer rests on our reference data. Use it as the same cross-check, against every BIC8 in bic8s: bic8 is only the first of them in alphabetical order, not a pick of the BIC to pay to. Otherwise no institution is named: quote the code when telling the user what to check, never a bank name derived from it.

A FAILURE IS NOT ALWAYS A CHECKSUM FAILURE. An IBAN of the right length whose characters break the country's mask (a letter where the country requires a digit — O for 0, I for 1) is refused BEFORE mod-97 runs, with format_violations naming the position. Report the position and the character; do not tell the user the check digits are wrong.

valid: true means the check digits are right and NOTHING MORE — not that the account exists, is open, or belongs to the named beneficiary or the named bank. Never rule out the account details on the strength of it when diagnosing a failed payment (see verification_note).

An IBAN encodes country + bank + account number and carries NO currency information. country_currency is the country's national currency, NOT this account's denomination — never infer a currency mismatch or a "resend in X" recommendation from it (see currency_note in the response).

Examples: iban_validate("DE89370400440532013000") iban_validate("GB29 NWBK 6016 1331 9268 19")

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": {
      "iban": "<iban>"
    },
    "name": "iban_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
ibanYesThe IBAN to check, e.g. "DE89370400440532013000". Spaces and hyphens are ignored and letters are upper-cased.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Far exceeds the annotations: it discloses that format violations are refused before mod-97 runs and reported by position, that `valid: true` means only the check digits are correct and nothing about account existence or ownership, and that `country_currency` is the country's currency rather than the account's denomination. It also documents the resolution states (`named`, `not_held`, `ambiguous`, `not_looked_up`) and the `source`/`source_as_of` provenance, which no annotation conveys.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose is front-loaded in the first sentence and the all-caps subheads aid scanning, but the body runs long and spends most of its length explaining response fields (`bank_identifier.resolution`, `resolved_institution`, `source_as_of`, `format_violations`, `currency_note`) that an output schema already covers. The interpretive warnings earn their place; the field-by-field walkthrough largely does not.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given a single-parameter tool with an output schema and read-only annotations, the description covers everything an agent needs: what is checked, the order of checks, what a pass does and does not prove, how to report a format failure, and how to use the bank-identifier cross-check. Nothing material for correct invocation or correct reporting is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single `iban` parameter is already documented with examples and the space/hyphen/upper-case normalization rules. The description's examples restate the same formats without adding syntax or acceptance rules beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names a specific verb and resource ("Validate an IBAN") and adds the institution-lookup angle, which clearly separates it from siblings like country_banking_rules or swift_lookup. The secondary claim that it "identifies the institution that holds the account" overpromises relative to the body, which later explains that naming only happens when `bank_identifier.resolution` is `named` and only for certain country masks.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger: "Call this whenever the user supplies an IBAN AND names a beneficiary bank or BIC," and an explicit fallback behavior when no institution is named. It does not name any alternative tool for plain IBAN validation or point to country_banking_rules for the country-level rules it also returns, so the routing guidance is clear but not complete.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources