Get Resource Breakdown
get_resource_breakdownBreak one service's spend down to the INDIVIDUAL RESOURCES behind it — the level below every other cost tool. Returns the top resources by cost with resource id, type, account name, region, operation, usage type, each resource's share of that service's spend over the window, and its prior-period cost for comparison. Use it to turn "RDS is up $4k" into "this one cluster went from $12 to $410". service is REQUIRED (provider-native name, e.g. "AmazonEC2" — see get_available_services). date anchors the window and defaults to the latest day CloudQuell has ingested data for that service (cost data lags the wall clock by 2-3 days, so today usually has none). granularity sets how wide that window is: "monthly" (default) covers the whole CALENDAR MONTH containing date, "daily" covers just that day — use "daily" when you are chasing a one-day spike. The window the backend actually applied comes back as resolvedWindow ({granularity, start, end}, both dates inclusive) with a plain-English window; quote it when reporting the figures, because a bare date widens to its whole month. Scope with provider (defaults to all connected CLOUD providers; Snowflake / Anthropic / OpenAI have no per-resource rows), account_id (name or 12-digit id) and integration_id. limit caps the list (default 25). RELATED: run_cost_pivot with a "resource" dimension answers the BROADER version of this question — resources across a whole grouping (e.g. per service, or per cost center) and over several months rather than one service on one date. Use THIS tool for the single-service, single-date case: it takes them directly and runs no job. RELATED: investigate_anomaly answers WHY — it runs this same breakdown plus the weekly and month-over-month trend and returns a verdict. Use investigate_anomaly to triage a suspected anomaly; use this tool when you already know the service and date and just want the resource list. Read-only. Example: { "service": "AmazonRDS", "date": "2026-06-15", "granularity": "daily", "limit": 10 } lists the 10 most expensive RDS resources on that day.
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": "get_resource_breakdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | The date to anchor the window on, YYYY-MM-DD. Omit to use the latest day CloudQuell has ingested data for this service (cost data lags 2-3 days, so "today" usually has none). | |
| limit | No | Max resources to return, highest cost first (default 25). | |
| service | Yes | The service to break down, by its provider-native name (e.g. "AmazonEC2", "AmazonRDS" on AWS). REQUIRED — the endpoint rejects a call without it. Discover valid names with get_available_services. | |
| provider | No | Provider scope: "aws", "azure" or "gcp". OMIT = every connected CLOUD provider combined (the backend default for this view). Snowflake / Anthropic / OpenAI have no per-resource rows — this view reads CUR-style resource columns those providers never emit. | |
| account_id | No | Scope to one sub-account. Accepts the sub-account NAME or its 12-digit account id, which is resolved to the name automatically. | |
| granularity | No | How wide a window `date` anchors: "monthly" (default, and the backend's own default) = the whole CALENDAR MONTH containing `date`; "daily" = that single day; "weekly" = the 7 days starting on that date. Use "daily" when you want the resources behind one day's spike. | monthly |
| integration_id | No | Scope to one or more provider connections (integration id). Omit for the whole organization. | |
| response_format | No | concise = the ranked resources with cost, share and prior-period cost (default). detailed = every field on every returned row. | concise |