Skip to main content
Glama

Search Lei

search_lei
Read-onlyIdempotent

Search the GLEIF LEI registry by legal entity name. Returns matched entities with their 20-character LEI, jurisdiction, status, and BIC/ISIN cross-references. Use the LEI to resolve canonical identity across SEC, OpenSanctions, and counterparty databases. Name matching is whole-token AND against the REGISTERED legal name, so abbreviations that do not literally appear ("Microsoft Corp", "Toyota Motor Corp") match nothing on their own; this tool automatically retries with legal-form suffixes dropped, with the words joined ("Exxon Mobil" -> "ExxonMobil"), and finally against GLEIF fuzzy autocomplete. The response always reports match_mode and searched_as so you can see which query actually produced the rows. found is true only when a returned row actually has this name (each row carries name_match; legal forms such as Limited/Ltd, Inc/Incorporated are treated as equal); rows that merely share a word are returned as name_match:false candidates with found:false. A not-found does NOT mean the company is unregistered: GLEIF only holds entities that obtained an LEI, so check company_register_search (company registers across countries) or sos_search (US state registers).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "Apple Inc"
    },
    "name": "search_lei"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesLegal entity name (full or partial), e.g. "Apple Inc." or "Siemens Aktiengesellschaft"
statusNoEntity status (ACTIVE | INACTIVE | NULL) or LEI registration status (ISSUED | LAPSED | ANNULLED | PENDING_TRANSFER | PENDING_ARCHIVAL | DUPLICATE | RETIRED | MERGED). GLEIF keeps these in two different fields; the tool routes the value to the right one. "LAPSED" means the LEI registration lapsed, not that the company is gone.
countryNoRestrict to the legal address country. ISO 3166-1 alpha-2, e.g. "US", "DE", "JP". Alpha-3 codes and country names are accepted for the common jurisdictions and converted; anything unrecognized is rejected with an error rather than silently returning zero rows.
page_sizeNo1-200 (default 25)

Output Schema

