Skip to main content
Glama
opedrosoares

MCP Compras.gov.br

by opedrosoares

compras_detalhar_preco_servico

Retrieves individual purchase details for a CATSER service, including procurement identifiers and item descriptions. Use this tool to explore purchase history without unit prices; for pricing data, use the separate price search tool.

Instructions

Lista as compras individuais de um serviço CATSER — sem valor de preço.

Endpoint: /modulo-pesquisa-preco/4_consultarServicoDetalhe.

⚠️ Esta tool não devolve preço (verificado 2026-08-05): o DTO upstream é idêntico ao da rota 2 — idCompra, idItemCompra, numeroItemCompra, codigoItemCatalogo, objetoCompra, descricaoDetalhadaItem, dataAtualizacaoFato. Nenhum campo de valor.

Para preço unitário de serviço use compras_pesquisar_preco_servico, que devolve precoUnitario e fornecedor por compra.

Cache 10 min.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paginaNoPágina (1-based).
data_fimNoData final (YYYY-MM-DD).
data_inicioNoData inicial (YYYY-MM-DD).
tamanho_paginaNoRegistros por página.
codigo_item_catalogoYesCódigo CATSER do serviço. Inteiro 4-6 dígitos. Ex.: 27332.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the description carries full burden. It discloses the critical limitation that the tool does not return any price field, lists the exact DTO fields, mentions the endpoint, and states a 10-minute cache. It does not cover error handling or authentication requirements, but for a read-only list tool, the transparency is high and adds significant value beyond the schema.

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 compact and front-loaded: the first sentence states the core purpose and key limitation. It then provides the endpoint, a warning, field list, alternative tool, and cache duration in a few sentences with no redundant or irrelevant content. Every sentence contributes value.

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 5 parameters (1 required) and an output schema, the description covers the main behavioral aspects: what it returns, what it does not return, how to get price data, and cache behavior. It mentions the endpoint and DTO fields. The output schema exists, so return description is not needed. Minor omissions like pagination behavior are already covered by parameter descriptions. The description is sufficiently complete for a list tool.

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 repeats the schema's detail for the required parameter (e.g., 'Código CATSER do serviço. Inteiro 4-6 dígitos. Ex.: 27332') and adds context by linking the parameter to the tool's purpose, but does not introduce new semantic information beyond what the schema already provides.

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 lists individual purchases of a CATSER service without price. It uses a specific verb ('lista') and resource ('compras individuais de um serviço CATSER') and distinguishes from the sibling tool 'compras_pesquisar_preco_servico' by explicitly noting it does not return price, while the sibling does.

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

Usage Guidelines5/5

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

The description explicitly tells the agent when to use this tool versus the alternative: 'Para preço unitário de serviço use compras_pesquisar_preco_servico'. It also clarifies the tool's scope (only returns data without price) and provides cache duration, giving clear context for decision-making.

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