spss_run_syntax
Execute SPSS syntax commands and return results as Markdown. Optionally load a data file and persist viewer and syntax files for reproducible analysis.
Instructions
Execute arbitrary SPSS syntax commands and return the output as Markdown. Optionally specify a data_file to automatically prepend GET FILE. By default, this also persists .spv (SPSS viewer) and .sps (executed syntax) files. Requires IBM SPSS Statistics to be installed.
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": {
"syntax": "<syntax>"
},
"name": "spss_run_syntax"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| syntax | Yes | ||
| dry_run | No | ||
| data_file | No | ||
| select_if | No | ||
| filter_variable | No | ||
| save_syntax_file | No | ||
| save_viewer_output | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |