Skip to main content
Glama

tse_candidatos_busca

Search Brazilian TSE candidates, including running mates and substitutes, by name, ballot number, party, office, state, or elected status to retrieve official records.

Instructions

Search TSE EA20 candidates (including running mates/substitutes) by name, ballot number, party, or elected status.

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

Input Schema

NameRequiredDescriptionDefault
ufNo2-letter state UF ('sp', 'rj', 'df', etc.) or 'br' (presidente only)
nomeNoPartial candidate or vice name
cargoYesElectoral office
cicloNoElectoral cycle identifier (auto-resolved by cargo if omitted: 'ele2024' for prefeito/vereador, 'ele2026' for presidente/governador/senador/deputado_*)
limitNo
numeroNo2 to 5 digit candidate ballot number
partidoNoParty acronym (e.g., 'PL', 'PT', 'MDB')
apenas_eleitosNo
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

B3.2/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 behavioral burden, yet it says nothing about pagination behavior, result ordering, or what a response looks like. The one useful disclosure is the scope note that running mates/substitutes are included in results, which is genuine behavioral context.

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

Conciseness5/5

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

One front-loaded sentence with zero filler; the parenthetical scope qualifier earns its place by clarifying result inclusion.

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?

This is a 10-parameter tool with a required cargo, conditional municipality requirements, auto-resolved ciclo/codigo_eleicao defaults, and a limit cap, none of which the description touches. With no annotations and no output schema, the definition leaves significant behavioral and operational gaps for an agent to close on its own.

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 80%, so the baseline is 3. The description's facet list (name, ballot number, party, elected status) maps onto nome, numero, partido and apenas_eleitos but largely restates what the schema descriptions already state, adding no format or interaction details.

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 gives a specific verb and resource ('Search TSE EA20 candidates') plus the searchable facets (name, ballot number, party, elected status). It does not explicitly contrast itself with siblings such as tse_partidos_federacoes, though the candidate-level resource is clearly distinct in domain.

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 enumerated filter facets; there is no statement of when to prefer this over another TSE tool, no prerequisites, and no exclusions. An agent can infer intent from the filters but must decide applicability on its own.

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