Skip to main content
Glama

tse_apuracao_cargo

Query official TSE election results by office, including section tallies, voter turnout summaries, and paginated candidate vote rankings for a selected electoral cycle and state.

Instructions

Query TSE EA20 section tally, voter turnout summary, and paginated candidate vote rankings for an electoral office.

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_apuracao_cargo"
  }
}

Input Schema

NameRequiredDescriptionDefault
ufNo2-letter state UF ('sp', 'rj', 'df', etc.) or 'br' (presidente only)
pageNo
cargoYesElectoral office
cicloNoElectoral cycle identifier (auto-resolved by cargo if omitted: 'ele2024' for prefeito/vereador, 'ele2026' for presidente/governador/senador/deputado_*)
limitNo
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.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. 'Query' implies a read operation and 'paginated' hints at result-set behavior, but there is nothing on permissions, rate limits, behavior when ciclo/codigo_eleicao are omitted (auto-resolution), or whether all three data groups are always returned or only some.

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 the verb first and no filler. It is dense but every clause names a distinct output, though packing three deliverables into one sentence makes it less scannable than it could be.

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?

For a 7-parameter tool with no annotations and no output schema, this is thin. An agent still lacks the conditional rules (municipality code for local offices, state-wide 'br' for presidente), the cycle-defaulting behavior, and any sense of what the paginated ranking response contains or how pages relate to limit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is a moderate 71%, and the description mentions only the office concept behind the required 'cargo' parameter. It adds no meaning for uf, ciclo, codigo_eleicao, codigo_tse_municipio, page, or limit, leaving the auto-resolution and municipality-code rules entirely to the schema.

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 verb ('Query') and enumerates three concrete resources: EA20 section tally, voter turnout summary, and paginated candidate vote rankings, scoped to an electoral office. It stops short of distinguishing this tool from siblings such as tse_comparecimento_abstencao, whose name suggests overlapping turnout data, so the agent must guess at the boundary.

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 when-to-use guidance, no stated preconditions, and no mention of alternatives. Critically, nothing tells the agent that prefeito/vereador queries require a municipality code while presidente requires uf='br', which are the main conditions that decide a successful call.

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