Skip to main content
Glama
Correios MCP Server

Correios MCP Server

by fabianoomura

Processamento de fatura

correios_fatura_processamento
Idempotent

Check the status of an asynchronous invoice processing and download the resulting file when it is ready.

Instructions

Situação de um processamento assíncrono de fatura e, se pronto, o arquivo (GET /faturas/v1/processamentos/{id}[/file]).

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": {
      "id_processamento": "<id_processamento>"
    },
    "name": "correios_fatura_processamento"
  }
}

Input Schema

NameRequiredDescriptionDefault
baixarNoBaixa o arquivo se já estiver pronto.
id_processamentoYesID do processamento (analítico ou prévia).

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 idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is largely covered; the description usefully adds that the call is a GET-based status check that only returns the file once processing is complete. It does not explain why readOnlyHint=false despite GET routes (presumably the file download side effect of baixar=true), nor what happens while the processing is still pending.

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?

A single compact sentence with the purpose front-loaded (status of the async processing) followed by the conditional file outcome and the route reference. No filler, though the embedded endpoint notation is dense and slightly harder to parse than plain prose.

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 an output schema present, the description need not document return values, and annotations cover the safety profile; what remains necessary – that this is an asynchronous status check whose file becomes available only when ready – is stated. The main omission is polling/backoff behavior when the processing is not yet finished.

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 both parameters (baixar and id_processamento) are already documented in the schema; baseline is 3. The '[/file]' notation hints that baixar selects the file endpoint, which is a small extra signal but no new semantics beyond the schema's own 'Baixa o arquivo se já estiver pronto.'

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 names a specific resource and operation: the status of an asynchronous invoice processing, plus the eventual file retrieval, and even cites the HTTP routes (GET /faturas/v1/processamentos/{id}[/file]). It is clearly not the tool that creates a processing nor the analytic/preview/PDF generators, though it never names which sibling starts a processing.

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: an agent can infer this is the polling/status-check step after some other call has produced an id_processamento. There is no explicit 'use this after X', no guidance on whether to call repeatedly while not ready, and no routing to correios_fatura_analitico, correios_fatura_previa or correios_fatura_pdf as alternatives.

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