Skip to main content
Glama

Look up CEP

lookup_cep
Read-onlyIdempotent

Look up a Brazilian postal code (CEP) and retrieve its address details via BrasilAPI for validating and completing address data.

Instructions

Address 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
cepYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=true and destructiveHint=false, so the safety and network profile is covered structurally. The description adds one genuinely useful piece of context beyond that: the external provider (BrasilAPI), which matters for latency and availability assumptions. It says nothing about what happens with an invalid or malformed CEP, which is the main behavioral risk for this call.

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?

The description is a single tightly packed fragment with no waste, and the resource (CEP) is front-loaded. It is arguably over-terse in that it omits a verb entirely, but nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter lookup with rich safety annotations and no output schema, the definition covers what the tool is and where the data comes from, but leaves the input format and the returned address fields unspecified. An agent can call it, but may guess wrong on CEP formatting.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%: the single required parameter 'cep' has only minLength 1 and maxLength 12, with no pattern and no description. The description does not compensate by stating the expected format (digits only vs. '12345-678' with a hyphen), which is exactly the ambiguity the length bounds invite.

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 resource pairing: a Brazilian postal code (CEP) resolved to an address. The verb is elided into a noun fragment, but the effect is still unambiguous, and the sibling tools (lookup_cnpj, parse_boleto, validate_cpf) operate on entirely different resources, so confusion is unlikely.

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 when-to-use or when-not-to-use guidance, and no alternative is named. The nearest sibling, lookup_cnpj, is a different resource so no disambiguation is strictly needed, but the description gives no context about prerequisites, valid input, or failure cases.

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