Detect Cost Anomalies
detect_anomaliesIdentifies unexpected cloud cost increases by comparing recent daily spending against a prior period. Returns services with cost spikes sorted by increase amount.
Instructions
Compares daily spending over the last N days against the prior N days to find cost spikes. Returns a list of services where spending increased above the threshold percentage, sorted by increase amount. Each entry includes service name, previous cost, current cost, percentage change, and absolute change in USD. Returns an empty list if no anomalies found. Use this when the user asks about unexpected cost increases, billing surprises, or wants to know if anything changed recently.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | No | Cloud provider to query (azure or gcp) | azure |
| days | No | Number of days to compare (default: 7) | |
| threshold | No | Minimum percentage increase to flag (default: 20) |