Skip to main content
Glama

Buscar município

buscar_municipio
Read-only

Finds Brazilian municipalities by partial or full name, with or without accents, returning exact name, state (UF), and 2024 electorate to confirm the correct location before election queries.

Instructions

Acha municípios pelo nome (parcial, com ou sem acento) e devolve nome exato, UF e eleitorado de 2024. Use antes das outras ferramentas quando não souber a grafia ou a UF.

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": {
      "nome": "<nome>"
    },
    "name": "buscar_municipio"
  }
}

Input Schema

NameRequiredDescriptionDefault
ufNoSigla do estado, ex.: SP, MT, RO. O DF não elege vereador.
nomeYesNome do município, com ou sem acento.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.4/5.0
Behavior4/5

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

The readOnlyHint=true annotation is consistent with a pure lookup. Beyond the annotation, the description adds genuinely new behavioral facts: matching is partial and accent-insensitive, and the payload includes exact name, UF and 2024 electorate. It stops short of describing ambiguity handling or result limits, which keeps it from a 5.

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?

Two sentences, front-loaded with the action and result, followed by a routing instruction. No filler, no restatement of the tool name.

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 two-parameter read tool with full schema coverage, no output schema and a safety annotation, the description covers action, matching rules, returned fields and when to call it. The only gap is what happens on ambiguous or zero matches.

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 baseline is 3. The description still adds meaning beyond the schema by stating that the name may be supplied partially, something the schema's 'com ou sem acento' wording does not cover, and by framing the UF as an optional disambiguator.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource ('Acha municípios pelo nome'), specifies matching semantics (partial, accent-insensitive) and even what it returns (exact name, UF, 2024 electorate). An agent can immediately tell this is the name-resolution entry point rather than a comparison or aggregate tool like its siblings.

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

Usage Guidelines4/5

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

'Use antes das outras ferramentas quando não souber a grafia ou a UF' gives a clear triggering condition and relative ordering versus the other tools. It does not state any when-not-to-use case, but the intended context is unambiguous.

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