Skip to main content
Glama

LeadIA: empresas do Brasil (CNPJ)

Consultar um CNPJ

consultar_cnpj
Read-onlyIdempotent

Cadastro público de uma sociedade na Receita Federal: razão social, situação, abertura, atividade, porte, cidade e mudanças. Não traz sócios pessoa física nem contatos.

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": {
      "cnpj": "<cnpj>"
    },
    "name": "consultar_cnpj"
  }
}

Input Schema

NameRequiredDescriptionDefault
cnpjYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real value by disclosing what is absent from the payload (no sócios pessoa física, no contatos), preventing wasted calls. It says nothing about behavior on invalid/unknown CNPJ, error modes, or data freshness.

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?

Two compact sentences, front-loaded with the returned fields and ending with the exclusion — no filler. It could be marginally tighter by stating the resource as an action, but nothing is redundant.

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

Completeness3/5

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

With no output schema, the description does the necessary work of enumerating return fields and negative scope. However, for a single-parameter lookup it omits the parameter format and any error/not-found behavior, which are the main things an agent still needs.

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

Parameters2/5

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

There is exactly one required parameter, cnpj, and the schema provides zero description coverage, so the description carries the full burden. It never mentions the parameter or its expected format (14 digits vs. formatted XX.XXX.XXX/XXXX-XX), leaving an agent to guess a format that commonly causes failures.

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 names the specific resource (Cadastro público de uma sociedade na Receita Federal) and enumerates the exact fields returned (razão social, situação, abertura, atividade, porte, cidade, mudanças), so an agent knows precisely what data this yields. It lacks an explicit verb like 'consulta/retorna' and never contrasts with the sibling cotar_lista_de_empresas, which keeps it at 4.

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

Usage Guidelines3/5

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

Usage is only implied: the field list signals 'use this to look up registration data for one company', and the closing sentence excludes partner/contact data, which is a useful scope boundary. There is no explicit when-to-use, no when-not, and no routing to an alternative tool for the excluded data types.

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.