compare_spend
Compare cloud spend across two time periods using a rolling lookback and an explicit date range. Group results by service, project, or cloud.
Instructions
Use this when the user wants to compare spend between two time periods (e.g. 'Compare my costs this quarter vs last quarter', 'How did January compare to February?'). Period 1 is a rolling lookback; period 2 is an explicit date range. For more than two periods or advanced comparative analysis, use run_query instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period1Months | No | How many months to look back for period 1 (default 3). Includes the current month. | |
| period2 | Yes | The comparison period as an explicit date range. | |
| cloud | No | Filter to a specific cloud provider. Accepts aliases like "aws", "gcp", "azure". | |
| groupBy | No | Dimension to group by (default "service"). | service |