Skip to main content
Glama

Add an entity without an LEI to my entity map

add_entity_map_placeholder
Idempotent

Adds a placeholder to the organisation's entity map for an entity that has no LEI yet, under a direct parent, by its name and/or business registration number. First check with search_lei_by_company_name that the entity really has no LEI: one with an LEI goes in with place_lei_in_entity_map. With a registration number and a country whose business register can be read (lookup_business_register), the entity is looked up there: its registered name is used (fromRegister), and one the LEI register already knows by that number is refused with its LEI. A placeholder can't be a parent, so entities below it can't be added until it has an LEI. Calling again for the same entity under the same parent adds nothing. Returns placeholderId.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "parentLei": "<parentLei>"
    },
    "name": "add_entity_map_placeholder"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoThe entity's legal name. Give the name, the business registration number, or both.
parentLeiYesThe 20-character LEI of the direct parent. It must already be in the map (get_my_entity_map): the ultimate parent, an entity below it, or an LEI placed earlier. A placeholder can't be a parent.
countryCodeNoThe country the entity is registered in, ISO 3166-1 alpha-2, e.g. GB.
businessRegNoNoThe entity's number in its business register, if known.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true, destructiveHint=false and openWorldHint=true, and the description reinforces this with concrete behavior: a repeated call for the same entity under the same parent adds nothing, an entity already known to the LEI register by its number is refused and its LEI returned, and the registered name is taken from the business register. The one gap is that the shape of the returned placeholderId and any error format are only sketched, not described.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content is front-loaded with the core action first, then preconditions, then edge cases, with no filler sentences. The middle sentences are long and heavily claused, which slows parsing slightly, but every clause carries operational information.

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?

For a mutating, open-world tool with no output schema, the description covers preconditions (parent must exist, entity must lack an LEI), side effects (refusal when the LEI register knows the number, no-op on duplicate calls), downstream consequence (a placeholder cannot serve as a parent), and the return value (placeholderId). Nothing needed to call it correctly is missing.

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%, so the baseline is 3, but the description adds real meaning: name and businessRegNo are alternatives ('give the name, the business registration number, or both'), and businessRegNo combined with countryCode triggers a register lookup whose registered name overrides the supplied one. It also restates the parentLei precondition that the parent must already be in the map and cannot itself be a placeholder.

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 opening sentence names the specific verb (adds a placeholder), the resource (the organisation's entity map) and the defining constraint (an entity with no LEI yet, under a direct parent). It is clearly separable from siblings place_lei_in_entity_map and search_lei_by_company_name, which are named by contrast.

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

Usage Guidelines5/5

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

Explicit when-to-use and when-not: first verify with search_lei_by_company_name that no LEI exists, and use place_lei_in_entity_map if one does. It also names lookup_business_register as the conditional path when a registration number and readable register country are supplied.

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.

Resources