Skip to main content
Glama
SPSS-MCP

SPSS-MCP

by Exekiel179

Spss Twostep Cluster

spss_twostep_cluster

Run two-step cluster analysis on large datasets with mixed variable types and automatic cluster number determination. Requires IBM SPSS Statistics.

Instructions

Run two-step cluster analysis with automatic cluster number determination. Handles large datasets and mixed variable types. 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": {
      "file_path": "<file_path>"
    },
    "name": "spss_twostep_cluster"
  }
}

Input Schema

NameRequiredDescriptionDefault
distanceNoEUCLID
file_pathYes
continuousNo
categoricalNo
max_clustersNo
num_clustersNo
outlier_handlingNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, and it discloses only one trait: a dependency on an installed SPSS Statistics. It does not say whether the call mutates state, writes output to disk, blocks until completion, or how long it may take on large datasets — all material for a statistical procedure tool.

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 short sentences, front-loaded with the core action, with no filler. Tight and readable, though the brevity is achieved partly by omitting content the agent needs.

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 environment prerequisite is covered. But for a seven-parameter statistical procedure with no annotations and no parameter descriptions in the schema, the definition leaves too much for the agent to infer.

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?

Seven parameters with 0% schema description coverage, yet the description names none of them. "Mixed variable types" faintly hints at continuous/categorical and "automatic cluster number determination" hints at num_clusters vs. max_clusters, but distance, outlier_handling, and file_path get no explanation anywhere.

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

Purpose4/5

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

States a specific verb and resource ("Run two-step cluster analysis") plus two distinguishing traits: automatic cluster-number determination and support for large/mixed-type data. That is enough to separate it from spss_cluster_hierarchical, though the sibling is never named directly.

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 rather than stated: "Handles large datasets and mixed variable types" suggests when this is preferable to hierarchical clustering, but there is no explicit when-to-use, when-not-to-use, or prerequisite sequence (e.g., must data be read first?). The agent must infer the routing decision.

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