Skip to main content
Glama

Lookup Brazilian Company (CNPJ)

gov.brasilapi.cnpj
Read-onlyIdempotent

Look up a Brazilian company by its 14-digit CNPJ tax ID and get official data: name, address, CNAE codes, partners, capital, and status from Receita Federal.

Instructions

Look up a Brazilian company by 14-digit CNPJ tax ID — returns name, address, CNAE codes, QSA partners, capital, status from Receita Federal. BrasilAPI MIT

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cnpjYesBrazilian company tax ID (CNPJ) — 14 digits with or without punctuation (e.g. "33000167000101" or "33.000.167/0001-01"). Returns full Receita Federal company registry data.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, openWorldHint=true. Description adds that data is from Receita Federal but does not disclose additional behavioral traits like rate limits, data freshness, or error handling. No contradictions.

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?

Single sentence with front-loaded purpose, followed by return fields and source. No wasted words. Efficient and clear.

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 single-parameter lookup with an output schema (not shown), the description lists key return fields. It lacks info on pagination or status codes, but these are minor given the tool's simplicity and good annotations. Mostly complete.

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 has 1 parameter with 100% coverage, including format and return info. Tool description mentions '14-digit CNPJ tax ID' but adds no new meaning beyond schema. Baseline 3 is appropriate.

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?

Description uses specific verb 'Look up' and resource 'Brazilian company by CNPJ', and lists return fields (name, address, CNAE, etc.). It clearly distinguishes from other gov.brasilapi tools (e.g., banks, CEP) and other business-lookup tools on the server.

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?

Description states it returns official Receita Federal data, implying use for Brazilian company info. However, it does not explicitly mention when to use vs alternatives (e.g., other business lookup tools) or exclude cases like inactive companies.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/whiteknightonhorse/APIbase'

If you have feedback or need assistance with the MCP directory API, please join our Discord server