NameRequiredDescriptionDefault
totalYesTotal number of matching LEI records
resultsYesMatched LEI records with normalized fields

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "query": "Apple Inc"
      -  },
      -  {
      -    "country": "DE",
      -    "page_size": 50,
      -    "query": "Deutsche Bank",
      -    "status": "ACTIVE"
      -  }
      -]New value: +[
      +  {
      +    "query": "Apple Inc"
      +  },
      +  {
      +    "country": "DE",
      +    "page_size": 50,
      +    "query": "Deutsche Bank",
      +    "status": "ACTIVE"
      +  },
      +  {
      +    "query": "Gymshark Limited"
      +  }
      +]
  2. Changed1 schema field changed
    • changedOutput schema / properties / total / type
      Previous value: -"number"New value: +[
      +  "number",
      +  "null"
      +]
  3. Changed2 schema fields changed
    • addedOutput schema / properties / results / items / properties / registered_as
      Added value: +{
      +  "description": "The company's own id in its national business register (e.g. Companies House number 00041424, Norwegian orgnr 923609016), whitespace stripped so it joins. Null when GLEIF publishes no id, and withheld for sole proprietors. Pair it with registration_authority: an id is only unique within its register.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / results / items / properties / registration_authority
      Added value: +{
      +  "description": "GLEIF Registration Authority code for the register that registered_as belongs to: RA000585 = UK Companies House, RA000189 = INSEE Sirene, RA000413 = Japan NTA, RA000472 = Brønnøysund. RA999999 is GLEIF's \"other / not applicable\" sentinel and comes with no registered_as.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  4. Changed4 schema fields changed
    • changedInput schema / properties / country / description
      Previous value: -"Restrict to a jurisdiction (ISO 3166-1 alpha-2, e.g., \"US\", \"DE\")"New value: +"Restrict to the legal address country. ISO 3166-1 alpha-2, e.g. \"US\", \"DE\", \"JP\". Alpha-3 codes and country names are accepted for the common jurisdictions and converted; anything unrecognized is rejected with an error rather than silently returning zero rows."
    • changedInput schema / properties / query / description
      Previous value: -"Legal entity name (full or partial)"New value: +"Legal entity name (full or partial), e.g. \"Apple Inc.\" or \"Siemens Aktiengesellschaft\""
    • changedInput schema / properties / status / description
      Previous value: -"ACTIVE | LAPSED | INACTIVE | PENDING | NULL"New value: +"Entity status (ACTIVE | INACTIVE | NULL) or LEI registration status (ISSUED | LAPSED | ANNULLED | PENDING_TRANSFER | PENDING_ARCHIVAL | DUPLICATE | RETIRED | MERGED). GLEIF keeps these in two different fields; the tool routes the value to the right one. \"LAPSED\" means the LEI registration lapsed, not that the company is gone."
    • changedInput schema / properties / status / enum
      Previous value: -[
      -  "ACTIVE",
      -  "LAPSED",
      -  "INACTIVE",
      -  "PENDING",
      -  "NULL"
      -]New value: +[
      +  "ACTIVE",
      +  "INACTIVE",
      +  "NULL",
      +  "ISSUED",
      +  "LAPSED",
      +  "ANNULLED",
      +  "PENDING_TRANSFER",
      +  "PENDING_ARCHIVAL",
      +  "DUPLICATE",
      +  "RETIRED",
      +  "MERGED"
      +]
  5. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "query": "Apple Inc"
      +  },
      +  {
      +    "country": "DE",
      +    "page_size": 50,
      +    "query": "Deutsche Bank",
      +    "status": "ACTIVE"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "results": {
      +      "description": "Matched LEI records with normalized fields",
      +      "items": {
      +        "properties": {
      +          "bic": {
      +            "description": "Bank Identifier Codes",
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "category": {
      +            "description": "Entity category",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "entity_status": {
      +            "description": "Entity status (ACTIVE, LAPSED, etc.)",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "gleif_url": {
      +            "description": "Direct link to GLEIF record",
      +            "type": "string"
      +          },
      +          "headquarters_address": {
      +            "description": "Headquarters address of entity",
      +            "properties": {
      +              "city": {
      +                "description": "City name",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "country": {
      +                "description": "ISO country code",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "lines": {
      +                "description": "Address lines",
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "postal_code": {
      +                "description": "Postal code",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "region": {
      +                "description": "Region or state",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "type": [
      +              "object",
      +              "null"
      +            ]
      +          },
      +          "initial_registration": {
      +            "description": "ISO date of initial registration",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "isins": {
      +            "description": "ISIN codes",
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "jurisdiction": {
      +            "description": "ISO jurisdiction code",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "last_update": {
      +            "description": "ISO date of last update",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "legal_address": {
      +            "description": "Legal address of entity",
      +            "properties": {
      +              "city": {
      +                "description": "City name",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "country": {
      +                "description": "ISO country code",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "lines": {
      +                "description": "Address lines",
      +                "items": {
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              },
      +              "postal_code": {
      +                "description": "Postal code",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "region": {
      +                "description": "Region or state",
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "type": [
      +              "object",
      +              "null"
      +            ]
      +          },
      +          "legal_form": {
      +            "description": "Legal form ID or description",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "legal_name": {
      +            "description": "Official legal entity name",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "lei": {
      +            "description": "20-character LEI code",
      +            "type": "string"
      +          },
      +          "managing_lou": {
      +            "description": "Managing Local Operating Unit",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "next_renewal": {
      +            "description": "ISO date of next renewal",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "other_names": {
      +            "description": "Alternative names for the entity",
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "registration_status": {
      +            "description": "Registration status",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "total": {
      +      "description": "Total number of matching LEI records",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "total",
      +    "results"
      +  ],
      +  "type": "object"
      +}
  6. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare a safe, idempotent, open-world read, so the bar is lower, yet the description goes well beyond: it discloses the automatic fallback chain (suffix dropping, word joining, fuzzy autocomplete), the presence of match_mode/searched_as in the response, and the precise semantics of found/name_match including candidate rows returned with found:false. That is exactly the behavior an agent needs to interpret a partial or empty result.

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 return shape, then matching behavior, then the not-found caveat and alternatives. It is long and the matching-retry sentence is dense, but nearly every clause carries operational information rather than repetition.

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?

For a search tool with four params, full schema coverage, and an output schema, the description covers the remaining gaps: matching mechanics, result interpretation fields, and the false-negative risk. Nothing an agent needs in order to call it or to read its results correctly 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 coverage is 100%, so baseline is 3, but the description adds real meaning about the query parameter that the schema does not: matching is whole-token AND against the registered legal name, abbreviations like 'Microsoft Corp' match nothing on their own, and legal-form variants are treated as equal. Status/country semantics are already handled by the schema, so this is a lift on one parameter rather than all four.

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 ('Search the GLEIF LEI registry by legal entity name') and immediately scopes the return payload (LEI, jurisdiction, status, BIC/ISIN cross-references). This clearly separates it from lookup-style siblings like get_lei and bic_to_lei.

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 when-to-use context ('Use the LEI to resolve canonical identity across SEC, OpenSanctions, and counterparty databases') and explicit fallbacks when this tool fails: company_register_search and sos_search, with the reason (GLEIF only holds LEI-registered entities). The negative case is directly addressed.

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.