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.
    sample_size (bar) : colonne d'effectif (inscrits, nombre de bureaux)
    affichée « n = … » sous chaque catégorie.
    

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "visualize"
  }
}

Input Schema

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

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / sample_size
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Sample Size"
      +}
  2. Changed4 schema fields changed
    • addedInput schema / properties / a
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "A"
      +}
    • addedInput schema / properties / b
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "B"
      +}
    • addedInput schema / properties / c
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "C"
      +}
    • addedInput schema / properties / size
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Size"
      +}
  3. Changed8 schema fields changed
    • addedInput schema / properties / path
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Path"
      +}
    • addedInput schema / properties / reference_line
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Reference Line"
      +}
    • addedInput schema / properties / source
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Source"
      +}
    • addedInput schema / properties / subtitle
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Subtitle"
      +}
    • addedInput schema / properties / target
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Target"
      +}
    • addedInput schema / properties / values
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Values"
      +}
    • addedInput schema / properties / y2
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Y2"
      +}
    • addedInput schema / properties / z
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Z"
      +}
  4. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=true; the description's main addition is that the tool returns the Plotly JSON spec rather than rendering/persisting a chart, which is useful. It does not say whether anything is stored server-side or where the result can be viewed, which matters given readOnlyHint=false. No contradiction with annotations.

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?

Front-loaded purpose line, then a clean mode split, then a type list and a transversal-parameter block — scannable and free of filler. The chart-type enumeration is long but every item earns its place by naming the required inputs; only minor tightening is possible.

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 21-parameter tool with no schema descriptions, the definition covers the happy paths well and an output schema exists so return values need no exposition. It still leaves an agent guessing on roughly a third of the parameters, on precedence when both modes are populated, and on any validation/error behavior.

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?

With 21 parameters at 0% schema description coverage, the description has to carry the load, and it documents the decisive ones: spec, chart_type, data, the mapping names for special charts (source/target/values, a/b/c, y2), plus subtitle, reference_line's {value,label,orientation} shape and sample_size's "n = …" rendering. Several parameters remain unexplained (color, size, path, z, data_file, title), so coverage is good but not complete.

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?

States a concrete verb+resource ("Crée une visualisation Plotly") and immediately disambiguates the two operating modes (free 'spec' vs assisted chart_type+data+mappings). The enumerated chart types and their per-type inputs make it unmistakable what the tool produces, which none of the sibling query/export tools do.

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?

Explicitly tells the agent which mode to pick: provide 'spec' for a full Plotly dict, or 'chart_type' + 'data' + mappings for the assisted path. Per-type hints (sankey needs source+target+values, ternary needs a+b+c, dual_axis needs x+y+y2) effectively say when a chart type is invocable. No guidance on when to prefer this over the sibling generate_map, and no stated precedence when both 'spec' and 'chart_type' are supplied.

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.