Skip to main content
Glama

Swiss Clearing Lookup

lookup_ch_clearing
Read-onlyIdempotent

Resolve Swiss BC-Nummer or IID codes to identify the bank, address, BIC, QR-IID, and SIC/euroSIC/instant-payment participation for routing and CH/LI IBAN clearing checks.

Instructions

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: the SIX BankMaster (Swiss official source, re-read weekly); live count at https://api.ibanforge.com/llms.txt. 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. COST: 0.003 USDC. Only relevant for CH and LI accounts.

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": {
      "iid": "<iid>"
    },
    "name": "lookup_ch_clearing"
  }
}

Input Schema

NameRequiredDescriptionDefault
iidYesSwiss IID / BC-Nummer (1 to 5 digits, leading zeros stripped). Example: "230" for UBS Switzerland AG.

Output Schema

NameRequiredDescriptionDefault
bicNoBIC if mapped, null otherwise.
iidYes5-digit zero-padded BC-Nummer.
foundYes
qr_iidNoQR-IID allocation, null when none.
addressNo
sic_iidNo
valid_onNo
institutionNo
payment_servicesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv1.8.0
    • changedOutput schema / properties / address / properties / building_number / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / address / properties / post_code / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / address / properties / street / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / address / properties / town / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / bic / description
      Previous value: -"BIC if mapped."New value: +"BIC if mapped, null otherwise."
    • changedOutput schema / properties / bic / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / qr_iid / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
    • changedOutput schema / properties / sic_iid / type
      Previous value: -"string"New value: +[
      +  "string",
      +  "null"
      +]
  2. Changed9 schema fields changedv1.4.4
    • changedInput schema / properties / iid / description
      Previous value: -"Swiss IID / BC-Nummer (1 to 5 digits, leading zeros stripped). Example: \"762\" for UBS Switzerland."New value: +"Swiss IID / BC-Nummer (1 to 5 digits, leading zeros stripped). Example: \"230\" for UBS Switzerland AG."
    • addedOutput schema / properties / address
      Added value: +{
      +  "properties": {
      +    "building_number": {
      +      "type": "string"
      +    },
      +    "country": {
      +      "type": "string"
      +    },
      +    "post_code": {
      +      "type": "string"
      +    },
      +    "street": {
      +      "type": "string"
      +    },
      +    "town": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedOutput schema / properties / institution / properties / iid_type / enum
      Previous value: -[
      -  "headquarters",
      -  "branch",
      -  "unknown"
      -]New value: +[
      +  "headquarters",
      +  "branch",
      +  "other"
      +]
    • changedOutput schema / properties / institution / properties / type / enum
      Previous value: -[
      -  "bank",
      -  "cantonal_bank",
      -  "raiffeisen",
      -  "postfinance",
      -  "private_bank",
      -  "foreign_branch",
      -  "fintech",
      -  "other"
      -]New value: +[
      +  "bank",
      +  "cantonal_bank",
      +  "postfinance",
      +  "raiffeisen",
      +  "central_bank",
      +  "foreign_participant"
      +]
    • removedOutput schema / properties / participation
      Removed value: -{
      -  "properties": {
      -    "eurosic": {
      -      "type": "boolean"
      -    },
      -    "instant_payments": {
      -      "type": "boolean"
      -    },
      -    "qr_iid": {
      -      "description": "QR-bill enabled IID.",
      -      "type": "boolean"
      -    },
      -    "sic": {
      -      "description": "Swiss Interbank Clearing.",
      -      "type": "boolean"
      -    }
      -  },
      -  "type": "object"
      -}
    • addedOutput schema / properties / payment_services
      Added value: +{
      +  "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"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / qr_iid
      Added value: +{
      +  "description": "QR-IID allocation, null when none.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / sic_iid
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / valid_on
      Added value: +{
      +  "type": "string"
      +}
  3. Addedv1.2.2
  4. Removedv1.2.1
  5. Addedv1.2.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive and closed-world, and the description layers on information annotations cannot carry: data provenance and refresh cadence (SIX BankMaster, re-read weekly), coverage completeness claims, and a per-call cost of 0.003 USDC. Cost and data-source disclosure are exactly the kind of behavioral facts an agent needs before spending a call.

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?

Well front-loaded: purpose first, then USE WHEN, then coverage, source, returns, and cost, each in a labeled clause. The RETURNS enumeration largely duplicates the output schema and the all-caps "EVERY IID OF THE SIX BANKMASTER" plus the live-count URL lean promotional, but overall the density is justified for a paid lookup.

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 annotations, a full output schema, and 100% parameter description coverage already present, the description fills every remaining gap an agent would have: when to invoke, what the data source and freshness are, and what the call costs. Nothing needed to call it correctly 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 parameter already documents the 1-to-5-digit format, leading-zero stripping, and a UBS example. The description only restates the digit range and adds that a clearing code can be lifted from a CH/LI IBAN, which is modest added meaning — baseline 3 is appropriate when the schema does the work.

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?

States a specific verb and resource ("Resolve a Swiss BC-Nummer / IID ... into the underlying institution") and scopes it to CH/LI clearing codes, which separates it cleanly from siblings like lookup_bic or check_swiss_qr_bill. An agent can decide between this and a BIC lookup without opening either schema.

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" block enumerates concrete triggers: user names a BC-Nummer/IID, pastes a CH or LI IBAN clearing code, asks about SIC/euroSIC routing, or QR-IID resolution. It gives clear context for when to call, but never states exclusions or names an alternative tool for the adjacent cases (e.g. BIC lookups), so it stops short of full routing guidance.

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