Skip to main content
Glama

Vereador e prefeito 2024 (TSE, by PoliticAI)

Votos para vereador em um município

consultar_municipio
Read-only

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 observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds real context beyond that: the source (TSE, compiled by PoliticAI), the fixed 2024 election year, and a detailed inventory of the computed indicators, which substitutes for the absent output schema. It does not discuss caching, data freshness, or behavior for municipalities with no data.

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?

A single sentence front-loads the core question and then lists the indicators, ending with the source attribution. The metric enumeration is long but every item is substantive, and there is no filler or repetition.

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 no output schema and only two simple required parameters, the definition is largely self-sufficient: it discloses the metric set, the election year, and the data source. The main residual gap is the absence of any note on output shape or handling of municipalities lacking data.

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%, so both parameters are already fully documented, including the note that DF elects no councillors. The description adds only the fixed 2024 scope and does not clarify matching behavior (accents, partial names) or whether uf is validated against municipio — 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 vintage — votes and money that elected a councillor in 2024 in a given municipality — and enumerates the metrics returned (seats, electoral quotient, 10% threshold, cost per vote, etc.). It is clearly not a lookup or comparison tool, though it never explicitly contrasts itself with siblings like buscar_municipio or comparar_municipios.

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 only implied by the topic: an agent can infer this is for municipal councillor election outcomes in one municipality. There is no explicit when-to-use statement, no exclusion of the comparison or national-summary siblings, and no stated prerequisite beyond the required municipio/uf.

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.