Skip to main content
Glama

time_series_decompose

Decompose a time series into trend, seasonal, and residual components to analyze underlying patterns; specify a period to separate cyclic behavior from noise.

Instructions

Decompose a series into trend, seasonal and residual components.

``period`` must be at least 2 and smaller than the series length. The full
components are saved as ``.npz`` under ``output_dir()``; returned arrays are
evenly downsampled to at most 2000 points each.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoadditive
periodYes
seriesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and discloses important behavioral details: the full output is written to an .npz file under output_dir(), and returned arrays are downsampled to at most 2000 points. It also notes a validity constraint on 'period'. Missing only explicit mutation/read-only nature or expected return structure.

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?

Two concise sentences, front-loaded with the core action and followed by key operational constraints. No extraneous text, though the formatting with backticks is slightly noisy.

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?

Given no annotations, no output schema, and 0% parameter schema coverage, the description covers the essential file-saving/downsampling behavior and period constraint, but leaves the 'model' parameter's meaning and the 'series' input format undocumented, which an agent would need to call correctly.

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 coverage is 0%, so the description must compensate. It clarifies the constraint on 'period' (at least 2, smaller than series length) and implies the shape/output of results, but says nothing about 'model' (e.g., additive vs multiplicative) or the accepted formats for 'series'. Partial compensation.

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 (decompose) and resource (a series into trend, seasonal, residual). Distinguishes from siblings like arima or fft_analysis by naming the exact decomposition operation, though it doesn't explicitly contrast with them.

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?

Provides a constraint on the 'period' argument but gives no guidance on when to use this tool versus alternatives such as fft_analysis or filter_signal, nor any typical use context.

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