Skip to main content
Glama
opedrosoares

MCP Compras.gov.br

by opedrosoares

compras_fornecedor_cnpj_receita

Read-onlyIdempotent

Fetch Brazilian CNPJ data from Receita Federal: legal name, status, CNAEs, partners, capital, address, activity dates. Complements supplier profile for due diligence on size and partners.

Instructions

Dados públicos do CNPJ na Receita Federal (via BrasilAPI/MinhaReceita).

Retorna razão social, nome fantasia, situação cadastral, CNAE primário e secundários, QSA (sócios), capital social, natureza jurídica, porte, endereço e datas de início de atividade e da situação cadastral.

Quando usar: complemento do compras_perfil_fornecedor_completo para due diligence (avaliar porte, sócios, CNAEs vs objeto da licitação). Os dados são da Receita; este MCP não consulta sanções aqui — para isso use as tools de sanção (CEIS/CNEP/CEPIM/CEAF).

Cache 24h. Em caso de 404 ou erro upstream, retorna encontrado=false com diagnóstico em _erro em vez de propagar exception.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cnpjYesCNPJ a consultar (14 dígitos, com ou sem pontuação). Usa BrasilAPI por padrão; trocável via env `CNPJ_PROVIDER=minhareceita`.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.3.14

TDQS

A4.7/5.0
Behavior5/5

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

The annotations already declare readOnly, openWorld, idempotent, and non-destructive behavior, lowering the burden on the description. The description still adds valuable behavioral detail: 24h caching, provider selection (BrasilAPI/MinhaReceita), and graceful error behavior returning encontrado=false with a diagnostic in _erro instead of throwing exceptions.

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 well-structured with a concise summary up front, a field list, a bolded usage section, and a final behavior/error note. Every sentence serves a clear purpose: identity, return contents, when to use, alternatives, and runtime behavior. It is informative without being bloated.

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

Completeness5/5

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

Given the single parameter, rich annotations, and existing output schema, the description covers all essential context: data source, exact returned information, relationship to sibling tools, non-coverage of sanctions, cache duration, and error semantics. An agent has everything it needs to decide when to call this tool and how to interpret failures.

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%: the single cnpj parameter is already fully documented with length, formatting, and provider configuration via env variable. The description adds no additional parameter-level meaning beyond what the schema provides, so the 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?

The description clearly states this is a public CNPJ data lookup from Receita Federal and enumerates the exact returned fields (razão social, CNAEs, QSA, capital social, etc.). It explicitly positions itself as a complement to compras_perfil_fornecedor_completo and distinguishes itself from sanction tools, so an agent can select it correctly among many sibling tools.

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

Usage Guidelines5/5

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

There is a dedicated 'Quando usar' section explaining it complements compras_perfil_fornecedor_completo for due diligence. It also explicitly states what this tool does NOT do — it does not check sanctions — and directs the agent to the CEIS/CNEP/CEPIM/CEAF sanction tools instead.

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/opedrosoares/MCP_Compras'

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