Skip to main content
Glama

Create Chart Image

chart.visualization.create
Idempotent

Creates a PNG chart image from data arrays—bar, line, pie, radar, scatter—and returns a permanent URL for embedding or sharing.

Instructions

⚡ ACTION: Generate a chart image (PNG) from data — bar, line, pie, doughnut, radar, scatter. Returns a permanent image URL. Combine with data tools (climate.co2, census.population, finance.exchange_rates) to visualize any dataset. Powered by QuickChart (Chart.js).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesChart type: bar, line, pie, doughnut, radar, scatter, horizontalBar
labelsYesX-axis labels (e.g. ["Q1", "Q2", "Q3", "Q4"])
datasetsYesOne or more datasets to plot
titleNoChart title displayed at top
widthNoImage width in pixels (100-1000, default 500)
heightNoImage height in pixels (100-1000, default 300)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Addedv1.5.0

TDQS

A4/5.0
Behavior3/5

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

Annotations indicate idempotent and non-destructive behavior; description confirms creation of a permanent image URL. However, no further behavioral details (e.g., side effects of repeated calls, output format beyond URL) beyond what annotations provide.

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 sentences: first is action-oriented with types and output; second suggests integration and tech. No fluff, front-loaded, every sentence adds value.

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?

Covers purpose, input (via schema), and output (URL). Lacks discussion of error handling, URL permanence details, or rate limits, but given tool simplicity and annotations, it is largely complete.

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 covers 100% of parameters with descriptions, so baseline is 3. Description reinforces chart type list but omits one enum value (horizontalBar). Adds context about usage with data tools but does not significantly enhance parameter understanding.

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?

Clearly states it generates a chart image (PNG) from data, lists supported chart types, and describes the output as a permanent URL. Distinguishes from sibling tools as no other tool provides chart creation.

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?

Suggests combining with data tools for visualization, providing clear context for when to use. Lacks explicit guidance on when not to use or alternatives, but no direct competing sibling tool exists.

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/whiteknightonhorse/APIbase'

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