Skip to main content
Glama
Correios MCP Server

Correios MCP Server

by fabianoomura

Buscar agências

correios_agencias
Read-onlyIdempotent

Find Correios agencies and service units by location, CEP, or tracking code; retrieve addresses, opening hours, available services, and operational status for pickup or shipment planning.

Instructions

Agências, AGFs e demais unidades de atendimento: endereço, horário, serviços e status (GET /agencia/v1/unidades). Dica: para saber onde um objeto 'aguardando retirada' está, use o codigo_sro ou a cidade do evento de rastreio.

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

Input Schema

NameRequiredDescriptionDefault
ufNoSigla da UF.
nomeNoParte do nome da unidade.
tipoNoCódigo do tipo de unidade (ver correios_agencia_dominios; ex.: 09 agência própria, 12 AGF).
bairroNoBairro.
paginaNo
statusNoCódigo do status (ex.: 2 instalado).
tamanhoNo
municipioNoMunicípio.
codigo_sroNoCódigo SRO da unidade (aparece nos eventos de rastreio).
cep_referenciaNoCEP para achar as unidades próximas/da região.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds that it hits a GET endpoint and what categories of data come back, but says nothing about pagination behavior or result-size limits despite the schema exposing 'pagina' and 'tamanho' (default 20, max 100).

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: the first front-loads what the tool returns, the second is a clearly marked tip. The trailing parenthetical endpoint is developer-facing rather than agent-facing, but it is short and does not obscure the main content.

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

Completeness3/5

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

For a 10-parameter, all-optional filter tool with no output schema, the description does name the returned data categories, which partially compensates for the missing output schema. However, it never states that all filters are optional and combinable, nor how paging should be driven, leaving the agent to infer invocation strategy from the schema alone.

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 80%, so the schema already explains uf, nome, tipo, bairro, status, municipio, codigo_sro and cep_referencia. The description's only parameter-relevant content is the tip about codigo_sro and city, which largely restates the schema note that the SRO code 'aparece nos eventos de rastreio'. Baseline 3 is appropriate.

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 the resource precisely ('Agências, AGFs e demais unidades de atendimento') along with the fields returned (endereço, horário, serviços, status) and the underlying endpoint (GET /agencia/v1/unidades), so the agent knows this is a search/list tool for service units. It does not explicitly contrast itself with the singular sibling 'correios_agencia' or 'correios_agencia_localidades', which is why 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 Guidelines3/5

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

The 'Dica' sentence gives one concrete usage scenario — locating where an object 'aguardando retirada' is — and tells the agent to use codigo_sro or the city from the tracking event. Beyond that there is no guidance on when to prefer this over the singular agency tool, the domain-lookup tool, or the locality tool, so the routing guidance is implied rather than explicit.

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