Skip to main content
Glama

lookup_by_identifier

Read-onlyIdempotent

Resolve an entity by a strong external identifier such as LEI, sanctions ID, or company registry number and return the matched record for dossiers and sanctions checks.

Instructions

Resolve an entity by a strong external identifier instead of a name — a LEI, OFAC SDN uid, EU/UN/UK sanctions id, Singapore UEN, SEC CIK, Polish KRS, UK Companies House number, French SIREN, or Brazil RFB CNPJ. Returns the single resolved entity (id, type, jurisdiction, identifier, risk) so you can pivot into get_entity / get_dossier / get_sanctions. Use this when you already hold a registry id and want the corpus node behind it. All eleven schemes were exercised against production on 2026-08-11 and every one resolved a real entity — no scheme in this enum is decorative. DISTINGUISH THE TWO FAILURE MODES: an unsupported scheme returns HTTP 400 with error: 'bad_request' and the accepted set spelled out in detail, whereas a supported scheme whose value we simply do not hold returns HTTP 404 error: 'not_found'. A 404 is a statement about the corpus, not about the tool — fall back to search_entities. NOT every identifier you may see in a response is resolvable here — the enum below is the complete accepted set and the route hard-rejects anything else with a 400. In particular Cyprus records carry a cy-reg: identifier that this tool does NOT accept (verified: cy-reg → 400), and neither is the cusip: seen on US securities rows: reach Cypriot companies with search_entities using juris='cy'.

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": {
      "scheme": "<scheme>",
      "value": "<value>"
    },
    "name": "lookup_by_identifier"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYesThe identifier value (e.g. an LEI, an OFAC SDN uid, a Companies House number).
schemeYesIdentifier scheme: lei | ofac | eu | un | uk | uen | sec | krs | gb-coh | siren (French SIREN, 9 digits) | br-cnpj (Brazil RFB CNPJ; accepts 8-digit root or full 14-digit form 12.345.678/0001-95).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.11

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent, open-world, non-destructive, so the bar is lower — yet the description still adds substantive behavior: the 400-vs-404 failure-mode distinction, the meaning of a 404 as a corpus statement rather than a tool failure, and the hard rejection of unlisted schemes. This is exactly the operational context annotations cannot carry.

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?

Front-loaded with the purpose, then usage, then failure modes, then the negative cases — a sensible escalation. Some sentences are slightly over-argued ('no scheme in this enum is decorative', the dated production-verification note) and could be trimmed without losing information.

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?

No output schema exists, and the description compensates by naming the returned fields (id, type, jurisdiction, identifier, risk). Error handling, scheme coverage, and routing are all covered for a 2-parameter tool; the only minor gap is nothing about value normalization beyond the CNPJ example, which the schema already handles.

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?

Schema coverage is 100%, so baseline would be 3, but the description adds meaning beyond the schema: the enum is declared the complete accepted set, hard-rejected otherwise, and two specific tempting identifier prefixes (cy-reg:, cusip:) are called out as NOT accepted with the observed 400. That directly prevents a foreseeable misuse of the scheme parameter.

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?

States a specific verb+resource ('resolve an entity by a strong external identifier instead of a name') and enumerates the eleven concrete schemes, immediately distinguishing it from name-based lookup. An agent can tell this apart from search_entities without opening the schema.

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?

Gives an explicit when-to-use condition ('when you already hold a registry id and want the corpus node behind it'), names the forward pivots (get_entity / get_dossier / get_sanctions), and names the fallback (search_entities) for the 404 case and for Cypriot records. Exclusions and alternatives are both spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.