Skip to main content
Glama
opedrosoares

MCP Compras.gov.br

by opedrosoares

compras_detalhar_preco_servico

Read-onlyIdempotent

Retrieve individual purchase records for a CATSER service code to inspect procurement history and item details; excludes price data.

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

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.3.14

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses the exact returned DTO fields, explicitly warns that no price field exists (with a verification date), and notes the 10-minute cache. This is substantial behavioral context that annotations do not provide.

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 key behavior and the critical no-price warning are front-loaded in the first sentence. The description is slightly repetitive about the absence of price, but every section (endpoint, DTO fields, alternative, cache) earns its place without excessive verbosity.

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

Completeness5/5

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

For a tool with an output schema and full parameter documentation, the description covers the essential context: what it returns, what it omits, which sibling to use instead, the endpoint, and caching behavior. An agent has everything needed to call and interpret this tool correctly.

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 schema already documents all five parameters including defaults and formats. The description adds no extra parameter-level detail beyond what the schema provides, so the baseline 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 the tool lists individual purchases of a CATSER service and immediately clarifies that it does NOT return price values, which is crucial given the tool name. It distinguishes itself from the sibling compras_pesquisar_preco_servico by naming exactly what that alternative returns.

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 says that for unit price of a service, use compras_pesquisar_preco_servico, which returns precoUnitario and supplier. This gives a clear when-to-use versus when-not-to-use directive, leaving no ambiguity about the primary alternative.

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