get_forecast_run
Fetch one run of a forecast by ID, or pass run_id="latest" for the most recent run. Returns the full forecast envelope: target series + 30-day projection, correlated drivers (with lag and bootstrap stability), anomalies, structural changes, and credit accounting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | UUID of the run. Pass 'latest' to fetch the most recent run for the forecast. | |
| forecast_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| result | No | Forecast envelope. Contains keys: target, correlations, anomalies, changepoints, meta, and (when narration ran) narration. `target` carries lower/upper plus calibrated lower_50/upper_50, lower_80/upper_80, lower_95/upper_95 bands, the winning method, exogenous_driver when a leading-indicator was used, ensemble_components when the ensemble method won, transform applied, and non_negative flag. See docs/MCP_SERVER.md for the shape. | |
| status | Yes | ||
| trigger | No | ||
| narration | No | Peer of result.narration for convenience. Null when the run pre-dates narration OR was gated out (insufficient credits, org disabled, etc.). | |
| created_at | No | ||
| duration_ms | No | ||
| forecast_id | Yes | ||
| completed_at | No | ||
| error_message | No | ||
| credits_consumed | No | ||
| credits_refunded | No |