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
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Column name mapped to the x axis. | |
| y | No | Column name mapped to the y axis. | |
| data | Yes | Rows 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}]. | |
| kind | Yes | Chart type to build. | |
| color | No | Column name used to group/color the marks. | |
| title | No | Chart title. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |