Run Cost Leak Scan
metrx_run_cost_leak_scanRun a comprehensive cost leak audit across all your agents. Identifies 7 types of cost inefficiencies: idle agents, model overprovisioning, missing caching, high error rates, context bloat, missing budgets, and cross-provider arbitrage…
Instructions
Run a comprehensive cost leak audit across all your agents. 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 amazon, anthropic, cohere, deepseek, google, meta, 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 get_alerts and get_failure_predictions for ongoing monitoring. Read-only: it changes nothing. To act on a finding, use get_optimization_recommendations or create_model_experiment. Requires an API key with the 'read' scope.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "metrx_run_cost_leak_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | No | Scan a specific agent instead of all agents | |
| 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 |
| include_low_severity | No | Include low-severity findings in the report |