Forecast organic traffic
forecast_trafficUse this when the user asks how much search traffic to expect in coming weeks or months. Projects future Search Console clicks (or impressions) for a property using the app's forecasting model: multiplicative seasonal decomposition (ratio-to-moving-average) plus an auto-selected trendline (linear / polynomial / log / exponential / power by best R-squared), re-seasonalised for each future period. Not for explaining a past change: use detect_change_points. forecast runs oldest period first, candidateTrendlines best r2 first; *Sessions fields count the chosen metric (clicks or impressions). Optionally applies a manual growth rate and derives revenue from a conversion rate and average order value. History needs: weekly needs 13 complete weeks and monthly 6 complete months, after the first and last (possibly partial) period are dropped, so about 105 days (weekly) or 240 days (monthly) of data. Days and periods without rows count as zero. A constant history (for example all zero) gets a flat forecast with forecastNote. Reads the ClickHouse warehouse when available, else the live Search Console API.
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": {
"siteUrl": "<siteUrl>"
},
"name": "forecast_traffic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| aov | No | Optional average order value (in currency units) used with cvr for revenue. | |
| cvr | No | Optional conversion rate as a decimal (0.025 = 2.5%) to derive forecast revenue. | |
| metric | No | Metric to forecast (treated as "sessions" by the model). | clicks |
| siteUrl | Yes | ||
| currency | No | Currency label for the revenue fields (display only). | USD |
| growthRate | No | Optional manual growth rate per period as a decimal (0.05 = +5%). Default 0. | |
| granularity | No | Forecast granularity. Weekly needs about 105 days of history (13 complete weeks), monthly about 240 days (6 complete months). | weekly |
| historyDays | No | Trailing days of history to fit on (default 480 ≈ 16 months; more improves seasonality). | |
| trendlineType | No | Force a trendline model, or "auto" for the best R-squared (default). | auto |
| compoundGrowth | No | Compound the growth rate across periods (default true). | |
| forecastPeriods | No | How many future periods (weeks or months) to project. Default 26. | |
| additionalSessions | No | Optional flat sessions added to every forecast period. Default 0. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| metric | No | ||
| thenBy | No | ||
| listKey | No | Name of the top-level field that holds the rows sortedBy describes. | |
| siteUrl | No | ||
| warning | No | ||
| currency | No | ||
| forecast | No | ||
| ordering | No | ||
| sortedBy | No | ||
| sortOrder | No | ||
| thenOrder | No | ||
| trendline | No | ||
| dataSource | No | ||
| granularity | No | ||
| partialDays | No | ||
| dataMaturity | No | ||
| forecastNote | No | ||
| historyRange | No | ||
| settledThrough | No | ||
| seasonalIndices | No | ||
| historicalPeriods | No | ||
| candidateTrendlines | No | ||
| warehouseLatestDate | No |