Loading...
Loading...
Analyze cloud costs, find optimization opportunities, and track anomalies using Harness CCM via MCP. Use when user says "cloud costs", "analyze costs", "cost optimization", "reduce spending", "cost report", or asks about cloud bills.
npx skill4agent add harness/harness-skills analyze-costsCall MCP tool: harness_get
Parameters:
resource_type: "cost_account_overview"Call MCP tool: harness_get
Parameters:
resource_type: "cost_breakdown"Call MCP tool: harness_list
Parameters:
resource_type: "cost_perspective"Call MCP tool: harness_get
Parameters:
resource_type: "cost_perspective"
resource_id: "<perspective_id>"Call MCP tool: harness_get
Parameters:
resource_type: "cost_timeseries"Call MCP tool: harness_list
Parameters:
resource_type: "cost_recommendation"Call MCP tool: harness_get
Parameters:
resource_type: "cost_recommendation_detail"
resource_id: "<recommendation_id>"Call MCP tool: harness_get
Parameters:
resource_type: "cost_recommendation_stats"Call MCP tool: harness_list
Parameters:
resource_type: "cost_anomaly"Call MCP tool: harness_execute
Parameters:
resource_type: "cost_anomaly"
action: "report_feedback"
resource_id: "<anomaly_id>"
body: { feedback: "FALSE_ANOMALY" } # or TRUE_ANOMALY / NOT_RESPONDEDCall MCP tool: harness_get
Parameters:
resource_type: "cost_commitment"## Cloud Cost Analysis
**Period:** Last 30 Days
### Summary
| Provider | Spend | vs Previous |
|----------|-------|-------------|
| AWS | $X | +X% |
| GCP | $X | +X% |
| Azure | $X | -X% |
### Top Recommendations
1. **Rightsize <resource>** - Save $X/month (95% confidence)
2. **Convert to Reserved** - Save $X/month
3. **Delete unused resources** - Save $X/month
### Anomalies
- <date>: <service> spiked $X above expected
### Actions
- [ ] Rightsize instance X
- [ ] Purchase reserved capacity
- [ ] Clean up unused volumes| Resource Type | Operations | Description |
|---|---|---|
| get | Account-level total spend summary |
| get | Perspective-scoped cost summary |
| get | Cost trends over time |
| get | Multi-dimensional breakdown |
| list, get | Custom cost views |
| list | Optimization suggestions |
| get | Detailed recommendation |
| get | Summary statistics |
| list, get, execute(report_feedback) | Cost spikes |
| get | Anomaly aggregate summary |
| list, get | Cost allocation |
| get | Commitment coverage/utilisation/savings |
| get | Available filter values |