Skip to main content
Glama

Swiss Clearing Lookup

lookup_ch_clearing
Read-onlyIdempotent

Resolve a Swiss BC-Nummer / IID (1 to 5 digits) into the underlying institution. USE WHEN: the user mentions a Swiss bank by BC-Nummer or IID, pastes a CH or LI IBAN clearing code, asks routing details for a Swiss instant transfer (SIC, euroSIC), asks about QR-bill QR-IID resolution, or needs to classify a Swiss financial institution (bank vs PFS vs SIC-only participant). EVERY IID OF THE SIX BANKMASTER, with its full payment-rail participation (SIC, RTGS CHF, Instant Payments CHF, euroSIC, LSV+/BDD) plus QR-IID allocation, not just a name lookup. BACKED BY: 1,100+ SIX BankMaster entries (Swiss official source, refreshed monthly). RETURNS: institution { name, type, iid_type, headquarters_iid }, address, bic, payment_services { sic, rtgs_chf, instant_payments_chf, eurosic, lsv_bdd_chf, lsv_bdd_eur }, sic_iid, qr_iid, valid_on. Only relevant for CH and LI accounts. COST: $0.003 per call (free with no key on this transport: 25 units a week per source address, one per call and one per IBAN in batch_validate_iban, reset on Monday 00:00 UTC. Or an ifk_ key with no e-mail at all: POST https://api.ibanforge.com/v1/keys/generate with no body for 25 REST calls/month, and POST /v1/keys/claim lifts that same key to 200 a month).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
iidYesSwiss IID (1-5 digit number)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
bicNoBIC if mapped.
iidNoNormalized 5-digit BC-Nummer.
noteNo
errorNo
foundNo
qr_iidNoQR-bill enabled IID.
addressNo
messageNo
sic_iidNo
valid_onNo
cost_usdcNoWhat THIS call was billed. Zero on the free MCP tier.
institutionNo
list_price_usdcNoCatalogue price of the same call on the paid REST/x402 route.
redirected_fromNo
payment_servicesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changed
    • removedOutput schema / properties / address / properties / building_number / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / address / properties / building_number / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / address / properties / post_code / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / address / properties / post_code / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / address / properties / street / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / address / properties / street / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / address / properties / town / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / address / properties / town / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / bic / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / bic / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / qr_iid / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / qr_iid / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / sic_iid / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / sic_iid / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. Changed2 schema fields changed
    • addedOutput schema / properties / cost_usdc / description
      Added value: +"What THIS call was billed. Zero on the free MCP tier."
    • addedOutput schema / properties / list_price_usdc
      Added value: +{
      +  "description": "Catalogue price of the same call on the paid REST/x402 route.",
      +  "type": "number"
      +}
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "address": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "building_number": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "country": {
      +          "type": "string"
      +        },
      +        "post_code": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "street": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "town": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        }
      +      },
      +      "required": [
      +        "street",
      +        "building_number",
      +        "post_code",
      +        "town",
      +        "country"
      +      ],
      +      "type": "object"
      +    },
      +    "bic": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "BIC if mapped."
      +    },
      +    "cost_usdc": {
      +      "type": "number"
      +    },
      +    "error": {
      +      "type": "string"
      +    },
      +    "found": {
      +      "type": "boolean"
      +    },
      +    "iid": {
      +      "description": "Normalized 5-digit BC-Nummer.",
      +      "type": "string"
      +    },
      +    "institution": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "headquarters_iid": {
      +          "type": "string"
      +        },
      +        "iid_type": {
      +          "description": "headquarters | branch | other",
      +          "type": "string"
      +        },
      +        "name": {
      +          "type": "string"
      +        },
      +        "type": {
      +          "description": "bank | cantonal_bank | postfinance | raiffeisen | central_bank | foreign_participant",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "type",
      +        "iid_type",
      +        "headquarters_iid"
      +      ],
      +      "type": "object"
      +    },
      +    "message": {
      +      "type": "string"
      +    },
      +    "note": {
      +      "type": "string"
      +    },
      +    "payment_services": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "eurosic": {
      +          "type": "boolean"
      +        },
      +        "instant_payments_chf": {
      +          "type": "boolean"
      +        },
      +        "lsv_bdd_chf": {
      +          "type": "boolean"
      +        },
      +        "lsv_bdd_eur": {
      +          "type": "boolean"
      +        },
      +        "rtgs_chf": {
      +          "type": "boolean"
      +        },
      +        "sic": {
      +          "description": "Swiss Interbank Clearing.",
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "sic",
      +        "rtgs_chf",
      +        "instant_payments_chf",
      +        "eurosic",
      +        "lsv_bdd_chf",
      +        "lsv_bdd_eur"
      +      ],
      +      "type": "object"
      +    },
      +    "qr_iid": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "QR-bill enabled IID."
      +    },
      +    "redirected_from": {
      +      "type": "string"
      +    },
      +    "sic_iid": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "valid_on": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so safety is covered. The description adds substantial context beyond annotations: the data source (1,100+ SIX BankMaster entries, refreshed monthly), the exact return structure (institution, address, bic, payment_services, sic_iid, qr_iid, valid_on), and cost details including free-tier quotas and key generation. This provides the agent with a full behavioral picture, including side effects and pricing.

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 description is long, but it is structured into labeled sections (USE WHEN, BACKED BY, RETURNS, COST) that make it scannable. Every section delivers essential information: usage triggers, data provenance, return format, and pricing. While it could be trimmed, the density is justified given the tool's complexity and the need to convey cost and coverage.

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?

The description covers the core purpose, usage conditions, return schema details, data source, refresh frequency, and cost. With an output schema present (per signals), the description already mirrors the return fields, and the extra context (cost, free tier, key generation) is a bonus. Nothing essential is missing for an agent to invoke this tool correctly and set expectations.

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?

The schema already fully documents the only parameter 'iid' with 'Swiss IID (1-5 digit number)', giving 100% coverage. The description adds the synonym 'BC-Nummer' and reinforces the 1-5 digit range, plus clarifies applicability to CH and LI. This is a small but meaningful enrichment beyond the schema, so a 4 is appropriate.

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 opens with a precise verb+resource: 'Resolve a Swiss BC-Nummer / IID (1 to 5 digits) into the underlying institution.' It then clarifies it returns full payment-rail participation, distinguishing it from a simple name lookup and giving the agent a clear sense of what this tool uniquely offers. The purpose is unambiguous and distinct from sibling tools.

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?

The 'USE WHEN:' section explicitly lists multiple trigger scenarios (IBAN clearing code, Swiss instant transfer routing, QR-bill QR-IID, institution classification) and a when-not ('Only relevant for CH and LI accounts'). It does not name specific alternative tools like lookup_bic, but the phrase 'not just a name lookup' hints at a differentiation without explicitly pointing to a sibling. The guidance is clear and actionable, though not exhaustive about exclusions.

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.