spss_graph_bar
Create bar charts from SPSS data files. Choose simple, grouped, or stacked bars, and plot counts or aggregate statistics like mean or sum.
Instructions
Bar chart: GRAPH /BAR(SIMPLE|GROUPED|STACKED)=COUNT or STAT(var) BY catvar. statistic: COUNT (default), MEAN, SUM, or other SPSS aggregate function. Requires IBM SPSS Statistics.
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": {
"file_path": "<file_path>",
"variable": "<variable>"
},
"name": "spss_graph_bar"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | SIMPLE | |
| title | No | ||
| variable | Yes | ||
| file_path | Yes | ||
| statistic | No | COUNT | |
| by_variable | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |