Skip to main content
Glama
Correios MCP Server

Correios MCP Server

by fabianoomura

Prévia de fatura

correios_fatura_previa
Read-onlyIdempotent

Requests a preview of an open postal contract invoice showing posted items not yet billed, and returns a processing handle to track its status.

Instructions

Solicita a PRÉVIA da fatura em aberto (o que já foi postado e ainda vai ser faturado) (POST /faturas/v1/previas). Devolve um processamento: acompanhe com correios_fatura_processamento.

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": {
      "tipo_previa": "<tipo_previa>"
    },
    "name": "correios_fatura_previa"
  }
}

Input Schema

NameRequiredDescriptionDefault
drNoDR (padrão: o da sessão).
contratoNoContrato (padrão: o da sessão).
tipo_previaYesTipo de prévia aceito pela API (ex.: o código informado no portal).
centro_custoNoCentro de custo (opcional).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuinely useful behavior beyond that: the call is asynchronous and returns a processing handle that requires polling via correios_fatura_processamento. It does state the HTTP verb POST, which is in mild tension with readOnlyHint but is plausibly a query-style POST rather than a true contradiction.

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 sentences, front-loaded with the verb and resource, with the parenthetical explaining "prévia" earning its place. The duplicated emphasis in "PRÉVIA" plus the parenthetical is slightly redundant but not wasteful.

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 an asynchronous request tool with no output schema, the description supplies the key missing piece: the return is a processing that must be followed up elsewhere. Session-default behavior for dr and contrato lives in the schema, and no output schema exists to be explained, so little is missing.

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 coverage is 100%, so all four parameters including the required tipo_previa are already documented in the schema. The description adds no parameter-level detail such as accepted values for tipo_previa or how dr/contrato default from session, leaving the schema to carry that load entirely.

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?

Names a specific verb and resource ("Solicita a PRÉVIA da fatura em aberto") and clarifies the semantics of "prévia" as what has been posted but not yet invoiced, which is enough to tell it apart from an actual-invoice sibling. It stops short of naming any sibling explicitly, so differentiation is inferential rather than stated.

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?

Gives clear usage context by naming the follow-up tool: the call returns a processing that must be tracked with correios_fatura_processamento, so the agent knows this is step one of a two-step flow. It does not state when to prefer this over a direct invoice query or any preconditions, so exclusions are absent.

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