Cloud Cost Summary
get_cost_summaryReturn a cloud cost breakdown grouped by service, resource group, tag, or region for a specified date range. Includes total cost, daily average, and collapses small groups into an 'Other' row.
Instructions
Returns a cost breakdown for a date range grouped by service, resource group, tag, or region. Defaults to current month if dates are omitted. Output includes a sorted table with each group name, cost in USD, and percentage of total. Includes a total row, daily average, and collapses groups beyond the top 10 into an "Other" row. Returns an error if the date range is invalid. Use this when the user asks "how much am I spending", "what costs the most", "show me my cloud bill", or wants a spending overview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | No | Cloud provider to query (azure or gcp) | azure |
| start_date | No | Start date (YYYY-MM-DD). Defaults to first of current month. | |
| end_date | No | End date (YYYY-MM-DD). Defaults to today. | |
| group_by | No | How to group costs: service, resource_group, tag, or region | service |