Skip to main content
Glama

spss_if_transform

Conditionally assign values to a target variable when a logical condition is met in IBM SPSS Statistics.

Instructions

Conditionally assign a value: IF (condition) target = expression. condition: SPSS logical expression, e.g. 'age >= 30 and gender = 1'. Requires IBM SPSS Statistics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
conditionYes
file_pathYes
expressionYes
output_pathNo
target_variableYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are present, so the description carries the full burden. It reveals the formula and IBM SPSS dependency but says nothing about whether it modifies the input file in place, what output_path does, or any side effects. For a transformation tool that likely writes or overwrites data, this is a meaningful gap.

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?

Three short sentences deliver the formula, an example, and the environment requirement. The purpose is front-loaded and there is no filler.

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 four required parameters, the description still lacks the file/output semantics needed to call it correctly, particularly in-place modification vs saved output. The example helps, but the overall operational contract is incomplete.

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?

The input schema has 0% description coverage, so the description must compensate. It clarifies condition, target_variable, and expression with the IF formula and example, but leaves file_path and output_path unaddressed. This is partial compensation but not enough for a tool with required file and optional output parameters.

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?

The description names the exact operation ('Conditionally assign a value') and shows the SPSS IF syntax with a concrete example. This makes the tool's purpose unambiguous and distinguishes it as the conditional-assignment counterpart to siblings like spss_compute.

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?

It implies use whenever a conditional assignment is needed and gives a concrete condition example, but it does not state when to prefer spss_if_transform over spss_compute, spss_recode, or spss_select_if. No exclusions or explicit alternative guidance are provided.

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