Skip to main content
Glama

Muteware finance tools

Calculate an IBAN

calculate_iban
Read-onlyIdempotent

Builds 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

NameRequiredDescriptionDefault
countryYesTwo letter country code, for example DE.
bank_codeYesNational bank code (Bankleitzahl, sort code with bank letters, ABI and CAB, entidad and oficina, and so on).
account_numberYesNational account number.

Output Schema

NameRequiredDescriptionDefault
okYes
ibanNo
reasonNo
countryNo
messageNo
formattedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive, so the description is not burdened with safety disclosure, but it adds genuine behavioral context: national check digits are computed for ES/FR/IT and national check digits are tested where present (BE, PT, NO), and the output is arithmetic only and does not confirm account existence.

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

Conciseness4/5

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

The core capability and the existence caveat are front-loaded, and the remaining sentences carry country-specific format rules that each add value. It is dense and slightly run-on but contains no filler.

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

Completeness4/5

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

With an output schema present, return values need not be described, and the description covers the country scope and per-country input format rules. The only minor gap is the absence of error behavior (e.g., unsupported country or malformed bank code).

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

Parameters4/5

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

Beyond the schema's generic parentheticals, the description explains how bank_code must be composed for specific countries — four-letter bank code plus six-digit sort code for GB/IE, and bank code plus branch code combined for ES, FR, IT, PT, GR and PL — which is real semantic guidance an agent could not get from the schema alone.

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

Purpose5/5

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

The description states a specific verb and resource ('Builds the IBAN from a national bank code and account number and calculates the check digits') and explicitly contrasts with verification by noting the result 'is arithmetic only: it does not prove that the account exists', which separates it from validate_iban without naming it.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the country list and the 'does not prove that the account exists' caveat hint at when construction (rather than validation) is appropriate, but there is no explicit when-to-use or when-not-to-use guidance relative to validate_iban or generate_test_iban.

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