Skip to main content
Glama
opedrosoares

MCP Compras.gov.br

by opedrosoares

compras_pncp_contratacao_por_orgao

Retrieve a specific procurement contract by providing the agency's CNPJ, year, and contract sequential number.

Instructions

Consulta uma contratação específica pelo CNPJ + ano + sequencial.

Endpoint /v1/orgaos/{cnpj}/compras/{ano}/{sequencial}. Devolve cabeçalho completo da contratação.

Cache 15 min.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
anoYesAno da contratação (4 dígitos).
cnpjYesCNPJ do órgão (14 dígitos, com ou sem pontuação).
sequencialYesSequencial da contratação dentro do órgão e ano.

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 carries the full burden. It mentions the endpoint path and that it returns the complete header of the contract. It also mentions a 15-minute cache. However, it does not disclose any potential side effects, rate limits, or authentication requirements. The cache note is useful but incomplete for full transparency.

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 brief and to the point at three sentences. It front-loads the purpose, then provides the endpoint and a return value note, and ends with cache info. It is efficient with no wasted words, though slightly more structure could be helpful.

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 that there is an output schema (context signal: has output schema: true), the description does not need to explain return values in detail. It still covers the core purpose, parameters, endpoint, and cache. For a simple lookup tool with rich input schema and output schema, this is adequate but could be more complete by noting any access restrictions or common pitfalls.

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?

The schema already describes all three parameters with 100% coverage. The description adds the endpoint path showing the parameter order in the URL, which provides context beyond the schema. It does not add significant additional semantics, but with full schema coverage, a baseline of 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 it queries a specific contract (contratação) using CNPJ, year, and sequential number. The verb 'consulta' is specific and the resource is well-defined. It distinguishes itself from siblings that list contracts by providing a detailed lookup by these three identifiers.

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 implicitly defines when to use this tool: when you need a specific contract given CNPJ, year, and sequential number. It does not explicitly state when not to use it or mention alternative tools, but the three-parameter requirement is clear. Given the large sibling list, explicit alternatives would improve it.

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