Skip to main content
Glama
opedrosoares

MCP Compras.gov.br

by opedrosoares

compras_catmat_buscar

Read-onlyIdempotent

Search CATMAT material catalog by keyword and group/class filters to retrieve item codes for procurement planning and price research.

Instructions

Busca itens CATMAT.

⚠️ Atenção upstream: o filtro textual descricao do Dados Abertos está ignorando o valor enviado e devolvendo o universo CATMAT inteiro (~340k itens, começando por arma de fogo) desde meados de 2026. Confirmado via probe direto. Os filtros estruturais (codigo_grupo, codigo_classe, codigo_pdm) continuam funcionando.

Workflow recomendado enquanto o filtro textual não voltar:

  1. compras_catmat_listar_grupos() → escolher o grupo (ex.: 71=Mobiliários).

  2. compras_catmat_listar_classes(codigo_grupo=71) → escolher a classe (ex.: 7110=Mobiliário para Escritório).

  3. compras_catmat_buscar(termo='cadeira', codigo_grupo=71, codigo_classe=7110) → o termo ainda é enviado (mantém compatibilidade), mas a redução real virá dos códigos estruturais.

Esta tool emite _aviso_filtro no payload quando detecta que o upstream devolveu o universo inteiro.

Cache 24h por (termo + filtros + página).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
termoYesTermo de busca textual (descrição do material/serviço). Aceita fragmento — a API faz match parcial. Ex.: 'cadeira ergonomica'.
paginaNoPágina (1-based).
codigo_grupoNoFiltro estrutural por grupo CATMAT (1-99). **FORTEMENTE RECOMENDADO** porque o filtro textual upstream está quebrado (veja docstring). Obtenha o código em `compras_catmat_listar_grupos`.
codigo_classeNoFiltro estrutural por classe CATMAT (4 dígitos). Use em conjunto com `codigo_grupo` para focar a busca.
tamanho_paginaNoRegistros por página.

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.9/5.0
Behavior5/5

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

Beyond the readOnlyHint/idempotentHint annotations, the description discloses that the upstream textual filter is currently ignored and returns the entire ~340k CATMAT universe, that the tool emits _aviso_filtro when it detects this, and that results are cached for 24h per term+filters+page. This is rich behavioral context that annotations alone 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is longer than average, but it is tightly structured with a warning callout, a numbered workflow, and a short cache note. Every section carries necessary information given the upstream bug, and the most urgent warning is front-loaded.

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?

Given the output schema exists and annotations cover safety, the description is complete for correct invocation: it covers purpose, current upstream behavior, a reliable workflow, parameter semantics, a payload warning, and caching behavior. No essential operational detail is missing.

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?

The schema already documents all parameters (100% coverage), but the description adds critical usage semantics: termo is sent but currently has no effective filtering power, while codigo_grupo and codigo_classe are the real reducers. It also explains the cache key. This goes beyond the schema, though the mention of codigo_pdm, which is not present in the schema, is a minor confusing detail.

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 opens with Busca itens CATMAT, a specific verb and resource, and clarifies this is the final search step in a workflow after listing groups and classes. It implicitly differentiates the search tool from the list/consult siblings and states the result is a CATMAT item search with textual and structural filters.

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?

It provides an explicit Workflow recomendado with numbered steps, telling the agent to call compras_catmat_listar_grupos and compras_catmat_listar_classes first, then call this tool with codigo_grupo/codigo_classe while the textual filter is broken. It also states that structural filters still work and termo is kept for compatibility, which is a clear when/when-not guide.

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