Skip to main content
Glama

spss_compute

Create or overwrite an SPSS variable using numeric expressions, enabling computed metrics such as BMI from existing data.

Instructions

Create a new variable or overwrite an existing one with a computed expression. expression: any SPSS numeric expression, e.g. 'weight/(height**2)' or 'MEAN(q1,q2,q3)'. Requires IBM SPSS Statistics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
expressionYes
output_pathNo
target_variableYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

B3/5.0
Behavior3/5

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

The description discloses the main mutating behavior—overwriting an existing target variable—and notes the external dependency on SPSS. However, with no annotations, it leaves important behavioral details unstated, such as what happens to the input file when output_path is omitted and whether the operation modifies the file in place.

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

Conciseness5/5

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

The description is concise and front-loaded with the core action. The two sentences plus examples contain no filler, and the most important parameter semantics are presented efficiently.

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

Completeness2/5

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

For a tool with no annotations and no parameter descriptions in the schema, the description only partially covers what is needed to call it correctly. It explains expression and the overwrite caveat, but omits file_path and output_path semantics and how this tool differs from its many transformation siblings; the presence of an output schema does not fill those gaps.

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%, so the description must compensate for all four parameters. It adds useful meaning for expression with examples and implies target_variable's role, but file_path and output_path are left unexplained, and target_variable has no explicit constraints or naming rules.

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?

The description clearly states the tool's action: creating a new variable or overwriting an existing one with a computed expression. It names the resource (variable) and provides concrete examples, but it does not explicitly differentiate itself from overlapping siblings like spss_compute_scale_score or spss_if_transform.

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

Usage Guidelines2/5

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

The description gives no guidance on when to use this tool versus nearby alternatives such as spss_compute_scale_score, spss_if_transform, or spss_recode. The only operational note, 'Requires IBM SPSS Statistics,' is a prerequisite rather than a selection rule.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rasitnarcicek/spss-mcp-extended'

If you have feedback or need assistance with the MCP directory API, please join our Discord server