Legal entities (LEI)
Look up legal entities in the GLEIF Global LEI Index and return LEI, legal name, entity and registration status, jurisdiction, legal form, renewal date and legal and headquarters addresses. Provide exactly one of lei (exact lookup of one entity) or name (search returning up to 10 matches).
| Endpoint | POST /v1/legal-entity-lookups |
| Scope | legal_entity:lookup |
| MCP tool | legal_entity |
| Usage units | entities |
Usage units appear in execution.usage.units for reconciliation and billing.
Request fields
Section titled “Request fields”| Field | Type | Required | Description |
|---|---|---|---|
invocation_id |
string | yes | The market’s invocation id: one execution per id and operation, so a retry with the same id is rejected instead of charged twice. 1-128 characters of A-Z a-z 0-9 . _ : -. |
provider |
string | yes | Provider that serves the request; choose by the coverage described for this tool. One of: gleif |
lei |
string | no | 20-character ISO 17442 Legal Entity Identifier; provide exactly one of lei or name. |
max_results |
integer | no | Number of entities for a name search, 1-10; default 5; ignored for an lei lookup. |
name |
string | no | Legal name to search, 2-200 characters; provide exactly one of lei or name. |
Providers
Section titled “Providers”| Provider | Region | Source | Limits |
|---|---|---|---|
gleif |
DE | GLEIF Global LEI Index | max_results: 10, timeout_seconds: 30 |
Example
Section titled “Example”curl -sS https://services.zgi.im/v1/legal-entity-lookups \ -H "Authorization: Bearer $ZGI_SERVICES_TOKEN" \ -H 'Content-Type: application/json' \ -d '{"invocation_id": "docs-1791778521-legal_entity", "provider": "gleif", "name": "Apple Inc.", "max_results": 1}'POST /v1/legal-entity-lookups HTTP/1.1Host: services.zgi.imAuthorization: Bearer <token>Content-Type: application/json
{ "invocation_id": "docs-1791778521-legal_entity", "provider": "gleif", "name": "Apple Inc.", "max_results": 1}Over MCP, the tool arguments are exactly the HTTP request body.
{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "legal_entity", "arguments": { "invocation_id": "docs-1791778521-legal_entity", "provider": "gleif", "name": "Apple Inc.", "max_results": 1 } }}curl -sS https://services.zgi.im/v1/mcp \ -H "Authorization: Bearer $ZGI_SERVICES_TOKEN" \ -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \ -H 'MCP-Protocol-Version: 2025-11-25' \ -d @request.jsonResponse
Section titled “Response”A real response, with lists cut to two items and long text shortened.
{ "code": 0, "message": "success", "data": { "execution": { "id": "exe_01a12e52aeec72ff8a6ad9547fd490dd", "invocation_id": "docs-1791778521-legal_entity", "capability": "legal_entity", "operation": "legal_entity.lookup", "provider": "gleif", "outcome": "succeeded", "error_category": null, "error_code": null, "usage": { "provider_requests": 1, "units": [ { "name": "entities", "value": 1, "source": "measured" } ] }, "upstream_ref": null, "request_id": "req_4fe3797ca835d201ac7d92bd", "started_at": "2026-10-12T04:15:33.10019336Z", "finished_at": "2026-10-12T04:15:33.626863142Z", "duration_ms": 526 }, "result": { "total_results": 26, "entities": [ { "lei": "HWUPKR0MPOU8FGXBT394", "legal_name": "Apple Inc.", "entity_status": "ACTIVE", "jurisdiction": "US-CA", "legal_form": "H1UM", "registration_status": "ISSUED", "last_updated": "2026-03-03T16:34:33Z", "next_renewal": "2027-03-08T17:27:20Z", "legal_address": { "lines": [ "C/O C T Corporation System", "330 N. Brand Blvd" ], "city": "Glendale", "region": "US-CA", "country": "US", "postal_code": "91203" }, "headquarters_address": { "lines": [ "One Apple Park Way" ], "city": "Cupertino", "region": "US-CA", "country": "US", "postal_code": "95014" } } ], "source": { "name": "GLEIF Global LEI Index", "license": "CC0-1.0", "url": "https://www.gleif.org" } } }}