Skip to main content
Glama
opedrosoares

MCP Compras.gov.br

by opedrosoares

compras_pncp_contratacoes_atualizacao

Lists procurement contracts updated in the PNCP within a date range to monitor retifications and republications of notices.

Instructions

Lista contratações alteradas no período (PNCP).

Endpoint /v1/contratacoes/atualizacao. Útil para monitoramento: descobrir editais que sofreram retificações/republicações. Aceita filtro esfera client-side.

Cache 15 min.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
esferaNoFiltro opcional de esfera federativa (`federal`, `estadual`, `municipal` ou `distrital`). Aplicado client-side sobre a página retornada — útil para recortar a lista, mas note que `_total_registros` continua refletindo o total **sem** filtro de esfera.
paginaNoPágina (1-based).
data_finalYesData final de atualização (YYYY-MM-DD).
data_inicialYesData inicial de atualização (YYYY-MM-DD).
tamanho_paginaNoRegistros por página (PNCP mínimo 10).
codigo_modalidadeYesCódigo da modalidade (obrigatório no PNCP). Códigos comuns: 1=Leilão Eletrônico, 4=Concorrência Eletrônica, 6=Pregão Eletrônico, 8=Dispensa, 9=Inexigibilidade, 13=Concurso.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

Annotations are entirely absent, so the description must disclose behavioral traits. It reveals that the 'esfera' filter is applied client-side and notes that '_total_registros' reflects unfiltered totals—key behavior. It also mentions a 15-minute cache. However, it omits important details like whether results are paginated fully, if the endpoint has rate limits, or if it returns all changes within a date range or only a subset, which would be valuable for agents deciding to paginate or cache.

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 very concise: three short sentences that tell the user exactly what the tool does (list updated contracts), why it's useful (monitoring retifications/republications), and a key behavioral note (client-side filter and cache). Every sentence adds value, no filler. It is well structured with a clear purpose statement, a usage context, and a technical note.

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?

Given the tool has an output schema (context signal true), the description does not need to explain return values. With 6 parameters (3 required) and a straightforward purpose (listing updated contracts), the description covers the main use case and the client-side filter nuance. It lacks mention of any constraints like maximum date range, which might be important, but overall it provides sufficient completeness for an agent to decide and invoke the tool correctly.

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?

Schema description coverage is 100% (all 6 parameters have descriptions in the schema), so the baseline is 3. The description adds significant value beyond the schema by providing context: 'esfera' has a note about client-side application and its effect on '_total_registros'; 'codigo_modalidade' lists common codes with examples (1=Leilão Eletrônico, etc.). This extra guidance helps the agent select and fill parameters correctly, raising the score above baseline.

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 specifies the verb 'Lista' (lists), the resource 'contratações alteradas' (altered contracts), and the scope 'no período' (in the period). The endpoint and purpose for monitoring (discovering retifications/republications) are explicit, and the tool is well-differentiated from siblings like 'compras_pncp_contratacoes_publicacao' (publications) and 'compras_pncp_contratacao_por_orgao' (by agency), which cover different slices.

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 indicates the tool is useful for monitoring changes (retifications/republications), which implies when to use it—tracking updates over time rather than static data. However, it provides no explicit guidance on when NOT to use it, such as for accessing the latest publication or original contract data, nor does it list alternative tools for those purposes. The mention of client-side filtering hints at a limitation but not a clear exclusion.

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