Forecast Trend
forecast_trendForecast future periods with a linear trend and honest fit quality. PREMIUM (license).
For quick planning, not statistical modeling. Typical input {"values": [100, 120, 138, 161], "periods_ahead": 3} returns {"trend_per_period": 20.2, "r_squared": 0.998, "forecast": [180.9, 201.1, 221.3], "caveat": "..."}.
Use when a series is roughly linear and fit quality matters as much as the projection. Not for seasonal or cyclical data, and not for measuring growth already observed (growth_rates). Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": ""} (for example {"error": "need at least 4 historical values"}). Every call is read-only and idempotent, so after correcting the input it is always safe to retry.
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": {
"values": "<values>"
},
"name": "forecast_trend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | Yes | Ordered historical series, oldest first; at least 4 values. | |
| periods_ahead | No | How many future periods to forecast; values outside 1-12 are clamped. Default 3. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||