Run Cost Leak Scan
metrx_run_cost_leak_scanScan your agent fleet to identify 7 types of cost leaks, including idle agents and model overprovisioning, and get a scored report with fix recommendations and estimated monthly savings.
Instructions
Run a comprehensive cost leak audit across your entire agent fleet. Identifies 7 types of cost inefficiencies: idle agents, model overprovisioning, missing caching, high error rates, context bloat, missing budgets, and cross-provider arbitrage opportunities (covers anthropic, cohere, google, mistral, openai, xai). Returns a scored report with fix recommendations and estimated monthly savings. Supports output_format="json" for machine-readable output in CI/CD pipelines. Do NOT use as a continuous monitoring loop — use configure_alert_threshold for ongoing monitoring. Do NOT use for fixing leaks — use apply_optimization for one-click fixes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | No | Scan a specific agent instead of the entire fleet | |
| include_low_severity | No | Include low-severity findings in the report | |
| output_format | No | Output format: "text" (default) returns a human-readable markdown report; "json" returns raw machine-readable JSON suitable for CI/CD pipelines and programmatic processing. | text |