Skip to main content
Glama

Get Lei Relationships

get_lei_relationships
Read-onlyIdempotent

Fetch Level 2 corporate hierarchy for an LEI: direct parent, ultimate parent, and direct children. Use to map ownership trees across multinational groups. Accepts a company NAME as well as an LEI.

Input Schema

NameRequiredDescriptionDefault
leiYes20-character LEI code (e.g. "HWUPKR0MPOU8FGXBT394") OR the company NAME (e.g. "Apple Inc") — a name is resolved here automatically and the match is echoed back as resolved_from_name. Do not guess an LEI: a wrong-but-well-formed code used to return an empty hierarchy, which reads as "this company has no parent or subsidiaries" rather than as an error.

Output Schema

NameRequiredDescriptionDefault
leiYesThe LEI code for which relationships are retrieved
direct_parentYesDirect parent company record, if exists
direct_childrenYesDirect child company records
ultimate_parentYesUltimate parent company record, if exists

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / lei / description
      Previous value: -"20-character LEI code"New value: +"20-character LEI code (e.g. \"HWUPKR0MPOU8FGXBT394\") OR the company NAME (e.g. \"Apple Inc\") — a name is resolved here automatically and the match is echoed back as resolved_from_name. Do not guess an LEI: a wrong-but-well-formed code used to return an empty hierarchy, which reads as \"this company has no parent or subsidiaries\" rather than as an error."
  2. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "lei": "5493001KJTIIGC8Y1R12"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "direct_children": {
      +      "description": "Direct child company records",
      +      "items": {
      +        "properties": {
      +          "bic": {
      +            "description": "Bank Identifier Codes",
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "category": {
      +            "description": "Entity category",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "entity_status": {
      +            "description": "Entity status",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "gleif_url": {
      +            "description": "Direct link to GLEIF record",
      +            "type": "string"
      +          },
      +          "headquarters_address": {
      +            "description": "Headquarters address",
      +            "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",
      +            "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",
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "registration_status": {
      +            "description": "Registration status",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "direct_parent": {
      +      "description": "Direct parent company record, if exists",
      +      "properties": {
      +        "bic": {
      +          "description": "Bank Identifier Codes",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "category": {
      +          "description": "Entity category",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "entity_status": {
      +          "description": "Entity status",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "gleif_url": {
      +          "description": "Direct link to GLEIF record",
      +          "type": "string"
      +        },
      +        "headquarters_address": {
      +          "description": "Headquarters address",
      +          "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",
      +          "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",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "registration_status": {
      +          "description": "Registration status",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "lei": {
      +      "description": "The LEI code for which relationships are retrieved",
      +      "type": "string"
      +    },
      +    "ultimate_parent": {
      +      "description": "Ultimate parent company record, if exists",
      +      "properties": {
      +        "bic": {
      +          "description": "Bank Identifier Codes",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "category": {
      +          "description": "Entity category",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "entity_status": {
      +          "description": "Entity status",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "gleif_url": {
      +          "description": "Direct link to GLEIF record",
      +          "type": "string"
      +        },
      +        "headquarters_address": {
      +          "description": "Headquarters address",
      +          "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",
      +          "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",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "registration_status": {
      +          "description": "Registration status",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "lei",
      +    "direct_parent",
      +    "ultimate_parent",
      +    "direct_children"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered. The description adds the name-acceptance behavior but omits the important caveat that a wrong-but-valid LEI yields an empty hierarchy; that warning lives only in the schema.

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?

Two dense sentences, zero filler, with purpose first and the notable name-acceptance behavior immediately after.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return shape needn't be explained. The description covers scope and input flexibility; only the empty-result semantics are missing, which is a minor gap given the schema warning.

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% with a single required param, so the baseline is 3; the description adds real value by stating a company NAME is accepted, which is the main ambiguity for this parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb 'Fetch' plus resource 'Level 2 corporate hierarchy for an LEI', and it enumerates the returned relations (direct parent, ultimate parent, direct children). It is not differentiated from the close sibling lei_hierarchy_tree, which appears to serve a similar need.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Use to map ownership trees across multinational groups' gives an intended context, and the NAME acceptance is called out. But there is no explicit when-not guidance and no routing against close siblings like lei_hierarchy_tree or gleif_group_members.

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.