Skip to main content
Glama
opedrosoares

MCP Compras.gov.br

by opedrosoares

compras_pncp_contratacao_itens

Retrieve items from a specific procurement contract registered in PNCP by informing the agency's CNPJ, contract year, and sequential number. Returns paginated results to support contract analysis.

Instructions

Lista itens de uma contratação no PNCP.

Endpoint /v1/orgaos/{cnpj}/compras/{ano}/{sequencial}/itens. Cache 15 min.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
anoYesAno da contratação.
cnpjYesCNPJ do órgão.
paginaNoPágina de resultados (1-based). Padrão 1.
sequencialYesSequencial da contratação.
tamanho_paginaNoQuantidade de registros por página. Padrão 50, máximo 500.

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 discloses a 15-minute cache behavior and lists the endpoint, which gives structural insight. However, it does not explicitly state the read-only nature, pagination behavior, error handling, or the shape of results. The cache note adds value but other behavioral traits are missing.

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 short: one main sentence, one endpoint line, one cache note. The endpoint line is likely unnecessary for an AI agent but not overly verbose. The cache note is a useful behavioral detail. The entire description is front-loaded and efficient, though the endpoint detail could be omitted without loss.

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

Completeness2/5

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

For a tool with 5 parameters, 3 required, and an output schema, the description is minimal. It does not explain what information the returned items contain, how to use pagination effectively, or how the required parameters identify a specific contract. Given the existence of an output schema, the return structure is assumed documented elsewhere, but the description lacks context for usage.

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%, so the baseline is 3. The description adds no additional meaning beyond the schema; the endpoint line mirrors the required parameters but does not explain their semantics or how they relate (e.g., that they form a composite key). No extra context is provided for 'pagina' or 'tamanho_pagina' beyond what is in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Lista itens de uma contratação no PNCP', which is a specific verb ('Lista') and resource ('itens de uma contratação'). It distinguishes from siblings by specifying 'no PNCP', differentiating it from tools for other procurement systems (e.g., 14133). However, it does not explicitly contrast with similar item-listing tools like compras_contratacoes_14133_itens_por_contratacao or compras_arp_itens_listar.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. There is no mention of prerequisites, context, or exclusion criteria for when to prefer this over sibling tools that also list items for contracts. The agent must infer usage solely from the tool name and brief purpose.

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