Skip to main content
Glama

KYB due diligence and company checks

Counterparty Check API: KYB, sanctions screening, insolvency

check_counterparty
Read-onlyIdempotent

Can I do business with this company? One call checks a supplier, customer or partner against official sources and returns a checklist: pass, fail, review or unverified per check, each with its source link and time. To screen a vendor list, pass up to 10 companies in companies: one checklist per company, same price each.

For names or crypto wallets against sanctions lists only, use screen_sanctions ($0.01); for a company profile with its financials, use get_company_profile.

Inputs: query for one company, or companies for up to 10 (a name or number each, or an object with these same fields). country narrows a name search to one register. vatNumber, iban and walletAddresses are the details the counterparty gave you: each adds a check (VAT registered to this company, IBAN valid and in its country, wallets not sanctioned); leave out what you do not have.

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.05 per counterparty-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_counterparty"
  }
}

Input Schema

NameRequiredDescriptionDefault
ibanNoThe bank account the counterparty wants to be paid on, e.g. "DK5000400440116243"
queryNoThe counterparty to check: a name (e.g. "Novo Nordisk") or an identifier: LEI
countryNoISO 3166 alpha-2 country code to disambiguate, e.g. "DK", "GB", "NO", "FR", "FI", "EE", "IE", "CZ", "LV", "LT", "SK", "SE", "BE", "NL", "US"
companiesNoCheck a list of companies in one run instead of `query`: up to 10 companies, each a name or number ("Tesco PLC") or an object with the fields above
vatNumberNoThe VAT number the counterparty gave you, with its country prefix, e.g. "DK24256790"
walletAddressesNoWallet addresses the counterparty wants to be paid on, e.g. ["0x7FF9cFad3877F21d41Da833E2F775dB0569eE3D9"]

Output Schema

