Skip to main content
Glama

spss_cases_to_vars

Restructure long-format data into wide format: converts repeated-measure cases into variables using case IDs and an index variable. Prepares data for analysis in SPSS.

Instructions

Restructure long → wide format: CASESTOVARS /ID=... /INDEX=.... id_variables: case identifiers; index_variables: the repeated-measure index. output_path: restructured result file. Requires IBM SPSS Statistics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes
output_pathNowide.sav
id_variablesYes
fixed_variablesNo
index_variablesYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations provided, the description carries the burden of behavioral disclosure. It explains that a restructured result file is written to output_path and that SPSS is required, but it does not say whether the input file is modified, how duplicates or missing index combinations are handled, or what the output file contains beyond being 'restructured.'

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 compact and front-loaded with the core action, includes the SPSS command form for grounding, and adds only essential parameter notes and a prerequisite. There is no filler.

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?

The core operation is clear and an output schema exists, but the description is incomplete for a 5-parameter tool with no annotations and 0% schema description coverage. Missing parameter explanations for file_path and fixed_variables, plus no caveats about case ordering or duplicate IDs, leave meaningful gaps.

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

Parameters3/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. It provides useful meanings for id_variables, index_variables, and output_path, but omits file_path and fixed_variables entirely, leaving two of five parameters underspecified.

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 states a specific verb and resource: 'Restructure long → wide format' via CASESTOVARS. This clearly distinguishes it from spss_vars_to_cases and other data-management siblings without needing to inspect the schema.

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

Usage Guidelines4/5

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

The transformation direction is explicit ('long → wide'), which gives an agent clear context for when to select this tool. It does not explicitly contrast with the wide-to-long sibling, but the purpose is specific enough to imply the main use case.

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