cost_trend
Retrieve monthly cloud spend trends over a selected period, with optional breakdown by service, project, or cloud provider to identify cost changes.
Instructions
Use this when the user wants to see monthly spend over time (e.g. 'Show me my cost trend', 'How has my spend changed over the last 6 months?'). Returns monthly cost data points, optionally broken down by service/project/cloud. For daily granularity or custom time intervals, use run_query instead.
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": "cost_trend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topN | No | When groupBy is set, limit to top-N groups by cost (default 5). | |
| cloud | No | Filter to a specific cloud provider. Accepts aliases like "aws", "gcp", "azure". | |
| months | No | How many months of history to include (default 6). | |
| groupBy | No | Optional breakdown dimension. If omitted the trend is a single total line. |