get_optimization_report
Detect token-wasting patterns in AI agent sessions—repeated reads, grep searches, oversized file access, unused tools—and receive estimated savings to optimize costs.
Instructions
Detect token waste patterns in AI agent sessions: repeated file reads, Bash grep instead of search, large file reads, unused trace-mcp tools. Provides savings estimates. Read-only. For usage/cost overview use get_session_analytics; for A/B savings comparison use get_real_savings. Returns JSON: { patterns: [{ type, description, savings_estimate }], total_waste }.
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": "get_optimization_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Time period (default: week) |