Skip to main content
Glama

Get Month-End Forecast

get_forecast
Read-only

Project 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

NameRequiredDescriptionDefault
limitNoHow many per-service and per-account projections to return, each ranked by projected month-end spend (default 10).
serviceNoProject only one service's spend, by its provider-native name (e.g. "AmazonEC2"). Discover valid values with get_available_services.
providerNoProvider 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_idNoProject 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_idNoScope to one or more provider connections (integration id) — discover them with list_integrations. Omit for the whole organization.
response_formatNoconcise = 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

NameRequiredDescriptionDefault
noteNoStates that this is a client-side projection.
toolNoWhich tool truncated (only on a truncated result).
methodNo"prev-month-shape" | "linear" | "flat-mtd" | "waiting" — how the projection was derived.
asOfDayNoDay-of-month of the last CONFIRMED data point the projection is anchored on.
filtersNoThe scope this projection was run under.
messageNoHow to narrow the request (only on a truncated result).
currencyNoThe organization's display currency.
byAccountNo
byServiceNoPer-entity projections — `name`, `mtdActual`, `forecastMonthEnd`, `previousMonthTotal`, `deltaVsPreviousMonthPct`, `method`, `asOfDay` — ranked by projected spend. These pace independently and do NOT sum to `forecastMonthEnd`.
mtdActualNoConfirmed month-to-date spend.
truncatedNoPresent 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.
confidenceNoPlain-English reliability note. ALWAYS report this next to the number.
daysInMonthNoDays in the current month.
lastUpdatedNoWhen the underlying cost data was last ingested.
approx_charsNoApproximate size of the withheld result (only on a truncated result).
perEntityNoteNoWarns that per-entity rows do not sum to the total.
providerScopeNoThe provider these numbers cover.
reportedAsOfDayNoThe backend's own asOfDay, before anchoring.
forecastMonthEndNoThe projected full-month total — matches the dashboard's "Forecasted Month-End" KPI.
previousMonthTotalNoThe previous month's full total.
accountFilterWarningNoPresent when the account filter could not be resolved.
deltaVsPreviousMonthPctNoProjected month-end vs the previous month, as a percentage. Null with no baseline.
dailyCumulativeComparisonNoThe daily cumulative series the projection was derived from (detailed only).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only supply readOnlyHint and openWorldHint, and the description goes far beyond them: it discloses the 2-3 day data lag via asOfDay, the four method names and when each fires, the 7-day minimum before extrapolation, and that independent pacing means the parts don't reconcile to the whole. That is exactly the behavioral context an agent needs to report the number honestly.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the purpose and the not-a-backend-forecast caveat, then ordered into methods, reporting rules, and scoping. It is on the long side and the emphasis casing plus the 'ALWAYS' instruction are a touch heavy-handed, but nearly every sentence carries distinct information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Even though an output schema exists, the description enumerates the key return fields and ties each to a caveat (asOfDay explains the lag, confidence explains reliability, method explains the arithmetic), which is more than completeness requires for a read-only projection tool with six optional parameters.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real value by showing how the scoping parameters combine across provider, integration_id, account_id, and service, and by demonstrating the limit behavior in a concrete example call.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Project month-end spend for the organization') plus the secondary outputs (per-service and per-account rankings). It also pre-empts a likely misreading by declaring this is a locally computed projection rather than something fetched from a backend, which separates it from every plain cost-reading sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete operating rules: always report the confidence note alongside the number, don't trust a sub-7-day projection, and use per-service/per-account rows only for ranking since they don't sum to the org total. Scoping guidance and two worked examples ({} and {provider: azure, limit: 5}) make the intended call shape unambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources