Skip to main content
Glama
Correios MCP Server

Correios MCP Server

by fabianoomura

Gerar rótulo (etiqueta) em PDF

correios_rotulo_gerar
Idempotent

Generates PDF posting labels for already pre-posted registered objects and saves the file to disk, returning its path without changing pre-postage or creating charges.

Instructions

Gera o rótulo/etiqueta de postagem em PDF de objetos REGISTRADOS já pré-postados e salva em disco (POST …/rotulo/assincrono/pdf + GET …/rotulo/download/assincrono/{recibo}). Devolve o caminho do arquivo. Não altera a pré-postagem nem gera cobrança.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "correios_rotulo_gerar"
  }
}

Input Schema

NameRequiredDescriptionDefault
layoutNoLayout de impressão (LINEAR_100_150 = térmica 10x15).PADRAO
tipo_rotuloNoP padrão, R reduzido.P
codigos_objetoNoCódigos dos objetos pré-postados.
formato_rotuloNoET etiqueta, EV envelope.ET
ids_prepostagemNoOu os IDs das pré-postagens.
aguardar_segundosNoQuanto esperar o PDF ficar pronto.
imprimir_remetenteNoImprime o bloco do remetente.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations declare openWorldHint and idempotentHint but not what the side effect actually is; the description fills that gap by saying the PDF is written to disk and the file path returned. It also discloses two non-effects (no pre-postagem mutation, no charge), which is exactly the kind of context annotations cannot carry. It does not explain failure/timeout behavior of the async wait, keeping it below a 5.

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 dense sentence front-loads the purpose and file output, followed by a short constraint clause. The parenthetical endpoint pair (POST .../assincrono/pdf + GET .../download/...) is implementation detail that is borderline waste for an agent, though it does hint at the async two-step flow.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists and the description still names the return value (file path), and the async wait is covered by the aguardar_segundos parameter plus the async endpoint hint. Prerequisites and side effects are both stated, leaving nothing an agent needs in order to call it correctly.

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 all seven parameters, including the three enums, are already documented in the schema. The description adds only the implicit 'registered/pre-posted' constraint on the object code and pre-postagem ID lists, with no additional format or interaction guidance. Baseline 3 is appropriate when the schema does the heavy lifting.

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 artifact: generates a PDF postage label for REGISTERED objects that are already pre-posted, and returns the file path. The scope restriction (only pre-posted/registered objects) meaningfully separates it from generic label or download tools. It does not name a sibling such as correios_rotulo_baixar, 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 Guidelines4/5

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

The precondition 'objetos REGISTRADOS já pré-postados' tells the agent when this tool is applicable, and 'Não altera a pré-postagem nem gera cobrança' rules out expecting state changes or billing. No explicit alternative tool is named for the case where objects are not yet pre-posted, so it stops at clear context without exclusions.

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