watch_workload
Capture a workload's monthly cloud cost baseline, then compare later runs to detect cost drift with per-cloud deltas and SKU-level attribution.
Instructions
Cost Drift Sentinel — turns cloudprice from query tool into agent capability. First call (no baseline): captures the current per-cloud monthly cost for the workload as a baseline JSON the caller persists. Subsequent calls (with the saved baseline): compute today's cost, compare to baseline, return a structured drift report with per-cloud delta + SKU-level attribution from the price-history dataset. Stateless — no database, no server-side storage. Drop the baseline JSON into a git repo or any durable location. Designed for scheduled agents (GitHub Actions cron, Claude Code's autonomous mode, etc.) to detect 'has this cost moved since I signed off?' between runs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| egress | No | ||
| compute | No | ||
| storage | No | ||
| baseline | No | Previously returned baseline JSON. Pass null on first call to capture a fresh baseline; pass it back on subsequent calls to detect drift. | |
| multi_az | No | ||
| one_time | No | ||
| databases | No | ||
| commitment | No | none | |
| source_cloud | Yes | Cloud the workload currently runs on. | |
| object_storage | No | ||
| alert_threshold_pct | No | Drift % that triggers an alert. Defaults to 5%. |