Skip to main content
Glama

André — Analyse électorale française

Carte électorale

generate_map
Idempotent

Génère une carte électorale (PNG) pour une élection.

    Paramètres :
    - election_id : identifiant élection (ex: '2024_legi_t1', '2020_muni_t2')
    - metric : 'family' (famille politique en tête), 'nuance' (score d'une nuance),
      'abstention' (abstentions / inscrits) ou 'participation' (votants / inscrits).
      Abstention et participation sont en % des inscrits ; au-dessus du bureau,
      somme des abstentions (ou votants) sur la somme des inscrits.
    - geography : 'bv' (bureau de vote, défaut) ou 'commune' (carte nationale)
    - department : code département (ex: '13'). Requis pour geography='bv' sauf si commune fourni.
    - commune : code commune (ex: '13055' pour Marseille). Centre la carte sur cette commune.
    - nuance : code nuance quand metric='nuance' (ex: 'RN', 'LFI', 'ENS')
    - region : code région pour geography='commune' (ex: '93' pour PACA)

    Exemples :
    - Carte par famille, Bouches-du-Rhône : election_id='2024_legi_t1', department='13'
    - Carte score RN, Marseille : election_id='2024_legi_t1', commune='13055', metric='nuance', nuance='RN'
    - Carte nationale : election_id='2024_euro_t1', geography='commune'
    - Carte d'abstention, Marseille : election_id='2024_legi_t1', commune='13055', metric='abstention'
    - Participation par commune, Bouches-du-Rhône : election_id='2024_legi_t1', geography='commune', department='13', metric='participation'
    

Input Schema

NameRequiredDescriptionDefault
cantonNo
metricNofamily
nuanceNo
regionNo
communeNo
geographyNobv
departmentNo
election_idYes
circonscriptionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=false, idempotentHint=true and openWorldHint=false, so safety profile is covered. The description adds the concrete output artifact (PNG) and the metric computation semantics (abstention/participation as % of registered voters, aggregated above the polling station). It does not discuss permissions, size limits, or failure modes, which is acceptable given annotation coverage.

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?

Purpose is front-loaded in the first line, followed by a parameter block and a compact example list. The examples are numerous but each one demonstrates a distinct parameter combination, so they earn their space; only the example list could be trimmed.

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?

An output schema exists so return values need not be explained, and the description covers metric semantics, geography modes and the department/commune interaction. The only shortfall is the two undocumented parameters (canton, circonscription) in an otherwise complete definition.

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

Parameters4/5

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

Schema description coverage is 0%, so the description carries the burden and mostly succeeds: it defines election_id, metric values, geography values, department, commune, nuance and region with examples and defaults. Two schema properties, canton and circonscription, are never mentioned, leaving a real gap for a 9-parameter tool.

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 artifact: generates a PNG electoral map for a given election. It distinguishes itself from generic siblings like visualize and export_data by naming the artifact type, but it never explicitly contrasts itself with those siblings.

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?

Provides five concrete worked examples covering family maps, nuance maps, national maps, abstention and participation, and states a conditional prerequisite (department required for geography='bv' unless commune is given). It gives clear context but no explicit when-not-to-use or sibling alternatives.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.