Skip to main content
Glama

consult_cnpj

Look up public Brazilian company registration data by CNPJ to validate a business and retrieve its legal details.

Instructions

Consulta dados cadastrais públicos de pessoa jurídica por CNPJ.

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": "consult_cnpj"
  }
}

Input Schema

NameRequiredDescriptionDefault
cnpjYesNúmero do CNPJ com ou sem pontuação (14 dígitos).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It usefully signals that the data is public (dados cadastrais públicos), which hints at a safe read-only lookup, but says nothing about what fields are returned, error behavior for malformed CNPJs, rate limits, or whether any authentication is required.

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?

One front-loaded sentence with the resource and the keying parameter in the right order, and no filler. It is efficient but so terse that it omits useful context, so it stops short of a 5.

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?

The tool is simple (one required string, no nesting), but with no output schema and no annotations the description should describe what registration data comes back (e.g., razão social, address, status). It leaves that gap, though the complexity is low enough that the omission is tolerable.

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% and the single cnpj parameter already documents the 14-digit format with or without punctuation. 'por CNPJ' adds no meaning beyond that, so the schema does the heavy lifting and the baseline of 3 applies.

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 a specific verb (consulta), a specific resource (dados cadastrais públicos de pessoa jurídica), and the keying parameter (CNPJ). This clearly separates it from siblings such as create_pix_charge, get_account_balance, and get_gateway_status, though it does not explicitly contrast with any of them.

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 when-to-use guidance, no prerequisites, and no mention of alternatives or exclusions. The agent must infer from the purpose phrase alone that this is the lookup tool for company registration data, and must guess what to do for an invalid or inactive CNPJ.

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