Skip to main content
Glama
Correios MCP Server

Correios MCP Server

by fabianoomura

Declaração de conteúdo

correios_declaracao_conteudo
Idempotent

Generates a printable content declaration for pre-postage shipments without an invoice and saves it as HTML, using pre-postage IDs or object codes.

Instructions

Gera a declaração de conteúdo (impressa, para envio sem NF) e salva em HTML (GET …/declaracaoconteudo/{ids}). Só existe para pré-postagens criadas com itens de declaração.

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

Input Schema

NameRequiredDescriptionDefault
tamanho_folhaNoTamanho da folha.
codigos_objetoNoCódigos dos objetos.
ids_prepostagemNoOu IDs das pré-postagens.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations flag readOnlyHint=false and idempotentHint=true, so the safety profile is already partly covered; the description adds real context by disclosing that the operation produces a printed declaration saved in HTML and that it is a GET against …/declaracaoconteudo/{ids}. The eligibility constraint is also behavioral information not derivable from the schema. It does not say where the HTML is saved or whether it fails for ineligible pré-postagens, which keeps it from 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?

Two sentences, front-loaded with the action and artifact, followed by format, endpoint, and the eligibility constraint. Nothing is redundant, though the parenthetical-heavy phrasing and line break make it slightly harder to scan than necessary.

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, return values need no explanation, and the description covers purpose, output format, endpoint, and eligibility. The main remaining gap is practical: what happens when the pré-postagem lacks declaration items, and where the generated HTML ends up. Those are minor given the structured fields already supplied.

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 the three parameters are already documented. The description only hints at the {ids} path segment, without clarifying the relationship between codigos_objeto and ids_prepostagem (the schema itself presents them as alternatives). Baseline 3 applies since the schema carries the parameter burden.

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 pairs a specific verb ('Gera a declaração de conteúdo') with a clearly identified artifact, and adds the crucial qualifier that this is the printed variant for shipments without an invoice (NF) that is saved as HTML. That distinguishes it from a generic document generation tool, but it never names a sibling (e.g. correios_dace_imprimir) or explicitly contrasts with any other label-printing tool.

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?

It states an explicit precondition: 'Só existe para pré-postagens criadas com itens de declaração,' which tells the agent exactly when the call is valid. It gives no alternative or when-not guidance beyond that eligibility constraint, so it stops short of full routing guidance.

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