Skip to main content
Glama
Correios MCP Server

Correios MCP Server

by fabianoomura

Baixar fatura (PDF ou boleto)

correios_fatura_pdf
Idempotent

Downloads a Correios invoice or boleto as a PDF and saves it to disk using the invoice number, document type, and item data from the invoice list.

Instructions

Baixa a fatura sintética ou o boleto em PDF e salva em disco (GET /faturas/v1/faturas/{fatura}/{sintetico|boleto}/pdf).

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": {
      "fatura": "<fatura>",
      "tipo_documento": "<tipo_documento>",
      "item_fatura": "<item_fatura>"
    },
    "name": "correios_fatura_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
faturaYesNúmero da fatura (campo 'fatura'/'id' em correios_faturas).
documentoNosintetico = fatura resumida em PDF; boleto = boleto em PDF.sintetico
dr_faturaNoDR da fatura (padrão: o da sessão).
item_faturaYesitemFatura (vem em correios_faturas, ex.: '001').
tipo_documentoYestipoDocumento da fatura (vem em correios_faturas).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already disclose the non-read-only, idempotent, non-destructive, open-world profile, and the description usefully explains why readOnlyHint is false: the tool writes a file to disk. However, it says nothing about where the file is written, whether an existing file is overwritten, or what happens on download failure — material details for a tool that touches local storage.

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 compact lines, front-loaded with the action and resource, with the endpoint appended as supporting detail rather than filler. Nothing is redundant, though the endpoint string is somewhat technical overhead for an agent.

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?

With full schema coverage, an output schema, and annotations covering safety and idempotency, the description is nearly sufficient for this five-parameter download tool. The remaining gap is filesystem behavior — destination and overwrite semantics — which an agent performing the call would want to know.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline expectation is a 3, but the description actually adds less than the schema: it repeats the sintetico/boleto choice already spelled out in the documento enum description and gives no meaning for fatura, tipo_documento, item_fatura or dr_fatura beyond what the schema states.

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 verb and resource: downloads the invoice summary or boleto as PDF and saves it to disk, and the endpoint path makes the fatura/{sintetico|boleto} selection explicit. It does not distinguish itself from PDF-related siblings such as correios_fatura_analitico or correios_fatura_previa, so it falls 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 Guidelines2/5

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

There is no when-to-use guidance, no statement of prerequisites (that fatura, item_fatura and tipo_documento must be obtained from correios_faturas) and no mention of when a sibling such as correios_fatura_analitico would be the better choice. The only usage signal is implicit in the name and the sintetico/boleto split.

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