Skip to main content
Glama

util_forecast

Read-only

Time-series forecast (auto ETS / Holt-Winters) — Forecast the next values of any time series offline. data= comma-separated numbers oldest first (4-500 points). Optional: horizon= steps ahead (1-60, default 6), season= period length (12 monthly, 7 daily, 4 quarterly, 24 hourly; auto-detected from autocorrelation when omitted, season=0 turns it off), method=auto|naive|ses|linear|holt|holt-winters (auto = lowest AIC), confidence= interval percent (default 95). Returns point forecasts with lower/upper prediction intervals, chosen model + smoothing parameters, trend direction, in-sample MAE/RMSE/MAPE and a model comparison table. Price: $0.003 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "data": "<data>"
    },
    "name": "util_forecast"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes112,118,132,129,121,135,148,148,136,119,104,118,115,126,141,135,125,149,170,170,158,133,114,140,145,150,178,163,172,178,199,199,184,162,146,166

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only say read-only, non-destructive, open-world; the description adds materially more: computation is offline, input must be 4-500 comma-separated points, defaults for horizon/season/confidence, and a per-call price of $0.003 USDC on Base via x402, which is critical for an agent to know before invoking. It also discloses what comes back (model choice, smoothing parameters, trend direction, error metrics, comparison table), so behavior is fully characterized beyond the structured fields.

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 capability, then inputs, then options, then return values, then price — a sensible order with no filler sentences. It is dense and largely semicolon-chained, which slows scanning, but nearly every clause carries actionable information.

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

Completeness5/5

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

For a single-input deterministic calculator with no output schema, the description covers input format and limits, option defaults and enumerated choices, detailed return contents, and the payment requirement. Nothing an agent needs to call this correctly is missing, aside from the schema/description mismatch on optional parameters.

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?

The schema's 100% coverage only documents the single required `data` field, so the description is the sole source of meaning for horizon (1-60, default 6), season (auto-detected, 0 disables), method (auto|naive|ses|linear|holt|holt-winters), and confidence (default 95) — including format (oldest first) and range constraints. It loses a point because those optional parameters do not actually appear in the input schema, leaving an agent unsure whether they can be passed.

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 ('Forecast the next values of any time series') plus the underlying method family (auto ETS / Holt-Winters) and the key scope qualifier 'offline'. That scope is enough to separate it from weather/solar forecasters and a business-metrics accuracy tool without opening a schema, though it never names a sibling explicitly.

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?

Usage guidance is aimed at the options rather than the tool choice: it explains season=0 disables seasonality, auto picks lowest AIC, and gives typical period lengths for monthly/daily/quarterly/hourly data. There is no when-to-use/when-not framing and no routing to business_forecast_accuracy or other siblings, so selection between tools is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources