Verify a LEI against the live GLEIF register
verify_lei_onlineVerify a Legal Entity Identifier against the live GLEIF register to confirm it is registered and retrieve the entity's legal name, status, country, and registration details.
Instructions
Verify a LEI against the live GLEIF register (reaches the network).
Unlike ``validate_identifier``, which checks an LEI's format and check
digits entirely offline, this tool performs a live HTTP GET against the
public GLEIF REST API (``api.gleif.org``) to confirm the LEI is actually
registered and to return the registered entity's details. It therefore
requires network access and is marked open-world.
Requires the optional ``online`` extra (``pip install acmt001-mcp[online]``)
for the ``httpx`` HTTP client; without it a graceful ``{"error": ...}`` is
returned rather than raising.
Returns a dict with the ``lei``, registered ``legal_name``, entity
``status``, ``country``, and registration ``registration_status``,
``initial_registration_date``, ``last_update_date`` and
``next_renewal_date``. On failure returns ``{"error": ...}``: an
``LEI not found`` error for an unregistered LEI (HTTP 404), or a
``GLEIF API unavailable`` error for any other non-200 response or a
transport/connection error.
Args:
lei_code: A 20-character ISO 17442 Legal Entity Identifier.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lei_code | Yes | A 20-character ISO 17442 Legal Entity Identifier to look up in the live GLEIF register, e.g. '5493001KJTIIGC8Y1R12'. Use validate_identifier(kind='lei', ...) first for a purely offline check-digit/format check. |