Skip to main content
Glama

Votos para vereador em um município

consultar_municipio
Read-only

Retrieves 2024 Brazilian city council election metrics for a municipality and state, including votes, seats, electoral quotient, campaign spending, cost per vote, and turnout.

Instructions

Quantos votos e quanto dinheiro elegeram um vereador em 2024 no município: cadeiras, quociente eleitoral, votação mínima de 10%, votação do último eleito, mais votado sem vaga, comparecimento, candidatos por vaga, gasto mediano de eleitos e não eleitos, custo por voto e peso do fundo eleitoral. Fonte: TSE, compilado pelo PoliticAI.

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": {
      "municipio": "<municipio>",
      "uf": "<uf>"
    },
    "name": "consultar_municipio"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description carries most of the burden and does add real context: the data vintage (2024), the election type (vereador), and provenance (TSE, compiled by PoliticAI). It does not cover behavior for unknown or invalid municipalities, but for a simple read query the disclosure is solid.

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?

Compact: one dense sentence enumerating the returned metrics plus a one-line source attribution. The metric enumeration is long and ungrouped, but every item carries information and the tool's subject is stated up front, so little waste remains.

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 only two required string parameters, one read-only annotation, and no output schema, the description does the necessary work by enumerating what the response contains and citing the data source and year. What is missing (error behavior for unknown municipalities, whether results are cached) is minor for this complexity.

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 description coverage is 100%: the uf and municipio parameters are already documented, including the note that DF does not elect councilors and that accents are optional. The description adds no parameter-level meaning beyond that, so the baseline 3 applies.

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 scope: councilor (vereador) election results for one municipality in 2024, and enumerates the metrics returned (seats, quociente eleitoral, 10% threshold, cost per vote, fund weight). This is clearly distinct from siblings like comparar_municipios or resumo_nacional by the single-municipality dossier framing, though it never explicitly contrasts itself with buscar_municipio.

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 by the metric list: an agent can infer this is the tool for detailed councilor-election data on a specific city. However, there is no explicit when-to-use statement, no mention of when to prefer comparar_municipios or resumo_nacional, and no prerequisites beyond the schema's own DF caveat.

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