Skip to main content
Glama
Correios MCP Server

Correios MCP Server

by fabianoomura

Buscar endereço / CEP por logradouro

correios_buscar_endereco
Read-onlyIdempotent

Find Brazilian postal codes (CEPs) by state, city, neighborhood, or street, or list a CEP range to locate and validate address data.

Instructions

Busca reversa: descobre CEPs a partir de UF/cidade/bairro/rua, ou lista uma faixa de CEPs (GET /cep/v2/enderecos). Informe ao menos UF + localidade, ou uma faixa.

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

Input Schema

NameRequiredDescriptionDefault
ufNoSigla da UF.
bairroNoBairro.
paginaNoPágina (começa em 0).
tamanhoNoItens por página (máx. 2000).
tipo_cepNoTipo de CEP (1 localidade, 2 logradouro, 3 grande usuário, 4 unidade operacional, 5 caixa postal…).
cep_finalNoFim de faixa de CEP.
localidadeNoCidade/localidade.
logradouroNoParte do nome da rua (sem o tipo, ex.: 'Paulista').
cep_inicialNoInício de faixa de CEP.

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?

The annotations already cover safety (readOnly, idempotent, non-destructive) and open-world scope, so the description is not burdened with that. It adds non-obvious behavioral context the annotations cannot convey: the underlying GET /cep/v2/enderecos endpoint and the minimum-input rule ('at least UF + localidade, or a range'), which implies the call fails when neither combination is supplied. It stops short of describing result shape or pagination behavior.

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 tight sentences, zero filler. The purpose and the 'or' alternative are front-loaded, and the endpoint path sits in a parenthetical so it does not interrupt the main instruction.

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 nine-parameter, zero-required tool with no output schema, the critical missing piece is the input-validity rule, and the description supplies it. The gap is that it does not tell the agent what comes back (a CEP list with addresses?) or how page/size affect results, which matters given pagination defaults exist.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description adds meaning the schema does not: it groups the nine optional parameters into two coherent query modes and states the minimum required combination, which is invisible in a schema where all parameters default to null and none are required. It does not clarify how the pagination parameters interact with range queries.

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 opens with a concrete verb and resource ('Busca reversa: descobre CEPs'), and the 'reversa' framing implicitly contrasts it with the forward CEP lookup offered by siblings like correios_cep. It also carves out two distinct modes (address-based discovery vs. CEP-range listing), but it never names an alternative tool, so the differentiation is left implicit.

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 clause 'Informe ao menos UF + localidade, ou uma faixa' gives a real precondition and signals the two valid invocation modes, which is more than most definitions offer. However, it does not say when to prefer this over correios_cep, correios_bairros, or correios_localidades, so the agent must infer the choice from tool names alone.

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