Skip to main content
Glama
opedrosoares

MCP Compras.gov.br

by opedrosoares

compras_contrato_faturas

List invoices and fiscal notes for a specific contract using its ID. Supports pagination and applies LGPD data masking.

Instructions

Lista NFs/faturas (/api/contrato/{id}/faturas).

Paginação client-side. Cache 15 min. Atenção LGPD: o campo infcomplementar (texto livre) pode conter nome de servidor + matrícula SIAPE não estruturados — o mascaramento LGPD só cobre CPFs em campos nominais (cpf, niResponsavel, etc.).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paginaNoPágina de resultados (1-based). Padrão 1.
id_contratoYesID do contrato no Comprasnet.
tamanho_paginaNoQuantidade de registros por página. Padrão 50, máximo 500.

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 behavioral traits: client-side pagination, 15-minute cache, and a critical LGPD notice about the `infcomplementar` field potentially containing unstructured personal data (server name + SIAPE number) that is not masked. This is valuable beyond what schema/enum covers. It does not mention if it is read-only or destructive, but the action is a LIST, so read-only is implied.

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: one line for the endpoint and pagination, one line for cache, and one line for the LGPD warning. Every sentence adds unique, non-redundant information. No fluff or repetition. Highly efficient.

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 an output schema (though not shown here) and 3 well-documented parameters, the description covers the most important behavioral aspects: pagination, caching, and data sensitivity. It does not explain the return structure (but output schema handles that) or error conditions. For a listing tool, this is quite complete. A minor gap is no mention of rate limits or authentication, but those may be system-wide.

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?

Schema description coverage is 100% (all three parameters have descriptions), so baseline is 3. The description does not add per-parameter details beyond schema, but it does add context about client-side pagination and the data sensitivity of the results, which indirectly informs how parameters should be used (e.g., paginate efficiently, be cautious with `infcomplementar`). This elevates the score above baseline.

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 invoices/faturas for a specific contract, with the endpoint path `/api/contrato/{id}/faturas`. It is specific about the resource (contract invoices) and the action (list), and among the many sibling tools related to contracts (e.g., `compras_contratos_listar`, `compras_contratos_consultar`, `compras_contrato_empenhos`), its purpose is distinct.

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

Usage Guidelines3/5

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

The description mentions client-side pagination and cache, but does not explicitly state when to use this tool versus alternatives like `compras_contrato_empenhos` or `compras_contratos_consultar`. It provides no guidance on prerequisites (e.g., need the contract ID) or conditions that make this tool appropriate. The usage context is implied but not contrasted with siblings.

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