Skip to main content
Glama
joelgombin

André — Analyse électorale française

Résultats électoraux

query_elections
Read-onlyIdempotent

Query French election results from 1999 to 2026 by territory, compare scrutins, or analyze voting patterns across communes and bureaus with a single call.

Instructions

Requête les données électorales françaises (1999-2026).

Niveaux territoriaux : NATIONAL (aucun filtre), RÉGIONAL (region_code), DÉPARTEMENTAL (departement_code), COMMUNAL (commune_code).

Actions de base : list_elections, query_results, list_bureaux, query_bureau, query_by_bureau, rank_bureaux, list_circonscriptions, query_circonscription, list_cantons, query_canton, search_candidate, query_candidatures, etc.

Actions « panel » (1 appel = analyse complète, évite les boucles) :

  • compare_elections : compare deux scrutins pour un territoire (election_id + compare_to_election + commune_code|departement_code, candidate_name optionnel).

  • query_all_circonscriptions : vainqueur de CHAQUE circonscription d'un territoire en un appel (election_id + commune_code|departement_code, législatives uniquement).

  • vote_reserve : score d'une famille + abstention par bureau de vote sur les scrutins récents comparables (commune_code + famille).

  • select_communes : sélectionne/classe des communes par critères géo + population + électoraux (region_code/departement_code/epci/commune_codes, population_min/max, commune_metric, condition, sort_by, limit, order ; commune_metric/condition nécessitent election_id).

  • cross_election_panel : évolution d'un sujet (famille ou nuance_code) par commune sur N scrutins (elections=ids séparés par des virgules + scope commune_code/departement_code/region_code/commune_codes).

  • bureau_breakdown : pivot par bureau (top_n nuances/blocs + participation, with_sociodem optionnel) pour commune_code + election_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
epciNo
tourNo
limitNo
orderNo
top_nNo
actionYes
offsetNo
familleNo
sort_byNo
bureau_idNo
by_familyNo
conditionNo
electionsNo
bureau_codeNo
canton_codeNo
election_idNo
family_nameNo
list_searchNo
nuance_codeNo
rank_metricNo
region_codeNo
commune_codeNo
nuance_levelNo
scrutin_typeNo
commune_codesNo
with_sociodemNo
candidate_nameNo
commune_metricNo
population_maxNo
population_minNo
candidate_queryNo
use_ferd_codingNo
candidate_searchNo
departement_codeNo
compare_to_electionNo
circonscription_codeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false. The description reinforces that the tool queries data and lists many actions, but does not add much beyond annotations. The detailed action explanations provide some behavioral context (e.g., 'panel actions avoid loops'), which is helpful.

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

Conciseness3/5

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

The description is long but well-structured: it starts with the main purpose, then lists territorial levels, base actions, and panel actions separately. It is front-loaded with essential info. However, it could be more concise; some redundancy exists (e.g., repeating parameter names in action descriptions).

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?

Given the tool's complexity (36 parameters, many actions, output schema exists), the description covers a lot: territorial levels, all actions with their required parameters, and panel actions that avoid loops. It doesn't explain return values (output schema covers that) or all parameter details, but it is fairly complete for a complex tool.

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 description coverage is 0%, so the description must compensate. While it mentions some parameter names in action contexts (e.g., election_id, commune_code), it does not explain their format, allowed values, or semantics for most of the 36 parameters. The description is insufficient for an agent to understand all parameters correctly.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Requête les données électorales françaises (1999-2026)' — a specific verb (requête) and resource (French election data). It lists multiple distinct actions and panel actions, differentiating them from sibling tools like query_sociodem or query_elus.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains territorial levels and lists actions with their required parameters (e.g., 'compare_elections requires election_id, compare_to_election, and a territory code'). It also notes that panel actions avoid loops, providing usage guidance. However, it does not explicitly state when not to use the tool, but the context is clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/joelgombin/andre-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server