generate_histogram
Create a histogram to visualize the distribution of a numeric column in a dataset. Returns chart path and data for summary reports.
Instructions
Generate a histogram showing the distribution of a numeric column.
Args:
dataset: Name of the dataset.
column: Numeric column to plot.
title: Chart title.
bins: Number of bins (default 20).
filename: Output filename (auto-generated if empty).
Returns:
A JSON str with {"chart_path":"...","chart_data":"..."}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dataset": "<dataset>",
"column": "<column>",
"title": "<title>"
},
"name": "generate_histogram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bins | No | ||
| title | Yes | ||
| column | Yes | ||
| dataset | Yes | ||
| filename | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |