Skip to main content
Glama
sucorrea

ViaCEP Brasil MCP Server

by sucorrea

buscar_cep_por_endereco

Search Brazilian postal codes (CEP) using state, city, and street address. Returns up to 50 matching codes, ordered by proximity, when the CEP is unknown.

Instructions

Pesquisa CEPs brasileiros a partir de informações de endereço: UF (sigla do estado), cidade e logradouro (nome da rua/avenida/etc). Retorna até 50 CEPs correspondentes, ordenados pela proximidade do nome do logradouro. Útil quando o CEP não é conhecido mas o endereço sim.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ufYesSigla do estado brasileiro com 2 letras maiúsculas (ex: SP, RJ, RS, MG, BA).
cidadeYesNome da cidade/município. Mínimo de 3 caracteres. Exemplo: 'São Paulo', 'Porto Alegre', 'Rio de Janeiro'.
logradouroYesNome do logradouro (rua, avenida, praça, etc). Mínimo de 3 caracteres. Exemplo: 'Paulista', 'Domingos José'.
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses two key behaviors: the result cap ('Retorna até 50 CEPs') and the ordering ('ordenados pela proximidade do nome do logradouro'). It does not mention error behavior, edge cases, or any authentication needs, but for a simple search tool, this is acceptable.

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?

The description is exactly two sentences, front-loaded with the core purpose, and every sentence adds value. There is no redundant wording or unnecessary detail.

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 simple 3-parameter search tool with no annotations and no output schema, the description covers the essential aspects: what it does, the inputs, the output cap, ordering, and when to use it. It does not detail the exact output structure, but that is not necessary given the tool's simplicity.

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 the baseline is 3. The description paraphrases each parameter (UF, cidade, logradouro) but does not add meaningful new information beyond what the schema already provides. It reinforces the Brazilian context but nothing more.

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 opens with a specific verb and resource: 'Pesquisa CEPs brasileiros a partir de informações de endereço'. It explicitly lists the three required inputs (UF, cidade, logradouro) and the output (até 50 CEPs). Since the sibling tool does the reverse (CEP -> endereço), this description clearly distinguishes itself.

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?

The final sentence provides explicit guidance: 'Útil quando o CEP não é conhecido mas o endereço sim.' This tells the agent when to use this tool. However, it does not explicitly name the alternative tool (buscar_endereco_por_cep), relying on the sibling name for inference, which is a minor gap.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sucorrea/viacep-brasil-mcpserver'

If you have feedback or need assistance with the MCP directory API, please join our Discord server