get_forecast
Forecast a metric — answers 'what should I expect?' / 'are we on track this month?' / 'project next month'. Returns a per-store stores array (each in its OWN currency — never summed across currencies). Each store has: currentMonth (month-to-date actual + projected month-end with low/high band, built from the live daily run-rate), horizon (future full months with expected/low/high), method, confidence, explicit assumptions, historyMonths, and a ready-to-render charts[0] line spec (seriesField='series' splits actual vs forecast). HONESTY: every forecast carries a method (month_to_date_pace / linear_trend / naive_last_month / yoy_seasonal), a confidence level, and an interval — LEAD with the range and the confidence, never present the point estimate as a promise. Current-month projection works immediately from orders; forward months need calendar-month snapshot history and degrade gracefully (low confidence / declines to project when too thin). v1 metrics: revenue, orders.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| store | No | Sub-store key (e.g. 'acme-store-us'). Omit to forecast every store in the workspace (each in its own currency). | |
| metric | No | Metric to forecast. Defaults to 'revenue'. | |
| _offset | No | Pagination offset. If a response includes _pagination.hasMore=true, use _offset to fetch the next page. | |
| horizon | No | Number of future FULL months to project after the current one (1-3). Defaults to 1. |