Spss Run Syntax
spss_run_syntaxExecutes SPSS syntax commands and returns Markdown output, optionally loading a data file first. Use it to run statistics and modeling in IBM SPSS and save viewer and syntax files.
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 | ||
| 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 |