Skip to main content
Glama

Agent Data Tools: Utilities

SWIFT code, BIC validation: structure, country and branch

bic_validate
Read-only

Check a BIC (SWIFT code) against the ISO 9362 structure: institution code, a real country code with its name, location code, branch code, whether it is the head office (XXX or 8 characters), a test BIC or a passive participant, and the 11-character form. Computed locally; it checks the format and country, not whether the bank exists. Use before an international transfer or to clean payment data; for account numbers use validate_iban. Example: bic=DEUTDEFF500. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": {
      "bic": "<bic>"
    },
    "name": "bic_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
bicYesBIC / SWIFT code, 8 or 11 characters

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only cover the safety profile (readOnly, non-destructive, non-open-world), while the description adds genuinely new behavioral facts: computation is local, results do not prove bank existence, nothing is mutated, and there is a metered cost ($0.01/call, first 10 free, failed calls free). The note that repeats are charged also explains the otherwise puzzling idempotentHint=false, rather than contradicting it.

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 is front-loaded in the first sentence, followed by the scope caveat, the routing guidance, and finally the commercial terms. It is dense but nearly every clause carries information; the pricing tail is the least essential element and makes the block slightly heavier than necessary.

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?

With one parameter, no output schema, and annotations covering safety, this description is complete: it spells out the components returned, the limits of the check, cost behavior, and an example input. Nothing an agent needs in order to call it correctly, or to interpret the result honestly, is missing.

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?

Schema description coverage is 100% and the single parameter is already documented as '8 or 11 characters', so the baseline is 3. The description earns an extra point by giving a concrete example value (bic=DEUTDEFF500) and by clarifying that an 8-character or XXX-branch code means head office, which the schema does not explain.

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 uses a specific verb and resource — 'Check a BIC (SWIFT code) against the ISO 9362 structure' — and then enumerates exactly which sub-checks are performed (institution code, country code plus name, location code, branch code, head-office XXX form, test BIC, passive participant, 11-character form). That detail makes it immediately distinguishable from siblings like validate_iban or country without opening any schema.

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

Usage Guidelines5/5

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

It states positive use cases ('before an international transfer or to clean payment data'), names the explicit alternative for a different input type ('for account numbers use validate_iban'), and gives a clear exclusion ('it checks the format and country, not whether the bank exists'). An agent knows both when to pick it and what it cannot answer.

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