Skip to main content
Glama

Look up an address by CEP

lookup_cep
Read-onlyIdempotent

Retrieves street, neighborhood, city, state, IBGE city code, and coordinates for a Brazilian postal code (CEP) through BrasilAPI.

Instructions

Street, neighborhood, city, state, IBGE city code and coordinates for a Brazilian postal code (CEP), via BrasilAPI.

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": "lookup_cep"
  }
}

Input Schema

NameRequiredDescriptionDefault
cepYesCEP, for example "01001-000" or "01001000"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is covered. The description adds useful context by naming BrasilAPI as the upstream source, signaling third-party/network dependency and data authority. It does not explain behavior on an invalid or nonexistent CEP (error vs. empty result), which is the main remaining gap.

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, front-loaded with the returned payload and ending with the data source. Every clause carries information; nothing is repeated from the title or annotations.

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 takes on the job of enumerating return fields, which it does thoroughly. For a one-parameter read-only lookup this is nearly complete; only error/not-found behavior is left unaddressed.

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 100% and the schema supplies concrete examples ("01001-000" and "01001000"), so the baseline is 3. The description earns an extra point by spelling out that CEP means Brazilian postal code, which the schema never states, making the input's context unmistakable. No further syntax constraints (length, digit-only rules) are added beyond the examples.

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 names a specific resource (a Brazilian postal code / CEP) and enumerates exactly what is returned: street, neighborhood, city, state, IBGE city code and coordinates, plus the backing source (BrasilAPI). An agent can distinguish it from siblings like lookup_cnpj or validate_cpf at a glance, though the verb is implied rather than stated ('look up' appears only in the title).

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 implied rather than stated: give a CEP, receive address data. There is no explicit when/when-not guidance, no mention of how it differs from validate_cnpj or the other siblings, and no note that a separate validation tool is unnecessary because this already resolves the CEP. Adequate for a single-purpose lookup but with clear conceptual gaps.

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