Skip to main content
Glama

Lookup reference

lookup_reference
Read-onlyIdempotent

Search municipality names, activities and other Radar CNPJ reference data. Returns: { ok, results }

Input Schema

NameRequiredDescriptionDefault
qNoTwo to 60 characters. Optional when codes are supplied.
tipoYesmunicipio, cnae, natureza, qualificacao, pais or motivo.
limitNoFrom 1 to 50 results; default 20.
codigosNoUp to 50 Receita codes, separated by commas. These are not IBGE codes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / codigos / description
      Previous value: -"Up to 50 Receita codes, separated by commas."New value: +"Up to 50 Receita codes, separated by commas. These are not IBGE codes."
    • changedInput schema / properties / limit / description
      Previous value: -"1 to 50 results. Default: 20."New value: +"From 1 to 50 results; default 20."
    • changedInput schema / properties / q / description
      Previous value: -"At least two letters."New value: +"Two to 60 characters. Optional when codes are supplied."
    • changedInput schema / properties / tipo / description
      Previous value: -"Reference type: city, activity, legal nature, qualification, country or status reason."New value: +"municipio, cnae, natureza, qualificacao, pais or motivo."
  2. Changed2 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"De 1 a 50 resultados; padrão 20."New value: +"1 to 50 results. Default: 20."
    • changedInput schema / properties / tipo / description
      Previous value: -"municipio, cnae, natureza, qualificacao, pais ou motivo."New value: +"Reference type: city, activity, legal nature, qualification, country or status reason."
  3. Added

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds the return shape { ok, results }, but does not explain result fields, error behavior, or pagination details.

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?

The description is two sentences with no wasted text, front-loading what the tool searches before giving the return shape. The return note is useful because there is no output schema.

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?

For a simple read-only lookup tool with full schema descriptions and rich annotations, the description is mostly complete. It states the resource domain and return envelope, though it omits sibling routing guidance.

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

Parameters3/5

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

Schema description coverage is 100%, so the parameter meanings are already documented in the input schema. The description adds little beyond naming reference categories, and does not clarify the relationship between q and codigos beyond what the schema says.

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?

The description states a specific verb and resource: search Radar CNPJ reference data such as municipality names and activities. It is clear enough to understand the tool's function, though it does not distinguish it from sibling tools like list_cnaes.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to use this tool versus alternatives such as list_cnaes or consulta_cnpj. The description implies lookup usage but does not state exclusions or prerequisites.

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.