Skip to main content
Glama
Correios MCP Server

Correios MCP Server

by fabianoomura

Listar faturas

correios_faturas
Read-onlyIdempotent

Retrieve Correios contract invoices for a period with status, due date, amount, cost center, and item/document type needed to download PDFs and boletos.

Instructions

Faturas do contrato no período, com status (paga/em aberto), vencimento, valor, centro de custo e o itemFatura/tipoDocumento necessários para baixar PDF e boleto (GET /faturas/v1/faturas).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "data_inicial": "<data_inicial>"
    },
    "name": "correios_faturas"
  }
}

Input Schema

NameRequiredDescriptionDefault
drNoDR do contrato (padrão: o da sessão).
statusNoFiltra localmente pelo status (ex.: Paga, Em aberto, Vencida).
contratoNoContrato (padrão: o da sessão).
data_finalNoAté.hoje
data_inicialYesVencimento/emissão a partir de.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=true and destructiveHint=false, so the safety profile is covered. The description adds real behavioral context by enumerating what each invoice record contains and exposing the backing endpoint, but says nothing about result volume, pagination, or whether the local `status` filter narrows the returned set.

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?

It is a single, front-loaded sentence that identifies the resource and period first, then the payload contents, and closes with the endpoint. Dense but every clause carries information; the parenthetical list of fields is slightly long but justified since it tells the agent the response is PDF-ready.

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 an output schema exists and all five parameters are documented in the schema, the description only needs to establish purpose and payload character, which it does. The residual gap is guidance on result size/pagination and on how this differs from the analytic and PDF siblings, which is minor for a filtered read-only list.

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?

With schema description coverage at 100%, the schema already explains dr/contrato defaulting to the session, status filtering locally, and data_inicial/data_final semantics. The description only echoes the status values (paga/em aberto) as returned data, adding essentially no new parameter meaning beyond the schema. Baseline 3 applies.

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 states the resource (invoices for the contract in a period) and enumerates the returned fields — status, due date, amount, cost center, itemFatura/tipoDocumento — plus the underlying endpoint GET /faturas/v1/faturas. It is clearly a list/retrieve operation on invoices, but it never names or distinguishes itself from invoice-related siblings such as correios_fatura_analitico, correios_fatura_pdf or correios_faturas_divergencias.

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?

Usage is only implied: the mention that the response carries `itemFatura`/`tipoDocumento` 'necessários para baixar PDF e boleto' hints that this tool feeds a PDF/boleto download step, which is a useful chaining cue. However there is no explicit when-to-use / when-not-to-use statement and no named alternative for divergences or analytic breakdowns.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.