Compare AWS cost between two periods
compare_periodsCompare AWS costs between two periods by service, account, region, usage type, or tag to identify what drove cost increases or decreases, ranked by absolute change.
Instructions
Diff AWS cost between two periods per service, account, region, usage type or tag, ranked by absolute change. Use it to find what drove a rise or drop. With no dates it compares month-to-date against the equally long period right before it.
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": "compare_periods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 |
| currentEnd | No | Day after the current period's last day, exclusive. At most tomorrow (UTC). | |
| previousEnd | No | Day after the previous period's last day, exclusive (YYYY-MM-DD). | |
| currentStart | No | First day of the current period, inclusive (YYYY-MM-DD). | |
| previousStart | No | First day of the period to compare against, inclusive (YYYY-MM-DD). |