Skip to main content
Glama

André — Analyse électorale française

Visualisation graphique

visualize
Idempotent

Crée une visualisation Plotly (retourne le spec JSON).

    Deux modes :
    - Spec libre : fournir 'spec' (dict Plotly complet {data, layout})
    - Assisté : fournir chart_type + data + mappings

    Types supportés : bar, line, scatter, histogram, box, violin, heatmap,
    treemap, grouped_bar, stacked_bar, dumbbell, diverging_bar,
    dual_axis (x + y + y2), sankey (source + target + values),
    hemicycle (x=groupe, y=sièges), ternary (a + b + c = trois parts).
    Paramètres transversaux : subtitle (sous-titre technique),
    reference_line ({value, label, orientation}) pour un seuil/référence.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aNo
bNo
cNo
xNo
yNo
zNo
y2No
dataNo
pathNo
sizeNo
specNo
colorNo
titleNo
sourceNo
targetNo
valuesNo
subtitleNo
data_fileNo
chart_typeNo
reference_lineNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

TDQS

B3.3/5.0
Behavior4/5

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

The description discloses a key behavioral trait not in annotations: the tool returns a Plotly spec JSON rather than rendering an image. It also describes two modes and chart type support, which helps an agent understand expected behavior. No annotation contradiction exists; annotations already mark the operation idempotent and non-destructive, and the description aligns with them.

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?

The description is dense but free of filler, and it front-loads the central purpose and return type. The long list of chart types is necessary but runs together without a table; a short structured breakdown would improve scannability. Overall it earns a 4 for economy and information density.

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?

Given 20 optional parameters and no schema-level descriptions, the tool description is not complete enough to invoke reliably across all supported types: it fails to define input conventions (column names vs raw values), the exact meaning of data_file, and per-chart required parameters. The existence of an output schema covers return values, so that absence isn't penalized, but input-side gaps remain significant.

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?

With 0% schema description coverage, the description carries the full explanatory burden for 20 parameters, but it only clarifies the roles of a few fields (x/y/y2 for dual_axis, source/target/values for sankey, a/b/c for ternary, etc.). The general semantics of x, y, z, color, size, data, data_file, path, and title are left undefined, and the 'mappings' term in assisted mode is never spelled out. An agent would struggle to know which mapping fields to provide for basic charts like bar or scatter.

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 opens with a clear action and resource: 'Crée une visualisation Plotly (retourne le spec JSON)', immediately explaining what it does and its output. The two modes (spec libre vs assisté) and the enumeration of supported chart types further scope the tool. It does not explicitly contrast with sibling generate_map, but the Plotly chart focus and type list make it distinct.

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?

It clearly explains when to use each of the tool's own modes (free spec vs assisted chart_type+data+mappings) and lists supported chart types, giving an implicit range of use cases. However, it gives no explicit when-not-to-use guidance or alternative sibling tools (e.g., generate_map for maps). The usage context is conveyed but not contrasted with 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.

TDQS

A3.7/5.0
Disambiguation4/5

The query_* tools are mostly cleanly separated by domain (elections, admin, DLP, élus, sociodem), and the output-oriented tools (map, table, visualization, export) are distinct. The main potential confusion is query_sql versus query_elections, since both can access election results, but the descriptions mitigate this by explicitly recommending query_elections for standard analysis.

Naming Consistency5/5

All tool names follow a consistent lowercase snake_case verb-first convention: query_* for data retrieval, and create_data_table, export_data, generate_map, simulate_fusions, and visualize for actions. There is no mixing of camelCase, inconsistent verb styles, or vague duplicate-like naming.

Tool Count5/5

With 11 tools, the server is well within the ideal scope for a specialized electoral analysis toolset. Each query tool covers a coherent data domain, while mapping, visualization, export, table formatting, and simulation cover distinct workflow needs without redundancy.

Completeness5/5

The tool surface covers the full electoral analysis workflow: querying results and administrative divisions, socio-demographic profiles, elected officials, municipal candidate data, mapping, custom visualizations, tabular formatting, export, and fusion simulation. The advanced panel actions in query_elections plus the read-only SQL fallback fill most conceivable gaps.