Investigate Cost Anomaly
investigate_anomalyDeep-dive a single service to investigate a cost anomaly. Anomalies are derived per provider scope: pass provider ("aws", "azure", "gcp", "snowflake", "anthropic", or "openai") to investigate that provider's spend — all chained calls follow the same scope. When provider is OMITTED the chained backend defaults differ (the anomalies trend spans all cloud providers, while the resource/daily drill-downs default to AWS), so pass provider explicitly for non-AWS services. Chains three read calls: (1) the anomalies view for the service's weekly trend and month-over-month comparison, (2) the per-resource breakdown for that service on a specific date (which resources/operations drive the spend), and (3) the ±7-day daily cost series from the overview. Returns a synthesized investigation: the MoM row, the weekly trend, the top resources by cost, the daily series, and a brief computed verdict on whether the trend looks anomalous. Provide service (required, provider-native name); date defaults to the current MoM period end; optionally scope to an account_id. RELATED: get_resource_breakdown exposes step (2) on its own — use it when you already know the service and date and just want the resource list (it also lets you narrow the window to a single day with granularity="daily"); use THIS tool when you want the trend and a verdict too. Read-only — never modifies anything. Example: { "service": "AmazonRDS", "date": "2026-06-15", "top_n_resources": 10 } investigates AWS RDS spend on that date; add "provider": "azure" to investigate an Azure service instead.
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": {
"service": "<service>"
},
"name": "investigate_anomaly"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Anchor date (YYYY-MM-DD) for the per-resource breakdown and the ±7-day daily window. When omitted it is resolved in order: the anomalies MoM current-period end → the service's latest weekly slice → today (UTC). The resource breakdown REQUIRES a date, so one is always resolved. | |
| service | Yes | The service to investigate, by its provider-native name (e.g. "AmazonRDS", "AmazonEC2" on AWS). REQUIRED — drives every chained call. | |
| provider | No | Provider scope for the anomaly data: "aws", "azure", "gcp", "snowflake", "anthropic", or "openai". OMIT = every connected provider combined (the backend default for the anomalies view). Pass a provider to analyze only that provider's cost movement. One provider per call. | |
| account_id | No | Optionally scope the per-resource rows to a single linked account (by account name). | |
| response_format | No | concise = synthesized investigation (trend, top resources, daily series, verdict). detailed = additionally the raw payloads from each chained call. | concise |
| top_n_resources | No | How many top resources (by current cost) to include from the breakdown (default 15). |