Skip to main content
Glama
Correios MCP Server

Correios MCP Server

by fabianoomura

Localidades (municípios, distritos, lockers…)

correios_localidades
Read-onlyIdempotent

Query Brazilian postal localities by state, name, or special service to retrieve municipalities, districts, villages, parent locality, and neighborhoods for CEP-based address lookup and validation.

Instructions

Localidades da base de CEP — municípios, distritos e povoados, com a localidade superior e os bairros (GET /cep/v1/localidades[/{uf}] ou /cep/v1/localidades/{lockers|cliques|…}).

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

Input Schema

NameRequiredDescriptionDefault
ufNoSigla da UF.
nomeNoNome (ou parte) da localidade.
paginaNo
tamanhoNo
especialNoLista só localidades com o recurso: lockers, cliques (Clique e Retire), caixas postais comunitárias ou agências modulares.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 safety behavior is covered. The description usefully adds what the dataset contains (upper locality plus neighborhoods) and enumerates the special resource filters, but says nothing about pagination behavior or result volume despite pagina/tamanho existing.

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?

A single front-loaded sentence that packs the resource, contents, and endpoint forms with no filler. The parenthetical endpoint list with "…" is slightly compressed/ambiguous, but nothing is wasted.

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 read-only, zero-required-parameter listing tool with no output schema, the description covers what the data represents and what each record includes, which is the main thing an agent needs. The absence of any pagination or response-size note is the only real gap.

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 60%, and the description compensates for the two undescribed dimensions by explaining the uf path variant and the special-resource meanings (lockers, cliques, caixas postais comunitárias, agências modulares) that the enum alone only names. Pagination parameters remain undocumented anywhere, which prevents a 5.

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 states a concrete resource ("Localidades da base de CEP — municípios, distritos e povoados") and what each record carries ("localidade superior e os bairros"). It is clearly distinct from obvious alternatives like a plain CEP lookup or bairros listing, though it never names a sibling to contrast with, which keeps it 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?

Usage is only implied through the endpoint shapes: base listing, optional UF scoping, or a special-resource view. There is no explicit statement about when to choose this over correios_bairros, correios_cep, or correios_agencia_localidades, so the agent must infer routing from the URL patterns alone.

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