get_plot
Generate SHAP visualizations (summary, bar, waterfall, force, dependence, heatmap) to explain model predictions. Specify plot type and optional parameters to save the plot as a PNG and get its file path and URL.
Instructions
Generate a SHAP visualization, save it as a PNG file, and return file path and URL.
Parameters
plot_type : str One of 'summary', 'bar', 'waterfall', 'force', 'dependence', 'heatmap'. index : int | None Row index in dataset (required for waterfall and force). feature_name : str | None Feature name (required for dependence). top_n : int Max features to show (default: 10). color_feature : str | None Feature to color by for dependence plots. output_path : str | None Override default output directory path.
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": {
"plot_type": "<plot_type>"
},
"name": "get_plot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | ||
| top_n | No | ||
| plot_type | Yes | ||
| output_path | No | ||
| feature_name | No | ||
| color_feature | No | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||