Skip to main content
Glama

Estado e cidades do DDD

lookup_area_code
Read-onlyIdempotent

O estado e as cidades atendidas por um DDD (código de área de telefone do Brasil, de 11 a 99).

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": {
      "ddd": "<ddd>"
    },
    "name": "lookup_area_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
dddYesO DDD, com dois dígitos: "11", "61". Aceita "(11)".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered without the description. The description adds only that the result covers both a state and its cities, and says nothing about result shape, error behavior for an invalid DDD, or coverage completeness.

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?

The definition is a single front-loaded sentence with no redundant phrasing; the defining detail (Brazilian phone area code) and the value range are packed into the parenthetical. Nothing could be removed without losing information.

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?

For a one-parameter, read-only lookup with rich annotations, the description covers what the tool is keyed on and roughly what it returns (state plus cities). With no output schema present, a brief note on the actual return structure (e.g. list of city names, state name/UF) would have closed the remaining gap.

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%, so the schema already documents the single ddd parameter, including acceptance of the "(11)" format. The description adds meaning beyond that by giving the valid numeric range (11 to 99), which is a real constraint not present in the schema. That justifies a score above the high-coverage baseline of 3.

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 and return content: the state and cities covered by a given Brazilian DDD. This is clearly distinguishable from siblings such as lookup_postal_code or lookup_bank because the keyed resource (phone area code) is stated. It lacks an explicit verb, but the purpose 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 Guidelines3/5

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

Usage is implied rather than stated: the parenthetical defines DDD as a Brazilian telephone area code in the 11-99 range, which tells an agent the applicable domain. There is no explicit when-to-use, when-not-to-use, or pointer to an alternative sibling, so the agent must infer the routing itself.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources