Skip to main content
Glama
opedrosoares

MCP Compras.gov.br

by opedrosoares

compras_indicadores_por_periodo

Retrieve API usage metrics (requests, latency, downloads) for a given year or month to monitor operational availability and performance of the upstream procurement system.

Instructions

Métricas operacionais da API por período (ano/mês).

Endpoint Dados Abertos /modulo-indicadores/2_consultarIndicadoresPorPeriodo. Retorna métricas de USO da API (requisições, latência, downloads), não dados de compras. Útil para análise temporal de disponibilidade do upstream.

Cache 1h.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
anoYesAno de referência dos indicadores (4 dígitos).
mesNoMês (1-12). Se omitido, agrega o ano inteiro. Se informado, filtra apenas o mês especificado.
paginaNoPágina (1-based).
tamanho_paginaNoRegistros por página.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description adds important behavioral context: it identifies the endpoint URL, describes the data source (Open Data), and mentions a 1-hour cache. This helps the agent understand data freshness and scope. The description does not cover pagination limits or data variability 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.

Conciseness4/5

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

The description is concise with four sentences, each providing value: tool purpose, endpoint, data type clarification, use case, and caching. The structure is front-loaded with the main action. No unnecessary repetition.

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 existence of an output schema and 100% parameter coverage, the description provides sufficient context: endpoint, data nature, use case, and cache behavior. It is adequate for an agent to select and use the tool correctly, though more detail on pagination or error handling could push completeness higher.

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?

The input schema has 100% coverage with descriptions for all four parameters. The description adds context ("ano/mês") and clarifies that omitting month aggregates the year, but this is not significantly beyond the schema. Baseline 3 is appropriate.

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 specifies the tool returns operational metrics of the API (usage metrics like requests, latency, downloads) by period (year/month), distinguishing it from related sibling tools that focus on procurement data. The verb "Retorna" and resource "métricas operacionais" are clear, but the tool name suggests procurement indicators, causing slight ambiguity.

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

Usage Guidelines4/5

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

The description explicitly states what the tool does not return ("não dados de compras") and provides a usage context ("análise temporal de disponibilidade do upstream"). However, it does not discuss when to use it versus siblings like compras_indicadores_consolidados or alternatives, missing explicit exclusions.

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