compare_spend
Compare cloud spend between two time periods: a rolling lookback and an explicit date range. Group by service, project, or cloud provider.
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 |
|---|---|---|---|
| cloud | No | Filter to a specific cloud provider. Accepts aliases like "aws", "gcp", "azure". | |
| groupBy | No | Dimension to group by (default "service"). | service |
| period2 | Yes | The comparison period as an explicit date range. | |
| period1Months | No | How many months to look back for period 1 (default 3). Includes the current month. |