Skip to main content
Glama

tse_partidos_federacoes

Summarizes party and federation nominal/legend vote totals and elected candidate counts from TSE EA20 -u.json for office, state, and cycle comparisons.

Instructions

Summarize party and federation nominal/legend vote totals and elected candidate counts from TSE EA20 -u.json.

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": {
      "cargo": "<cargo>"
    },
    "name": "tse_partidos_federacoes"
  }
}

Input Schema

NameRequiredDescriptionDefault
ufNo2-letter state UF ('sp', 'rj', 'df', etc.) or 'br' (presidente only)
cargoYesElectoral office
cicloNoElectoral cycle identifier (auto-resolved by cargo if omitted: 'ele2024' for prefeito/vereador, 'ele2026' for presidente/governador/senador/deputado_*)
limitNo
partidoNoOptional party acronym, name, or number filter
codigo_eleicaoNoNumeric TSE election code (auto-resolved by cargo if omitted: '619' for municipal in ele2024, '6259' for state offices in ele2026, '6257' for presidente in ele2026)
codigo_tse_municipioNo5-digit TSE municipality code (required for prefeito and vereador)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden. "Summarize" implies a read-only aggregation, but it does not disclose ordering, truncation via limit, whether results are ranked or grouped, or how the file-based source behaves. For a 7-parameter aggregation tool this is a notable gap.

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 front-loaded sentence with no filler. It is efficient, though the density of unexplained domain acronyms slightly reduces immediate comprehension.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 7 parameters, no output schema, no annotations, and a domain-specific data source, one sentence is thin. An agent gets no information about grouping/ordering of results, the meaning of nominal vs legend votes, or how limit interacts with party filters.

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 86%, so the schema already defines uf, cargo, ciclo, limit, partido, codigo_eleicao, and codigo_tse_municipio. The description adds no parameter meaning beyond noting the EA20 source, which is a baseline-3 situation.

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?

States a specific verb ("Summarize") and specific outputs (party and federation nominal/legend vote totals, elected candidate counts) drawn from a named source (TSE EA20 -u.json). This clearly separates it from siblings like tse_candidatos_busca and tse_apuracao_cargo, though the jargon "nominal/legend" is left unexplained.

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?

The description says nothing about when to choose this tool over tse_apuracao_cargo or tse_candidatos_busca, nor does it state prerequisites such as needing codigo_tse_municipio for prefeito/vereador. Usage is only inferable from the tool name and output summary.

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