Skip to main content
Glama
opedrosoares

MCP Compras.gov.br

by opedrosoares

compras_perfil_fornecedor_completo

Fetch a complete supplier profile by CNPJ, combining registration data, federal tax status, corporate structure, sanctions from transparency portals, and procurement impediments in a single query.

Instructions

Perfil consolidado do fornecedor (cadastro + Receita + sanções + impedimentos).

Composição em paralelo:

  • cadastro: Dados Abertos /modulo-fornecedor/1_consultarFornecedor pelo CNPJ (razão social, CNAE, porte, natureza jurídica);

  • receita_federal: BrasilAPI / MinhaReceita — QSA, capital social, atividades secundárias, data de início, situação cadastral (RF). Provider configurável via CNPJ_PROVIDER (default brasilapi);

  • sanções: Portal da Transparência (CEIS+CNEP+CEPIM) pelo CNPJ;

  • impedimentos Comprasnet: /api/comprasnet/compras/impedimentos.

Não inclui lista de contratos porque os endpoints upstream /modulo-contratos/1 (Dados Abertos) e /v1/contratos (PNCP) exigem codigoOrgao como filtro obrigatório — não é possível listar contratos de um fornecedor sem saber em qual órgão ele tem contrato. Se você já souber o órgão, use compras_contratos_listar(codigo_orgao=X, ni_fornecedor=Y, ...).

Sanções dependem de TRANSPARENCIA_API_KEY — se não configurada ou se o WAF da CGU bloquear, o bloco retorna aviso e o restante segue.

Cache 10 min.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cnpjYesCNPJ do fornecedor (14 dígitos, com ou sem pontuação).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/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 thoroughly describes the tool's behavior: parallel composition from four sources, each with details about what data they return (e.g., razão social, CNAE, QSA, etc.). It explicitly states what is excluded (contracts) and why, discloses dependencies (API key, potential WAF blocks), and mentions a 10-minute cache. This is comprehensive behavioral transparency for a complex data integration tool.

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?

The description is well-structured with clear sections and bullet points. Each sentence adds value: the main purpose, component breakdown, exclusion rationale, dependency notes, and cache. It is front-loaded with the core purpose. However, the explanation about contract exclusion is somewhat lengthy (three sentences) and could be slightly condensed without losing clarity. Overall, it is efficient but not perfectly concise.

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 tool's complexity (four parallel data sources, dependencies, and an output schema), the description is complete. It covers what it does, what it includes/excludes, how each source works, dependencies, and caching. Since an output schema exists, it need not describe return values. The description also references a sibling tool for an alternative use case. There are no gaps in context for an agent to correctly invoke this tool.

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

Parameters4/5

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

The single parameter 'cnpj' has schema coverage of 100%, with a description in the schema. The tool description adds context by reaffirming the format '14 dígitos, com ou sem pontuação' and explaining how the CNPJ is used to consolidate data from multiple sources. This adds meaning beyond the schema, showing the parameter's role in the broader tool purpose. However, the schema already provides format details, so the added value is moderate.

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 explicitly states 'Perfil consolidado do fornecedor' and lists four specific data sources (cadastro, receita_federal, sanções, impedimentos). It distinguishes itself from sibling tools by explaining what is NOT included ('Não inclui lista de contratos') and why, referencing specific endpoints and alternative tools. The verb-phrase 'compras_perfil_fornecedor_completo' is clearly described as a consolidated profile, and the inclusion of exclusions differentiates it from contract-related siblings.

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

Usage Guidelines4/5

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

The description provides explicit guidance on when not to use it (if contracts are needed, use 'compras_contratos_listar' with specific parameters). It also mentions dependencies like 'TRANSPARENCIA_API_KEY' and potential blocking by WAF. However, it does not explicitly compare to sibling tools that provide only partial profiles (e.g., compras_fornecedor_consultar, compras_fornecedor_cnpj_receita), leaving some ambiguity about when to choose this over simpler alternatives. A clearer statement of 'use this when you need the full profile; use the simpler tools for just basic data' would improve it, but the existing guidance is strong.

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