Skip to main content
Glama

Vereador e prefeito 2024 (TSE, by PoliticAI)

Buscar município

buscar_municipio
Read-only

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 observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds genuine behavior beyond that: partial and accent-insensitive matching, plus the exact fields returned including the 2024 electorate vintage. It does not say how ambiguous or zero matches are handled (single best hit vs. list), which is the main behavioral gap for a fuzzy search.

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, both load-bearing: the first covers what it does and what it returns, the second covers when to call it. The sequencing advice is front-loaded after the core definition, with no filler.

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, non-destructive lookup with no output schema, the description covers purpose, inputs, matching rules, and return values, which is enough to call it correctly. The only missing piece is match-cardinality behavior (multiple or no results), a small but real gap.

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?

Schema coverage is 100% and both parameters are documented in the schema, including accent tolerance for nome and the UF sigla example. The description's note about partial/accented matching largely restates the schema rather than adding new syntax or constraint detail. Baseline 3 applies when the schema carries the semantics.

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 and resource ("Acha municípios pelo nome"), adds the matching mode (parcial, com ou sem acento) and the exact return payload (nome exato, UF, eleitorado de 2024). It clarifies the tool's role as a resolver ahead of the other tools, but it never names a sibling such as consultar_municipio or comparar_municipios, so differentiation stays implicit.

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?

Explicit guidance is given: use this before the other tools when the spelling or the UF is unknown. That also implies the inverse condition (skip it when you already have the exact name/UF). No named alternative is offered for those other cases, which keeps it short of a 5.

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.