Skip to main content
Glama
opedrosoares

MCP Compras.gov.br

by opedrosoares

compras_fornecedor_consultar

Look up a supplier’s registration using their CNPJ or CPF to obtain company name, CNAE, size, and legal nature from public procurement data.

Instructions

Consulta cadastro de um fornecedor pelo CNPJ ou CPF.

Endpoint Dados Abertos /modulo-fornecedor/1_consultarFornecedor. Devolve razão social, CNAE, porte da empresa, natureza jurídica.

Cache 1h.

Input Schema

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

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations are provided, so the description bears full responsibility for behavioral disclosure. It mentions a 1-hour cache and the endpoint, which helps set expectations. However, it does not specify whether the tool is read-only (likely safe) or if there are any idempotency or side effects, leaving some ambiguity.

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 concise with three short sentences covering purpose, endpoint, and return data. The first sentence immediately conveys the main action. While the second and third sentences add useful details, the description could potentially be more compact by integrating the endpoint into a single query, but it remains efficient.

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?

Given the tool's simplicity (one parameter, no nested objects, output schema exists), the description covers the essential purpose, input format, and cache behavior. However, it lacks guidance on error cases (e.g., invalid CNPJ/CPF), output structure (though output schema exists), and how to handle the response. It is adequate but not exhaustive.

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 input schema has one parameter (cnpj_cpf) with full schema description coverage (100%). The description adds context by noting the expected format (14 digits for CNPJ, 11 for CPF, with or without punctuation) and confirms the purpose of the parameter. Since schema coverage is 100%, the baseline is 3; the description adds enough additional clarity to warrant a 4.

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 the tool's purpose: 'Consulta cadastro de um fornecedor pelo CNPJ ou CPF.' It identifies the specific action (consult), the resource (supplier registration), and the input method (CNPJ or CPF). It distinguishes itself from sibling tools like compras_fornecedor_listar by specifying a single-query lookup.

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?

The description implies usage for querying a single supplier by document number, but it does not explicitly state when to use this tool versus alternatives (e.g., compras_fornecedor_listar for multiple suppliers). No exclusions or prerequisites (like required permissions) are mentioned.

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