Skip to main content
Glama

create_chart

Generate bar, line, scatter, pie, or heatmap charts from JSON data using Matplotlib. Specify chart type, title, labels, and output path to visualize your data.

Instructions

Generate charts (bar, line, scatter, pie, heatmap) from data using Matplotlib

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesChart data as JSON
typeYesChart type
titleNoChart title
outputYesOutput file path (without extension)
xlabelNoX-axis label
ylabelNoY-axis label
Behavior2/5

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

No annotations are provided, so the description carries the full burden of disclosing side effects. It says it generates charts, but does not state that it writes a file to the output path, what file type is produced, whether existing files are overwritten, or how success/failure is reported. The Matplotlib reference hints at implementation but not at runtime behavior.

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 a single sentence with no filler, front-loading the verb and resource. It is compact and lists chart types efficiently. However, the brevity contributes to the behavioral and contextual gaps scored elsewhere.

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?

With no annotations and no output schema, the description is not operationally complete for a tool with six parameters and file output. It does not mention that a chart file is created, what return or confirmation the agent can expect, or how the output extension is resolved. The schema covers parameter names, but the description lacks the behavioral context needed for confident invocation.

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 description coverage is 100%, so the baseline is 3 even without additional parameter detail in the description. The description repeats the chart-type and data concepts found in the schema but does not explain the JSON shape of 'data' or the meaning of 'output file path (without extension)'. It adds no actionable meaning beyond the schema.

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 uses a specific verb ('Generate') and identifies the resource (charts) with explicit supported types ('bar, line, scatter, pie, heatmap'). It also names the underlying library (Matplotlib), which helps distinguish it from sibling tools like create_diagram. However, it omits 'grouped_bar' from the schema enum and doesn't explicitly contrast with create_diagram.

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?

The phrase 'Generate charts ... from data' provides an implicit usage signal, but there is no explicit when-to-use guidance or mention of when not to use this tool versus alternatives like create_diagram. The description does not state prerequisites for the data format or distinguish itself from file-creation siblings. It is functional but leaves selection logic to inference.

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/Rockstar-1281/tawaz-mcp'

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