Skip to main content
Glama

quick_plot

Generate an interactive Plotly figure from tabular data by choosing a chart type and optional axes. Returns a JSON representation for rendering.

Instructions

Build an interactive Plotly figure from tabular data and return it as JSON.

Pass data as a list of records and choose a chart kind. The server constructs and validates the figure and returns it as a JSON string (the output of fig.to_json()). A frontend can parse the string and render it directly with plotly.js. Returning a string keeps the response a single text content block, which is robust across MCP clients and transports.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNoColumn name mapped to the x axis.
yNoColumn name mapped to the y axis.
dataYesRows of data as a list of JSON objects (records). Each object is one observation with named fields, e.g. [{"x": 1, "y": 2}, {"x": 2, "y": 3}].
kindYesChart type to build.
colorNoColumn name used to group/color the marks.
titleNoChart title.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries full behavioral burden. It explains that the server validates the figure and returns a JSON string, and justifies the string format for robustness. However, it omits details on authorization, rate limits, side effects, or error states.

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 four sentences, front-loaded with the core purpose. It is efficient but includes a slightly redundant justification about robustness. All sentences add value; no filler.

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?

Given the existence of an output schema, the description adequately covers return format. However, with three siblings listed, it lacks comparative guidance, making it less complete for an agent choosing among tools.

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 baseline is 3. The description adds a high-level usage statement ('pass data as a list of records and choose a chart kind') but does not enrich parameter semantics beyond what the schema already provides. No additional nuance for x, y, color, or title.

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 clearly states the tool builds an interactive Plotly figure and returns JSON, distinguishing it from siblings that output HTML (render_figure_html) or describe plots (describe_plot). The use of 'return it as JSON' and 'frontend can parse' differentiates the output format.

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?

The description tells how to use the tool (pass data as records, choose kind) but provides no guidance on when to use this tool versus siblings like create_figure or render_figure_html. No exclusions or contexts are mentioned.

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/ericmjl/mcp-plotting-server'

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