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.

Input Schema

TableJSON 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

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

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 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"
      +]
  2. 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"
      +}
  3. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Discloses matching strategy (whole-token, retry with suffix drop, word joining, fuzzy autocomplete), status field dual-role routing, country code conversion with error handling, and response always includes match_mode and searched_as. Adds value beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Concise yet packed with essential information. Purpose stated first, then usage and matching details. No superfluous text; every sentence adds value.

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 matching algorithm, parameter behaviors, response features, and usage context. Output schema exists (not shown) but described sufficiently. Complete for a search tool of moderate complexity.

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%, baseline 3. Description adds meaning: explains status field routing between entity and LEI status, country accepts alpha-3 and names with conversion, and query matching behavior. Exceeds schema detail.

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?

Clearly states tool searches GLEIF LEI registry by legal entity name and returns specific fields (LEI, jurisdiction, status, cross-references). Distinguishes from siblings like get_lei (which likely gets by LEI) and resolve_entity.

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?

Explains when to use the result (resolve canonical identity across databases) and warns about name matching limitations (abbreviations won't work). Implicitly contrasts with get_lei for direct LEI lookups, but lacks explicit when-not-to-use guidance.

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.