Skip to main content
Glama
Correios MCP Server

Correios MCP Server

by fabianoomura

Alterar validade da logística reversa

correios_logistica_reversa_validade
Destructive

Extends or changes the validity date of a reverse logistics pre-postage authorization via the Correios API. Use it to update expired return shipping labels, with write access and user confirmation required.

Instructions

⚠️ ESCRITA — prorroga/altera a validade de uma logística reversa (PATCH …/{id}/logisticareversa). Exige CORREIOS_ENABLE_WRITES=true e confirmação do usuário.

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_prepostagem": "<id_prepostagem>",
      "nova_validade": "<nova_validade>"
    },
    "name": "correios_logistica_reversa_validade"
  }
}

Input Schema

NameRequiredDescriptionDefault
nova_validadeYesNova data de validade da autorização de postagem.
id_prepostagemYesID da pré-postagem de logística reversa.

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 already flag destructive=true, readOnly=false and non-idempotent, so the safety profile is covered. The description still adds value by disclosing the environment-flag requirement and the mandatory user-confirmation step, plus the exact endpoint verb — real operational context not present in structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short lines, with the write warning and emoji front-loaded ahead of the mechanics. Every clause carries distinct information: warning, action, endpoint, env flag, confirmation.

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 a two-parameter destructive write with no output schema, the definition covers action, target, endpoint, and prerequisites adequately. Minor gaps remain — nothing on failure behavior, whether the change is reversible, or expected response — but nothing essential to invoking it 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 description coverage is 100%, so both required parameters (id_prepostagem, nova_validade) are already fully documented in the schema. The description only alludes to the id via '…/{id}' and adds no format, constraint, or validation detail for the new validity date; baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb (prorroga/altera), a specific resource (validade de uma logística reversa), and even the underlying HTTP method and path (PATCH …/{id}/logisticareversa). An agent can immediately tell this mutates an existing reverse-logistics authorization's expiry, which none of the listed siblings do.

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?

It states two hard preconditions — CORREIOS_ENABLE_WRITES=true and explicit user confirmation — which is genuinely actionable gating information. However, it gives no when-not-to-use guidance or contrast with any alternative sibling, so usage selection is only implied.

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