Skip to main content
Glama

Decode Registration Authority

decode_registration_authority
Read-onlyIdempotent

Decode a GLEIF Registration Authority (RA) code to the national business register's name, website and jurisdiction(s). This is the code GLEIF publishes as registration_authority on every LEI record (get_lei, search_lei results), naming the register that assigned the entity's registered_as id — "RA000585" decodes to the UK's Companies House, for example. Bare digits are zero-padded and prefixed with "RA" automatically ("585" -> "RA000585"). get_lei already decodes this field inline as registration_authority_decoded — call this tool directly only when you have a bare code from elsewhere.

Input Schema

NameRequiredDescriptionDefault
codeYesGLEIF Registration Authority code, "RA" + 6 digits, e.g. "RA000585" (UK Companies House). Bare digits (e.g. "585") are accepted and normalized.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/openWorld/non-destructive, so the safety profile is covered. The description adds genuine behavioral detail beyond that: input normalization (bare digits zero-padded and prefixed with "RA") and the fact that it returns a register's name, website and jurisdictions. It does not discuss failure modes for unknown codes, which keeps it at 4 rather than 5.

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 purpose, then example, then normalization, then the sibling caveat — a sensible ordering. It is slightly repetitive, restating the "585" -> "RA000585" normalization in both the description and the schema and mentioning the `registration_authority` linkage twice, but no sentence is wasted.

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?

There is no output schema, so the description must describe return values — and it does (register name, website, jurisdiction(s)). Combined with the single fully documented parameter, the safety annotations and the explicit sibling routing, an agent has everything needed to call this correctly.

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?

Only one parameter and schema coverage is 100%, so the schema already carries the syntax. The description nonetheless adds semantic context the schema lacks: what the code represents (the register that assigned the entity's `registered_as` id) and the concrete RA000585 example. The normalization rule is repeated from the schema, which is mildly redundant but not harmful.

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?

Names a specific verb ("Decode") and resource ("GLEIF Registration Authority (RA) code") and enumerates exactly what comes back: the register's name, website and jurisdiction(s). The Companies House example and the tie to the `registration_authority` field on LEI records make it unmistakable versus siblings like get_lei or bic_to_lei.

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?

Explicitly routes the agent: get_lei already decodes this inline as registration_authority_decoded, so call this tool only when you have a bare code from elsewhere. That is a clear when-to-use, when-not-to-use, and named alternative in one sentence.

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.