Skip to main content
Glama

Eleição de prefeito em um município

consultar_prefeito
Read-only

Query 2024 mayoral election outcomes by municipality and state, including winner, runoff, vote share, margin, spending, and cost per vote.

Instructions

Como foi a eleição de prefeito de 2024 no município: turno em que se decidiu, partido do eleito, votos e % dos válidos do eleito, votos do segundo colocado, margem em pontos e em votos, se o eleito também tinha sido eleito em 2020, gasto do eleito e do segundo, custo por voto e peso do fundo eleitoral, com notas de leitura. 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_prefeito"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.1

TDQS

B3.2/5.0
Behavior3/5

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

readOnlyHint=true already establishes this is a safe read. The description does add value beyond annotations by stating provenance (TSE, compiled by PoliticAI), fixing the data to the 2024 cycle, and flagging 'notas de leitura' and 'se o eleito também tinha sido eleito em 2020' — implying derived/annotated content. It does not say what happens for municipalities without a runoff, without data, or how missing gasto figures appear.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Everything is packed into a single comma-chained sentence of roughly a dozen clauses, which hurts scannability and front-loading. With no output schema the field enumeration does earn its place, but it should have been structured (e.g., split into purpose + returns) rather than run on as one list.

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 no output schema, the description covers the return surface thoroughly — runoff decision, winner's party/votes/percentage, runner-up votes, margin, re-election status, spending, cost-per-vote, and party-fund weight. The remaining gap is the absence of any usage or edge-case guidance.

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% and both parameters (uf, municipio) are already documented with examples and an accent-insensitivity note, so the description need not compensate. It adds only the implicit fact that the election year is fixed at 2024 rather than parameterized, which is a minor but useful clarification.

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 opening phrase 'Como foi a eleição de prefeito de 2024 no município' names a specific resource (2024 mayoral election result for one municipality), which is distinguishable from the comparar_* and resumo_* siblings. However, it never explicitly contrasts itself with those siblings, and the body drifts from purpose into an output-field inventory.

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 statement of when to use this versus comparar_prefeitos, resumo_prefeitos, or consultar_municipio. The only scoping hint ('O DF não elege prefeito') lives in the schema, not the description, so an agent gets no routing guidance from the description itself.

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