lei_hierarchy_tree
Pack: gleif · Endpoint: https://gateway.pipeworx.io/gleif/mcp
Walk the FULL corporate ownership hierarchy for an entity in one call: the ancestor chain from the entity up to its ultimate parent, plus a multi-level tree of subsidiaries below it (breadth-first over GLEIF Level 2 direct-child records, depth-limited, depth stated in the response). Accepts a 20-character LEI or a company NAME. Answers “everything this group ultimately controls” / “full subsidiary tree of Deutsche Bank” / “who is at the top of this entity’s ownership chain” — use get_lei_relationships instead when one hop (direct parent + direct children) is enough.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
lei | string | yes | 20-character LEI code OR a company name (resolved automatically, match echoed back). |
depth | number | no | How many generations of subsidiaries to descend: 1-4, default 2. The ancestor chain upward is always walked to the top regardless. |
Example call
Arguments
{
"lei": "INR2EJN1ERAN0W5ZP974",
"depth": 2
}
curl
curl -X POST https://gateway.pipeworx.io/gleif/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"lei_hierarchy_tree","arguments":{"lei":"INR2EJN1ERAN0W5ZP974","depth":2}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('lei_hierarchy_tree', {
"lei": "INR2EJN1ERAN0W5ZP974",
"depth": 2
});
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"gleif": {
"url": "https://gateway.pipeworx.io/gleif/mcp"
}
}
}
See Getting Started for client-specific install steps.