Skip to main content
Glama

Look up a company by CNPJ

lookup_cnpj
Read-only

Retrieves public registration details for a Brazilian company from a CNPJ, including legal name, status, main activity, and location.

Instructions

Returns public registration data for a Brazilian company (legal name, status, main activity, location) using BrasilAPI.

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

Input Schema

NameRequiredDescriptionDefault
cnpjYesNumeric CNPJ with or without punctuation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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 and openWorldHint=true, so safety and external-dependency profile are covered. The description usefully adds that the data is public registration data from BrasilAPI, but says nothing about behavior on an invalid or unknown CNPJ, rate limits, or response timing.

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?

One front-loaded sentence with zero filler; every clause (what it returns, for whom, with which fields, from which source) earns its place.

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?

With no output schema, the description correctly takes on the job of naming the returned fields, which is what an agent needs most here. It leaves out failure modes (invalid CNPJ, upstream API errors), the only meaningful remaining gap for a one-parameter lookup.

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 parameter's format ('with or without punctuation') is already documented there. The description adds no further meaning about the CNPJ argument, so the baseline 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?

States a specific verb and resource ('Returns public registration data for a Brazilian company') and enumerates the returned fields (legal name, status, main activity, location) plus the data source (BrasilAPI). This makes it clearly distinct from validate_cnpj, though it never names that sibling to make the contrast explicit.

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?

No statement of when to use this versus validate_cnpj or lookup_cep, and no prerequisites or exclusions. The intended use (fetch full company record) is only implied by the description of returned fields.

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