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

TableJSON 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

TableJSON 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. Dates show when Glama detected each change.

  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

A4.8/5.0
Behavior5/5

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

Annotations already declare read-only, open-world, idempotent, and non-destructive. The description adds critical behavioral context: the 'lei' parameter accepts company names, automatic resolution, and the warning about wrong LEI codes returning empty hierarchy. No contradictions.

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?

Three sentences, all essential: purpose, use case, and parameter flexibility. No filler, front-loaded with the core action. Perfectly concise.

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

Completeness5/5

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

Given the presence of an output schema, the description adequately covers purpose, usage, and parameter behavior. It explains the edge case of wrong LEI codes and the name resolution feature, making it complete for a single-parameter tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Despite 100% schema coverage, the description adds significant value: it explains that the parameter can be a company name (not just an LEI), describes automatic resolution, and warns about the misleading empty result from a wrong-but-well-formed LEI. This goes far beyond the schema's simple type/description.

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

Purpose5/5

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

The description specifies exact verb 'Fetch', resource 'Level 2 corporate hierarchy', and lists the three relationship types (direct parent, ultimate parent, direct children). This clearly distinguishes it from sibling tools like 'lei_hierarchy_tree' or 'search_lei'.

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

Usage Guidelines4/5

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

Explicitly states 'Use to map ownership trees across multinational groups.' While it doesn't list when not to use or alternatives, the context is clear and the usage scenario is well-defined, earning a 4.

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.