Get Month-End Forecast
get_forecastProject month-end spend for the organization, plus per-service and per-account projections ranked by projected spend. IMPORTANT: this is a PROJECTION derived from the daily cost data CloudQuell has already ingested — NOT a forecast returned by a backend service. It runs the same algorithm and the same anchors as the CloudQuell dashboard's "Forecasted Month-End" KPI, so the number matches what the customer sees on screen. Returns asOfDay (the last day with ingested data — cost data lags the wall clock by 2-3 days), daysInMonth, mtdActual, forecastMonthEnd, previousMonthTotal, deltaVsPreviousMonthPct, the method used, and a plain-English confidence note. The four methods: "prev-month-shape" paces the month against the previous (or last-3-months average) cumulative curve — the most reliable; "linear" extrapolates the run rate when there is no comparable previous month; "flat-mtd" refuses to extrapolate under 7 days of data and carries month-to-date flat; "waiting" means no current-month data has arrived yet. ALWAYS report the confidence note alongside the number — a 3-day projection is not a forecast. Per-service and per-account rows pace independently and therefore do NOT sum to the org total; use them for ranking. Scope with provider, integration_id, account_id (name or 12-digit id) and service; limit caps each ranked list (default 10). Read-only. Example: {} projects org-wide month-end spend with the top 10 services and accounts; { "provider": "azure", "limit": 5 } does the same for Azure.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_forecast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many per-service and per-account projections to return, each ranked by projected month-end spend (default 10). | |
| service | No | Project only one service's spend, by its provider-native name (e.g. "AmazonEC2"). Discover valid values with get_available_services. | |
| provider | No | Provider scope. OMIT = AWS when no integration_id is pinned (the overview view's backend default); with integration_id the scope follows that integration's provider. Pass "azure", "gcp", "snowflake", "anthropic", or "openai" to project that provider's spend instead. One provider per call. | |
| account_id | No | Project only one sub-account's spend. Accepts either the sub-account NAME or (for a cloud provider) its 12-digit account id, which is resolved to the name automatically. Look names up with get_available_linked_accounts. | |
| integration_id | No | Scope to one or more provider connections (integration id) — discover them with list_integrations. Omit for the whole organization. | |
| response_format | No | concise = the org projection + the top-N service/account projections (default). detailed = additionally the full daily cumulative series the projection was derived from, so the arithmetic can be audited. | concise |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | States that this is a client-side projection. | |
| tool | No | Which tool truncated (only on a truncated result). | |
| method | No | "prev-month-shape" | "linear" | "flat-mtd" | "waiting" — how the projection was derived. | |
| asOfDay | No | Day-of-month of the last CONFIRMED data point the projection is anchored on. | |
| filters | No | The scope this projection was run under. | |
| message | No | How to narrow the request (only on a truncated result). | |
| currency | No | The organization's display currency. | |
| byAccount | No | ||
| byService | No | Per-entity projections — `name`, `mtdActual`, `forecastMonthEnd`, `previousMonthTotal`, `deltaVsPreviousMonthPct`, `method`, `asOfDay` — ranked by projected spend. These pace independently and do NOT sum to `forecastMonthEnd`. | |
| mtdActual | No | Confirmed month-to-date spend. | |
| truncated | No | Present and true when the result exceeded the output-size budget and was WITHHELD. When you see this, no data fields are present — narrow the request as `message` says and call again. | |
| confidence | No | Plain-English reliability note. ALWAYS report this next to the number. | |
| daysInMonth | No | Days in the current month. | |
| lastUpdated | No | When the underlying cost data was last ingested. | |
| approx_chars | No | Approximate size of the withheld result (only on a truncated result). | |
| perEntityNote | No | Warns that per-entity rows do not sum to the total. | |
| providerScope | No | The provider these numbers cover. | |
| reportedAsOfDay | No | The backend's own asOfDay, before anchoring. | |
| forecastMonthEnd | No | The projected full-month total — matches the dashboard's "Forecasted Month-End" KPI. | |
| previousMonthTotal | No | The previous month's full total. | |
| accountFilterWarning | No | Present when the account filter could not be resolved. | |
| deltaVsPreviousMonthPct | No | Projected month-end vs the previous month, as a percentage. Null with no baseline. | |
| dailyCumulativeComparison | No | The daily cumulative series the projection was derived from (detailed only). |