Skip to main content
Glama

run_analysis

Execute STATISTICA analyses by sending ordered dialog steps, then return result tables, arrays, or exported graph files.

Instructions

Run ANY STATISTICA analysis by executing an ordered list of steps against its dialog. Each step is one of: {"set": {PropertyName: value}} (set dialog properties), {"call": "MethodName", "args": [...]} (invoke a dialog method, e.g. ARIMAAndAutocorrelationFunctions), {"run": true} (execute the analysis), {"result": "Summary"} (read a result document/table after the run), {"saveGraph": "C:\out\plot.png", "result": "Graphs"} (export a graph document to an image; .png/.jpg/.emf). Results are returned as tables, arrays or document handles. Use describe_analysis to discover property and method names.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAbsolute path to the source file.
saveNoOptional destination .sta path to save the (possibly modified) input spreadsheet.
sheetNo
stepsYesOrdered steps, e.g. [{"set":{"Variables":"2 1"}},{"run":true},{"result":"Summary"}].
attachNoAttach to the already-running STATISTICA instance and edit it live (no new process, the app is not closed).
moduleYesModule id or name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose substantive behavior: the step grammar (set/call/run/result/saveGraph), that results come back as tables, arrays or document handles, and which image formats saveGraph supports. It is silent on whether a run mutates the source spreadsheet, what happens on a failing step, and whether steps are atomic — meaningful gaps for a tool that executes arbitrary dialog operations.

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?

Front-loaded with the purpose, then the step grammar, then the routing hint to describe_analysis. Dense but every clause is functional; the parenthetical examples and extension list all carry information. No filler sentences.

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

Completeness4/5

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

There is no output schema, and the description compensates by stating the return forms (tables, arrays, document handles). Combined with the step grammar and the describe_analysis pointer, an agent has enough to construct a call. Only error/failure semantics and the mutation footprint of a run are left unaddressed.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 83%, so the schema already documents most parameters. The description goes well beyond it for the critical 'steps' array, spelling out each step type and giving concrete examples (set/call/run/result/saveGraph) that the schema's one-line example does not, which is exactly the kind of added meaning that matters for the hardest parameter.

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 ANY STATISTICA analysis') plus the mechanism ('executing an ordered list of steps against its dialog'). The word 'ANY' implicitly differentiates it from the specialized siblings (statistica_regression, statistica_t_test, statistica_anova), but it never names them, so the agent must infer the routing rule.

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 directs the agent to describe_analysis for discovering property and method names, which is genuinely useful workflow guidance. However, it never says when to prefer this generic runner over the many pre-built analysis siblings, nor when-not to use it, so selection remains implied rather than stated.

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