Skip to main content
Glama

Lookup Brazilian Address (CEP)

gov.brasilapi.cep
Read-onlyIdempotent

Look up a Brazilian address by 8-digit CEP code. Returns street, neighborhood, city, state, coordinates, and timezone.

Instructions

Look up a Brazilian address by 8-digit CEP postal code — returns street, neighborhood, city, state, coordinates, timezone. BrasilAPI MIT

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cepYesBrazilian postal code (CEP) — 8 digits with or without dash (e.g. "01001000" or "01001-000"). Returns street, neighborhood, city, state, coords, timezone.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
Behavior3/5

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

Annotations indicate readOnlyHint=true and idempotentHint=true, so the behavior is safe. The description adds that it returns specific address components and timezone, which is useful but largely echoes the parameter description in the input schema. No contradictions; the description aligns with annotations and provides moderate extra context beyond the schema.

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?

A single sentence that clearly states the purpose and return data, followed by a brief source attribution. No extraneous information; every part adds value. The description is front-loaded and efficient.

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?

The tool has only one required parameter and an output schema (not shown but implied). The description covers the core functionality, input format, and output fields. It is sufficient for an agent to decide whether to use this tool and how to invoke it 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 coverage is 100% with a single parameter 'cep' that already includes a detailed description (format, examples, return fields). The tool description essentially reiterates the schema info ('8-digit CEP postal code'), adding only the phrase 'with or without dash' which is already in the schema. Baseline of 3 is appropriate as the schema carries the semantic burden.

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 explicitly states the verb 'Look up' and the resource 'Brazilian address by 8-digit CEP postal code', and mentions the return fields (street, neighborhood, city, state, coordinates, timezone). Title reinforces the specific country (Brazil). It clearly distinguishes from other address tools by specifying the CEP system.

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 description explains what the tool does and implies its use for Brazilian addresses via CEP, but it does not provide explicit guidance on when to use this tool versus alternatives (e.g., other address lookup tools like address.postal.lookup or gov.brasilapi.ddd). No exclusions or when-not-to-use context are provided.

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/whiteknightonhorse/APIbase'

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