Skip to main content
Glama
SPSS-MCP

SPSS-MCP

by Exekiel179

Spss Run Syntax

spss_run_syntax

Executes 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

NameRequiredDescriptionDefault
syntaxYes
data_fileNo
select_ifNo
filter_variableNo
save_syntax_fileNo
save_viewer_outputNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description still discloses meaningful behavior: Markdown output, GET FILE prepending, default persistence of .spv and .sps artifacts, and a hard environment prerequisite (IBM SPSS Statistics installed). The notable omission is the destructive/arbitrary-code dimension — nothing warns that executed syntax can modify or delete data, which matters greatly for a free-form command runner.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four compact sentences, front-loaded with the core action and return format before the optional-behavior and prerequisite details. Little waste; slightly more structuring (e.g., separating prerequisites from defaults) would help but nothing is padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Output schema exists, so return values needn't be explained, and the environment prerequisite and artifact persistence are covered. However, for a tool that runs arbitrary code, missing warnings about side effects and missing documentation for half the parameters leaves the definition short of what an agent needs to call it safely and correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 6 parameters, so the description must carry the load, and it only explains data_file clearly plus gestures at the save toggles via 'by default, this also persists .spv and .sps files'. select_if and filter_variable — arguably the most semantically loaded parameters — are never mentioned at all, leaving the agent to guess their format and purpose.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Execute arbitrary SPSS syntax commands') plus the return format ('output as Markdown'). The added note that data_file auto-prepends GET FILE further pins down behavior, so an agent can distinguish this general escape hatch from the many single-method siblings like spss_descriptives or spss_anova.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: 'arbitrary SPSS syntax' suggests a fallback for anything the purpose-built method tools don't cover, and the data_file note hints at when to pass a file versus not. But there is no explicit 'use this when X, prefer spss_anova when Y', and no mention of the obvious companion spss_validate_syntax for checking syntax before execution.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.