Skip to main content
Glama
Correios MCP Server

Correios MCP Server

by fabianoomura

Divergências de fatura

correios_faturas_divergencias
Read-onlyIdempotent

Retrieves invoice divergences and disputed charges for a Correios contract within a date range, helping identify billing adjustments that require review.

Instructions

Divergências apontadas nas faturas (cobranças contestáveis/ajustes) no período (GET /faturas/v1/faturas/divergencias). 404 'Dados não encontrados' = nenhuma divergência.

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_divergencias"
  }
}

Input Schema

NameRequiredDescriptionDefault
drNoDR (padrão: o da sessão).
contratoNoContrato (padrão: o da sessão).
data_finalNoAté.hoje
data_inicialYesPeríodo a partir de.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world. The description adds genuinely new behavioral context: a 404 'Dados não encontrados' means there are no divergences, not that the call failed. That empty-result convention is exactly the kind of information annotations cannot carry. Rate limits, pagination, and response shape for non-empty results are not covered.

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?

Two short sentences, front-loaded with the resource meaning and followed by the empty-result caveat; nothing is padded. The embedded endpoint path is the only mildly redundant element, since the tool name and annotations already establish the operation.

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?

For a read-only GET with full schema coverage and no output schema, an agent has enough to call it correctly and to interpret the 404 case, which is the main ambiguity. The remaining gap is what a successful payload contains, though with no output schema the description could reasonably have said a bit more about the returned fields.

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 defaults and meanings for dr, contrato, data_inicial, and data_final are already documented in the schema. The description only echoes the period framing ('no período') without adding format, range, or interaction details. 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?

States a specific resource and scope: divergences flagged on invoices (contestable charges/adjustments) within a period, plus the underlying endpoint. An agent can tell this is not a general invoice listing. It does not explicitly contrast with the sibling correios_faturas, which is the closest alternative, so it stops short of a 5.

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 implied by the narrow resource definition (divergences within a required period), but there is no explicit statement of when to prefer this over correios_faturas or correios_fatura_analitico, and no prerequisites or exclusions are given.

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