Skip to main content
Glama

KYB due diligence and company checks

EU VAT Number Validation (VIES) & IBAN Validator API

check_vat_iban
Read-onlyIdempotent

Answers "is this EU VAT number registered, to whom, and is this IBAN real?" One row per VAT number, checked live against the European Commission's VIES service (valid, registered name and address, a name match against the company you expect), and one row per IBAN, checked against ISO 13616 (check digits, length and layout per country, bank code, country match).

It checks the numbers only: for who the company is, and whether it is sanctioned or insolvent, use check_counterparty.

Inputs: pass vatNumbers (with their country prefix), ibans, or both; each number is one row. expectedName is compared with the name VIES has on file for each VAT number (name_match); expectedCountry with the country of every number, VAT and IBAN (country_match). requesterVatNumber is your own VAT number: VIES then returns a consultation number, proof that you checked.

Read-only, no side effects. Charged per row returned, at the price below; a call that fails or runs out of time (55 s) is free. If one source does not answer, the rest still comes back and warnings names the gap. Limit: 60 calls a minute per key (10 on a new free key); past it the call is refused (rate_limited, free): retry after about 10 seconds.

Price: $0.002 per check.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_vat_iban"
  }
}

Input Schema

NameRequiredDescriptionDefault
ibansNoIBANs to validate (check digits, length and layout per country, bank code), in electronic or print format, e.g. ["NL91ABNA0417164300", "DE89 3704 0044 0532 0130 00"]
vatNumbersNoEU VAT numbers to check live against VIES, each with its country prefix, e.g. ["IE6388047V", "NL004495445B01"]
expectedNameNoThe company name you expect behind the VAT numbers, e.g. "Google Ireland Ltd"
expectedCountryNoISO 3166 alpha-2 code of the country you expect, e.g. "NL"
requesterVatNumberNoYour own EU VAT number, e.g. "NL123456789B01"

Output Schema

NameRequiredDescriptionDefault
rowsYes
toolNo
countYes
messageNo
warningsNo
balance_usdNo
charged_usdNo
duration_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / ibans / examples
      Added value: +[
      +  [
      +    "NL91ABNA0417164300"
      +  ]
      +]
    • addedInput schema / properties / vatNumbers / examples
      Added value: +[
      +  [
      +    "IE6388047V"
      +  ]
      +]
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "balance_usd": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "charged_usd": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "count": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "duration_seconds": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "message": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "rows": {
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "bank_code": {
      +            "description": "Bank identifier taken from a valid IBAN at the SWIFT IBAN Registry position, e.g. ABNA (NL) or 37040044 (DE).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "check_type": {
      +            "description": "vat or iban.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "checked_at": {
      +            "description": "ISO 8601 UTC time of the check.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "checks": {
      +            "description": "Every check made: {check (vat_format, vies_registration, name_match, iban_structure, country_match), status (pass/fail/unverified), detail, source}.",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "consultation_number": {
      +            "description": "VIES consultation number, only when requesterVatNumber was given; keep it as proof of the check.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "country_code": {
      +            "description": "Country of the number: VAT prefix (EL = Greece, XI = Northern Ireland) or IBAN country (ISO 3166 alpha-2); null if unreadable.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "country_match": {
      +            "description": "The number's country equals expectedCountry (GB IBANs cover JE, GG, IM); null when not asked or not checked.",
      +            "type": [
      +              "boolean",
      +              "null"
      +            ]
      +          },
      +          "expected_country": {
      +            "description": "expectedCountry from the input.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "expected_name": {
      +            "description": "expectedName from the input (VAT rows).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "name_match": {
      +            "description": "expectedName equals the VIES name after removing case, accents, punctuation and legal forms; null when not asked or no name was shared.",
      +            "type": [
      +              "boolean",
      +              "null"
      +            ]
      +          },
      +          "number": {
      +            "description": "Normalised number: upper case without spaces, e.g. IE6388047V or NL91ABNA0417164300 (Greek VAT numbers with EL).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "query": {
      +            "description": "The VAT number or IBAN as given.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "reason": {
      +            "description": "Why the row failed or is unverified, in words an agent can act on. On a pass row: null, or which name or country check failed (\"Valid, but country_match failed (...)\").",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "registered_address": {
      +            "description": "Registered address as VIES returns it (lines joined with commas); null when not shared.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "registered_name": {
      +            "description": "Name registered with the VAT number, as VIES returns it; null when the member state does not share it (e.g. DE) or the number is not valid.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "request_date": {
      +            "description": "VIES request date-time (ISO 8601, UTC) of the answer; null for IBANs and unanswered requests.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "schema_version": {
      +            "description": "Output schema version.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "sepa_country": {
      +            "description": "Whether the IBAN's country is in the SEPA scheme (SWIFT IBAN Registry).",
      +            "type": [
      +              "boolean",
      +              "null"
      +            ]
      +          },
      +          "source": {
      +            "description": "Where the answer comes from: VIES (European Commission, answered by the national tax administration) or the ISO 13616 / SWIFT IBAN Registry rules.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "source_url": {
      +            "description": "VIES page or the SWIFT IBAN Registry page.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "status": {
      +            "description": "pass = valid; fail = invalid (malformed, or VIES says not valid); unverified = VIES or the member state gave no answer (never means invalid; check again later).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "valid": {
      +            "description": "true, false, or null when unverified.",
      +            "type": [
      +              "boolean",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "type": "array"
      +    },
      +    "tool": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "warnings": {
      +      "items": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "type": [
      +        "array",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "rows",
      +    "count"
      +  ],
      +  "type": "object"
      +}
  3. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the supplied readOnly/idempotent/openWorld annotations: publishes per-row pricing ($0.002 per check), a 55 s timeout with free failures, rate limits (60/min, 10 on a new free key) with retry guidance, and partial-failure behavior where the rest of the result still returns with `warnings`. Minor details such as VIES returning a consultation number as proof of consultation further inform behavior.

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?

Front-loads the core question, then inputs, then behavior and pricing in clearly separated paragraphs, so scanning is easy. It is on the longer side and the pricing sentence repeats the per-row unit, but nearly every sentence carries operational information.

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?

Covers the full picture for a paid, multi-source validator: what is checked, what happens on partial failure, cost model, latency ceiling, rate limits, and where to go for a different question. An output schema exists, so not spelling out the response shape is appropriate.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning: `expectedName` maps to a name_match comparison against VIES records, `expectedCountry` yields country_match for both VAT and IBAN rows, `requesterVatNumber` produces a consultation number, and each number produces one row. It does not restate patterns or format rules the schema already carries.

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?

Opens with a concrete question it answers ("is this EU VAT number registered, to whom, and is this IBAN real?") and names the exact sources: live VIES lookup for VAT numbers and ISO 13616 checks for IBANs. It explicitly separates itself from check_counterparty, so an agent can distinguish it from siblings without reading a 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?

States the decision boundary explicitly: "for who the company is, and whether it is sanctioned or insolvent, use check_counterparty," while this tool "checks the numbers only." It also tells the caller they may pass vatNumbers, ibans, or both, which resolves the main invocation ambiguity.

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.