Skip to main content
Glama

Spss Process

spss_process

Run Hayes PROCESS Model 4 mediation in SPSS to estimate direct, indirect, and total effects with bootstrap confidence intervals, parallel mediators, covariates, and pairwise contrasts.

Instructions

Run the locally installed Hayes PROCESS macro for model 4 mediation. Supports one mediator or multiple parallel mediators, bootstrap confidence intervals, covariates, total/direct/indirect effects, pairwise indirect-effect contrasts, effect sizes, and standardized coefficients. The trusted macro path is auto-detected or configured with SPSS_PROCESS_MACRO_PATH; callers cannot supply an arbitrary macro file.

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>",
      "x": "<x>",
      "y": "<y>",
      "mediators": "<mediators>"
    },
    "name": "spss_process"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYes
yYes
seedNo
modelNo
file_pathYes
mediatorsYes
confidenceNo
covariatesNo
effect_sizeNo
total_effectNo
save_syntax_fileNo
bootstrap_samplesNo
normal_theory_testNo
pairwise_contrastsNo
save_viewer_outputNo
standardized_coefficientsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the burden and does well on one axis: it discloses that the macro path is auto-detected or configured via SPSS_PROCESS_MACRO_PATH and that callers cannot supply an arbitrary macro file, which is important security/behavior context. It stays silent on other consequential behavior, notably that save_syntax_file and save_viewer_output default to true, implying files are written to disk, and says nothing about runtime cost for 5000 bootstrap samples or what happens on failure.

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?

Three sentences, front-loaded with the core action and capability list, and no filler. The capability enumeration is dense but each term earns its place by signalling an available output.

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?

An output schema exists, so return values need not be described, and the macro-path constraint is a strong addition. For a 16-parameter statistical procedure with 0% schema coverage, however, the definition leaves the agent guessing about parameter roles and file-writing side effects.

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 16 parameters, so the description must compensate and largely does not. It names capabilities that map loosely to flags (bootstrap intervals, covariates, contrasts, standardized coefficients), but it never explains that x and y are variable names in file_path, or clarifies seed, confidence, bootstrap_samples, or the save_* toggles.

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?

"Run the locally installed Hayes PROCESS macro for model 4 mediation" gives a precise verb plus a narrow, named analytical procedure, which no sibling tool covers. The follow-up sentence enumerates the exact outputs (indirect effects, contrasts, effect sizes), so an agent knows precisely what it gets.

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 implied by the specificity of "model 4 mediation" rather than stated: there are no explicit when-to-use or when-not-to-use conditions, and no statement of prerequisites such as having a dataset file loaded. The one genuine routing rule given is about the macro path, not about choosing this tool.

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