Skip to main content
Glama
Correios MCP Server

Correios MCP Server

by fabianoomura

Rastrear objetos

correios_rastrear
Read-onlyIdempotent

Track up to 50 Brazilian postal objects at once and retrieve normalized status, delivery forecasts, measurements, and recent location events from Correios.

Instructions

Rastreia até 50 objetos de uma vez (GET /srorastro/v1/objetos).

Por objeto devolve situacao normalizada (postado, em_transito, saiu_para_entrega, aguardando_retirada, tentativa_ou_ocorrencia, em_devolucao, entregue, sem_eventos), serviço, previsão de entrega, peso/medidas aferidos e os eventos (mais recente primeiro) com local. 'sem_eventos' em objeto pré-postado é normal: confira com correios_prepostagem_consultar. O SRO só mostra objetos vinculados ao contrato da credencial.

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": {
      "codigos": "<codigos>"
    },
    "name": "correios_rastrear"
  }
}

Input Schema

NameRequiredDescriptionDefault
brutoNotrue devolve a resposta original do SRO, sem resumir.
codigosYes1 a 50 códigos de objeto (AA123456789BR).
resultadoNoT = todos os eventos; U = só o último; P = primeiro e último.T

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, openWorld), and the description adds substantive context beyond them: the normalized `situacao` vocabulary with all eight values, per-object delivery forecast and measured weight/dimensions, event ordering (most recent first), and the credential/contract scoping limitation that will silently produce empty results.

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?

Front-loaded with the core action and limit, then return shape, then caveats. The enumerated situacao list is long but is genuinely useful output vocabulary; otherwise there is little waste.

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?

No output schema exists, so the description must carry return-value semantics — and it does, covering the status vocabulary, ordering of events, and the extra per-object attributes. Combined with the contract-scope caveat, an agent has enough to call it and interpret results 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 codigos, bruto and resultado are already documented with their enum/default semantics. The description only echoes the 1–50 batch limit and adds no new meaning about how parameters interact or behave.

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?

States a specific verb and resource ("Rastreia ... objetos") plus the batch limit of 50 and the underlying endpoint GET /srorastro/v1/objetos. This is clearly a tracking tool, distinguishable from sibling tools like correios_prepostagem_consultar or correios_cotar_frete.

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?

Gives a concrete routing rule: 'sem_eventos' on a pre-posted object is normal, so confirm with correios_prepostagem_consultar. It also states an eligibility precondition (the SRO only shows objects linked to the credential's contract). No explicit when-not guidance beyond that, so not a 5.

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