AWS cost breakdown
get_cost_breakdownBreak down AWS costs by service, account, region, usage type, or cost allocation tag for a date range, returning top groups sorted by cost and collapsing the rest into Others.
Instructions
AWS cost for a date range, grouped by service, account, region, usage type or cost allocation tag. Defaults to month-to-date by service. Returns the top groups sorted by cost, with the rest collapsed into 'Others'.
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_cost_breakdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Day after the last day of the range, exclusive (YYYY-MM-DD). At most tomorrow (UTC). | |
| start | No | First day of the range, inclusive (YYYY-MM-DD). Omit with `end` for month-to-date. | |
| format | No | markdown: compact table for reading. json: structured data. | markdown |
| metric | No | Cost metric. Use AmortizedCost to spread Savings Plans / RI upfront fees. | UnblendedCost |
| tagKey | No | Cost allocation tag key to group by, e.g. `team`. Only with groupBy TAG. | |
| groupBy | No | What to break the cost down by. TAG requires `tagKey`. | SERVICE |
| granularity | No | DAILY adds a per-day total table; MONTHLY is cheaper on context. | MONTHLY |