Skip to main content
Glama

Ranking de políticos

ranking

Sorts Brazilian politicians by mentions of Flávio Bolsonaro using metrics such as citing posts, vote requests, views, or interactions; filters by state, party, role, status, and period.

Instructions

Ranking dos políticos que mais citaram o Flávio segundo uma métrica (posts citando, pedidos de voto, views ou interações dos posts citando). Aceita os mesmos filtros de buscar_politicos.

Input Schema

NameRequiredDescriptionDefault
ufNoSigla do estado, ex.: SP
ateNoFim do período (AAAA-MM-DD ou ISO 8601, horário de Brasília)
nomeNoParte do nome (sem diferenciar acentos/maiúsculas) ou o código sq exato
cargoNogov = governador(a), sen = senador(a), fed = deputado(a) federal, est = deputado(a) estadual, pref = prefeito(a)
desdeNoInício do período (AAAA-MM-DD ou ISO 8601, horário de Brasília)
limiteNo
metricaNoposts_citando
partidoNoSigla do partido, ex.: PL, NOVO, UNIÃO
situacaoNoeleito = eleito(a) em 2026, 2t = disputa o 2º turno, mandato = em mandato (não disputou em 2026)
municipioNoMunicípio (só se aplica a prefeitos)

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 provided, so the description carries the full behavioral burden and largely fails to. It never confirms this is a read-only operation, never states sort direction, tie-breaking, or pagination behavior, and gives no indication of the response shape despite there being no output schema. The only behavioral hint ('que mais citaram') implies descending order but leaves it unstated.

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?

Two sentences, front-loaded with what the ranking measures, with the metric list and filter pointer following. No filler. Slightly terse to the point of omitting needed information, but nothing is redundant.

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

Completeness3/5

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

For a 10-parameter tool with no annotations and no output schema, the description covers the 'what' adequately but not the 'what comes back'. An agent knows it gets a ranking of politicians by a chosen metric, but not the fields per entry (position, metric value, name, party) or ordering guarantees. This is minimum viable rather than complete.

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 80%, so most parameters (uf, desde, ate, nome, cargo, partido, situacao, municipio) are already documented in the schema, and metrica's four values are in the schema enum. The description adds no per-parameter meaning beyond repeating the metric names. Baseline 3 applies when the schema does the heavy lifting.

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 and resource — ranks politicians by how much they cited Flávio — and enumerates the four metrics that define the ranking, so the agent knows exactly what the output orders. It also references the buscar_politicos filter set, which separates it from the plain search sibling. It does not differentiate itself from estatisticas_agrupadas, which is the closest ambiguous alternative.

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?

"Aceita os mesmos filtros de buscar_politicos" gives useful context about the filter model but is a schema hint, not usage guidance. There is no statement of when to pick ranking over buscar_politicos or estatisticas_agrupadas, nor any exclusion. Usage is only implied by the word 'Ranking'.

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