Skip to main content
Glama

statistica_time_series

Run time-series analyses and forecasts: autocorrelation, ARIMA, exponential smoothing, differencing, and seasonal decomposition on selected variables.

Instructions

Time Series / Forecasting module. procedure is one of: descriptives, autocorrelation, partial_autocorrelation, cross_correlation, arima, spectral, smoothing, shift, exponential_smoothing, differencing, seasonal_decomposition. autocorrelation/partial_autocorrelation/spectral/smoothing/differencing/descriptives operate on a single series.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lagNoshift: number of periods to shift. Default 1.
lagsNoautocorrelation: number of lags. Default 20.
pathYes
alphaNoexponential_smoothing: level smoothing parameter.
deltaNoexponential_smoothing: trend smoothing parameter for damped models.
focusNo1-based position within `variables` of the series to analyse. Default 1.
gammaNoexponential_smoothing: trend/seasonal smoothing parameter.
modelNoexponential_smoothing: model type. Default simple (EMA). holt=linear trend, holt_additive=Theil-Wage, holt_multiplicative=Winters.
priorNosmoothing: average prior values only (non-centered). Default false = centered moving average.
sheetNo
attachNoAttach to the already-running STATISTICA instance and edit it live (no new process, the app is not closed).
windowNosmoothing: moving-average window size. Default 3.
arOrderNoarima: autoregressive order p. Default 1.
maOrderNoarima: moving-average order q. Default 0.
sarOrderNoarima: seasonal AR order.
smaOrderNoarima: seasonal MA order.
directionNoshift: shift forward (delay) or back (lead). Default forward.
forecastsNoarima: cases to forecast. Default 12.
procedureYesWhich time-series analysis to run.
variablesYesSeries variable(s). For arima the first is modelled (or use `focus`).
differenceNoarima: difference the series. Default false.
seasonalLagNoarima: seasonal lag (0 disables seasonality).
differenceLagNoarima: differencing lag. Default 1.
confidenceLevelNoarima: forecast confidence level. Default 0.95.
differencePassesNoarima: number of differencing passes. Default 1.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.3.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, and it falls short: it never says whether this mutates the spreadsheet, creates new variables/columns, requires a running STATISTICA instance, or what happens to existing data. It adds only the single-series scope constraint, which is useful but far from sufficient for a 25-parameter 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?

Front-loaded with the module identity, then the procedure enumeration, then the single-series constraint. Tight and waste-free, though the long inline procedure list makes the middle sentence dense.

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?

For a 25-parameter tool with no annotations and no output schema, the definition covers procedure selection well but omits side effects, return shape, and instance requirements. Adequate as a minimum-viable router but leaves real gaps an agent would need to fill.

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 92%, so the schema already documents nearly every parameter (lag, lags, alpha, arOrder, model, etc.). The description adds the cross-cutting rule that autocorrelation/partial_autocorrelation/spectral/smoothing/differencing/descriptives operate on one series, but no format or syntax detail beyond the schema. Baseline 3 is appropriate.

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 resource ('Time Series / Forecasting module') and enumerates the eleven procedures, which clearly separates it from siblings like statistica_regression, statistica_anova, and statistica_correlation. It does not name an alternative tool directly, but the domain is unambiguous.

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 lists what procedures exist but gives no when-to-use guidance, no prerequisites, and no comparison to overlapping siblings such as add_lag_column (which resembles the 'shift' procedure) or statistica_correlation. The only routing hint is the single-series note.

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