Skip to main content
Glama

Consultar CEP

consultar_cep
Read-onlyIdempotent

Looks up Brazilian address details by CEP, returning street, neighborhood, city, state, IBGE municipality code, and coordinates when available.

Instructions

Devolve logradouro, bairro, cidade, UF, código IBGE do município e, quando houver, latitude e longitude de um CEP.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "cep": "<cep>"
    },
    "name": "consultar_cep"
  }
}

Input Schema

NameRequiredDescriptionDefault
cepYesCEP com ou sem hífen, ex.: 90010-000

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds one genuinely useful behavioral detail — that latitude/longitude are only returned 'quando houver' — but says nothing about failure behavior for malformed or not-found CEPs.

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?

One sentence, no filler, and the return contents are front-loaded so an agent can judge relevance immediately.

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?

With no output schema, the description correctly carries the return-value burden by enumerating the fields returned and flagging the optional coordinates. It stops short of covering error/not-found outcomes, which is the only notable gap for this simple lookup.

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?

There is a single parameter with 100% schema description coverage, including the format example '90010-000' and the note that the hyphen is optional. Baseline for a fully documented one-parameter schema is 4; the description adds nothing extra, but nothing is needed.

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 precisely what the tool returns for a CEP (street, neighborhood, city, UF, IBGE code, and optional lat/long), which is a specific resource lookup rather than a restatement of the name. It does not differentiate from siblings like consultar_cnpj, but the resource itself is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no guidance on when to use this tool, when not to, or what to do for invalid/unknown CEPs. Usage is only implied by the tool's domain, and no alternative or prerequisite is mentioned.

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