lei_hierarchy_tree

Pack: gleif · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/lei_hierarchy_tree for the schema, then POST the same URL with its arguments for the data.

A legal entity’s full parent/subsidiary hierarchy tree, by LEI, from the Global LEI Foundation.

Tool description as the model sees it

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

NameTypeRequiredDescription
leistringyes20-character LEI code OR a company name (resolved automatically, match echoed back).
depthnumbernoHow 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 — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the gleif pack
{
  "mcpServers": {
    "gleif": {
      "url": "https://gateway.pipeworx.io/gleif/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 30, 2026