Skip to main content
Glama

generate_chart

Convert natural language queries and datasets into production-ready charts, output as shareable links, SVG, or PNG.

Instructions

Generates a production-ready chart specification and returns it in the requested format (share_link, svg, or png). Engine selection is automatically determined by chart type.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_intentNoNatural language visualization query or prompt.
dataset_jsonNoRaw JSON data string.
focus_columnsNoKey data column names to prioritize.
output_formatNoDesired output format for the chart: "share_link" (public web URLs), "svg" (vector SVG markup), or "png" (rasterized image). Defaults to "share_link".share_link
dataset_contentNoCSV, Markdown, or raw text dataset.
unnecessary_columnsNoColumn names to prune from dataset payload.
preferred_chart_typeNoPreferred chart type from supported visualization catalog.
Behavior3/5

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

The annotations already carry the mutation/open-world signals, and the description adds one extra behavioral fact: engine selection is decided automatically from chart type. However, it does not note side effects such as data being sent to an external engine or a share_link being publicly accessible, so disclosure is only partial.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two compact, front-loaded sentences contain the core action, the available output formats, and a useful implementation detail. There is no filler or repetition.

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?

The schema covers parameter semantics well, and the description states the main purpose and output modes. But given the missing output schema and the presence of a recommendation sibling, the description should also explain the expected workflow—e.g., when to call recommend_charts first and how the two dataset inputs relate—so the agent can plan correctly.

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?

All seven parameters have thorough descriptions in the schema, so the baseline is 3 and the description need not repeat them. The description does not add any parameter-specific semantics beyond what the schema already states.

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?

The description names a specific action ('Generates'), a concrete deliverable ('production-ready chart specification'), and the three possible return formats. This clearly differentiates it from the sibling tool recommend_charts, which would recommend chart types rather than produce the chart.

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 guidance is given on when to use generate_chart versus the sibling recommend_charts, or whether recommend_charts should be called first when preferred_chart_type is absent. The automatic-engine note is implementation detail, not usage direction.

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/vickytr44/makechartswithai-mcp'

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