Skip to main content
Glama
marlonluo2018

Pandas-MCP Server

generate_chartjs_tool

Generate interactive Chart.js visualizations from structured data. Supports multiple chart types and custom titles.

Instructions

Generate interactive Chart.js visualizations from structured data.

Args: data: Structured data in MCP format with required structure: { "columns": [ { "name": str, # Column name "type": str, # "string" or "number" "examples": list # Array of values }, ... # Additional columns ] } Example: { "columns": [ { "name": "Category", "type": "string", "examples": ["A", "B", "C"] }, { "name": "Value", "type": "number", "examples": [10, 20, 30] } ] } chart_types: List of supported chart types to generate (first is used) title: Chart title string request_params: Additional visualization parameters (optional)

Returns: dict: Result with structure: { "status": "SUCCESS"|"ERROR", "chart_html": str, # Generated HTML content "chart_type": str, # Type of chart generated "html_path": str # Path to saved HTML file }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
chart_typesNo
titleNoData Visualization
request_paramsNo
Behavior4/5

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

No annotations are provided, so the description carries full burden. It discloses the tool generates interactive chart HTML, specifies the expected data structure, and describes the return format. It does not mention any destructive actions or authorization needs, which is acceptable for a read-like generation tool.

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 organized into Args and Returns sections with an example, making it easy to parse. Though slightly lengthy, every sentence adds value for a complex input parameter. No redundant information.

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?

Given the lack of output schema and presence of nested objects, the description provides a thorough explanation of input structure, chart_types behavior, and return fields. It could mention error conditions or limitations, but overall it is sufficiently complete for an agent to use correctly.

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?

Schema description coverage is 0%, but the description compensates by detailing the required structure for 'data' with an example, explaining 'chart_types' behavior, and noting 'title' with a default. 'request_params' is vaguely described as 'additional visualization parameters', but overall adds significant meaning beyond the raw schema.

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 explicitly states 'Generate interactive Chart.js visualizations from structured data', clearly identifying the tool's purpose. The sibling tools (interpret_column_data, read_metadata_tool, run_pandas_code_tool) are distinct, and no confusion arises.

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?

The description implies usage when structured data is available and a chart is needed. However, it does not explicitly state when not to use this tool or mention alternative tools, but the context is clear enough for an agent to infer appropriate usage.

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/marlonluo2018/pandas-mcp-server'

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