Skip to main content
Glama

consultar_cep

Read-onlyIdempotent

Retrieve a Brazilian address from an 8-digit CEP postal code using ViaCEP, with or without a hyphen. Use it to resolve postal codes into street, neighborhood, city, and state details.

Instructions

Consulta endereço brasileiro pelo CEP na API ViaCEP.

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 brasileiro com 8 dígitos, com ou sem hífen; ex.: 01001-000

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world behavior, so the safety profile is covered. The description adds meaningful context by naming the ViaCEP external service, but says nothing about failure behavior for an invalid or nonexistent CEP, latency/availability of the third-party API, or what address fields come back.

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?

One short, front-loaded sentence with no filler; the resource and the data source come first. It is efficient but so terse that it omits any supplementary guidance, which is a limit on structure rather than verbosity.

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 takes one well-documented parameter and is fully covered by annotations for safety and idempotency, so the description only needs to say what lookup is performed — which it does. The absence of an output schema is the only remaining gap, and that is minor for a simple address lookup.

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?

There is a single parameter with 100% schema description coverage, including a regex pattern and an example format, so the schema carries the parameter documentation. The description adds no extra meaning such as acceptance of leading zeros or handling of malformed input, which is the expected baseline for a fully covered schema.

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 specific verb (consulta) and resource (endereço brasileiro pelo CEP) and even names the upstream data source (API ViaCEP), so an agent knows exactly what data it will get back. It does not explicitly contrast itself with the sibling tools consultar_endereco or verificar_status, which keeps it from 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?

The use case — resolving a Brazilian postal code to an address — is strongly implied by the wording, but there is no explicit statement of when to prefer this over consultar_endereco (which suggests a broader or different address lookup) or any prerequisite/exclusion. Usage is inferred rather than guided.

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

Deploy Server

Other Tools