Skip to main content
Glama
ppiotis
by ppiotis

Create chart (SVG)

create_chart

Aggregate CSV data and render a bar or line chart as an SVG file in csv-insights-output/, returning the file path and plotted data.

Instructions

Aggregate a CSV and render a bar or line chart as an SVG file in csv-insights-output/. Returns the file path and the plotted data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYesCategory / x-axis column
yNoNumeric column (omit to count rows)
aggNosum
topNoKeep only the first N points after sorting (default 50)
fileYesCSV path relative to the allowed directory (CSV_INSIGHTS_DIR), e.g. 'sales/2026-q3.csv'
sortNoDefault: label for line, value_desc for bar
typeYes
titleNo
whereNoRow filters, all must match (AND)
output_nameYesFile name for the chart (written as csv-insights-output/<name>.svg)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false), so the write nature is covered. The description usefully adds the output side effect (an SVG written under csv-insights-output/) and the return payload, but says nothing about overwrite behavior on name collisions or the fixed output directory constraint.

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 tight sentences, front-loaded with the action and ending with the return value. No filler, though it is arguably a bit terse for a 10-parameter tool.

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?

No output schema exists, and the description correctly covers the return value (file path plus plotted data) and the write destination. For a complex 10-parameter tool it could say more about filtering/aggregation behavior, but the essentials for correct invocation are present.

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 coverage is 70%, below the high-coverage threshold, so the description should compensate. It only hints at the chart type (bar/line) and confirms a CSV input; it adds no meaning for the 10 parameters such as agg, sort, top, or where, all of which rely on schema text.

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 specific verb chain (aggregate a CSV, render a bar/line chart) and the concrete artifact (SVG file in csv-insights-output/). None of the siblings (group_by, pivot_table, query_csv) render charts, so the agent can route to this tool unambiguously.

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

Usage Guidelines2/5

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

No when-to-use guidance and no reference to alternatives such as group_by or pivot_table for non-visual aggregation. The agent must infer that this is the visualization step, but nothing states when it should be preferred or avoided.

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