NameRequiredDescriptionDefault
rowsYes
toolNo
countYes
messageNo
warningsNo
balance_usdNo
charged_usdNo
duration_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / country / examples
      Added value: +[
      +  "DK"
      +]
    • addedInput schema / properties / query / examples
      Added value: +[
      +  "24256790"
      +]
    • addedInput schema / properties / vatNumber / examples
      Added value: +[
      +  "DK24256790"
      +]
  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": {
      +          "candidates": {
      +            "description": "Only when status is ambiguous: companies that fit the name.",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "charged": {
      +            "description": "False for ambiguous and failed rows and for a checked row with `failed_sources`.",
      +            "type": [
      +              "boolean",
      +              "null"
      +            ]
      +          },
      +          "checks": {
      +            "description": "The checklist: check, status (pass, fail, review, unverified), detail, source, source_url, checked_at.",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "company": {
      +            "additionalProperties": true,
      +            "description": "Identity from the register and GLEIF, with a source URL per value.",
      +            "type": [
      +              "null",
      +              "object"
      +            ]
      +          },
      +          "failed_sources": {
      +            "description": "Sources we asked that timed out, failed or could not be read, so their data is missing. Not empty = not charged. A source named with \"(... on our side)\" or \"(our copy is out of date)\" is our fault: asking again does not help until we fix it. Includes \"VIES\" when VIES could not verify the VAT number (the `vatNumber` you gave, or else the one the register lists). Filled on checked rows and on a `failed` row of the HTTP API that was not checked because the free partial answers for the day were used up; empty on other `failed` rows, whose `message` says why.",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "iban": {
      +            "additionalProperties": true,
      +            "description": "IBAN structure and country result.",
      +            "type": [
      +              "null",
      +              "object"
      +            ]
      +          },
      +          "insolvency": {
      +            "additionalProperties": true,
      +            "description": "The insolvency section of the company report the check rests on: UK Gazette notices, Polish KRS proceedings, French, German or Dutch notices, or for a US company the Form 8-K reports of its SEC registrant read for Item 1.03 Bankruptcy or Receivership (`notices`, `covers_from`, `covers_to`, `registrant`, `reporting`, `later_event`). null when no insolvency source was read.",
      +            "type": [
      +              "null",
      +              "object"
      +            ]
      +          },
      +          "latest_financials": {
      +            "additionalProperties": true,
      +            "description": "Newest fiscal year's key figures with basis and source.",
      +            "type": [
      +              "null",
      +              "object"
      +            ]
      +          },
      +          "message": {
      +            "description": "Why a row is ambiguous, failed or not charged, and what to do next. Absent on a charged row.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "notice": {
      +            "description": "Screening aid, not a compliance, credit or legal determination.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "people": {
      +            "additionalProperties": true,
      +            "description": "Officers, shareholders and beneficial owners the national register names (UK, PL, NO, FR, CZ, EE, LV, SK).",
      +            "type": [
      +              "null",
      +              "object"
      +            ]
      +          },
      +          "query": {
      +            "description": "The input as given.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "retrieved_at": {
      +            "description": "When the check ran (UTC).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "sanctions": {
      +            "additionalProperties": true,
      +            "description": "entity (the company's screening row; `identifier_matches`: listings that carry the company's own registration number or LEI), people_with_matches (also a match that the sanctions_people check sets aside: a French or Norwegian company officer, with its SIREN or organisation number, that only partly matches listings of other countries; the check's detail names it), people_screened.",
      +            "type": [
      +              "null",
      +              "object"
      +            ]
      +          },
      +          "sanctions_hits": {
      +            "description": "Only when no single company was resolved (ambiguous or failed rows): sanctions listings matching the name asked for or a candidate's name (screened_name, listed_name, list_name, entry_id, score 0-100, source_url), screened free. Empty when none matched. null when the name was not screened: on the API these free screens count against the key's daily free partial answers, and past them `message` says so (use sanctions-screening); also null on a row not checked past that allowance.",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "source_url": {
      +            "description": "The main identity source.",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "status": {
      +            "description": "checked; ambiguous (candidates returned, nothing charged); failed (not checked, nothing charged; on the HTTP API also a company with a failed source once the caller's free partial answers for the day are used up).",
      +            "type": [
      +              "null",
      +              "string"
      +            ]
      +          },
      +          "summary": {
      +            "additionalProperties": true,
      +            "description": "Counts per status, needs_attention (fail and review checks) and unverified_checks.",
      +            "type": [
      +              "null",
      +              "object"
      +            ]
      +          },
      +          "us_listing": {
      +            "additionalProperties": true,
      +            "description": "SEC registrant data when the company files with the SEC.",
      +            "type": [
      +              "null",
      +              "object"
      +            ]
      +          },
      +          "vat": {
      +            "additionalProperties": true,
      +            "description": "VIES result for the VAT number.",
      +            "type": [
      +              "null",
      +              "object"
      +            ]
      +          },
      +          "wallets": {
      +            "description": "Wallet address screening rows.",
      +            "type": [
      +              "array",
      +              "null"
      +            ]
      +          },
      +          "warnings": {
      +            "description": "Sources that failed or were partly read.",
      +            "type": [
      +              "array",
      +              "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.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, and the description is consistent with them ('Read-only, no side effects'). It goes well beyond them by disclosing per-row billing ($0.05), the 55 s timeout and free-on-failure policy, partial-source degradation reported via `warnings`, and the 60/min (10 on a free key) rate limit with a ~10 s retry. These are substantial operational disclosures; the only reason this is not higher is that the safety/idempotency profile is already fully carried by annotations.

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-loaded with the question and the return shape, then alternatives, then inputs, then cost and limits. Dense but every block is functional; the price is repeated ('at the price below' plus 'Price: $0.05'), which is minor waste given the otherwise tight structure.

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 an output schema present the description needn't enumerate return fields, and it still summarizes the checklist shape. Combined with pricing, timeout, rate-limit and partial-failure behavior, an agent has everything needed to call this 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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning the schema does not: each of vatNumber, iban and walletAddresses adds a specific check (VAT registered to this company, IBAN valid and in its country, wallets not sanctioned), and `country` narrows a name search to one register. The batch semantics of `companies` (one checklist per company, same price each) are also clarified.

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 the user-level question it answers, then states the specific operation: one call checking a supplier, customer or partner against official sources, returning a per-check pass/fail/review/unverified checklist. It explicitly distinguishes itself from screen_sanctions and get_company_profile, so an agent can route without opening 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?

Gives explicit alternatives with conditions: screen_sanctions for names or crypto wallets against sanctions lists only, get_company_profile for a company profile with financials. Also states when to use the batch `companies` path versus `query`, and tells the caller to leave out details they don't have.

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.