agentlens_optimize
Analyzes LLM call patterns to recommend cost-saving model switches based on task complexity, with estimated monthly savings.
Instructions
Get cost optimization recommendations. Analyzes LLM call patterns and suggests cheaper model alternatives.
When to use: To identify cost-saving opportunities by switching expensive models to cheaper alternatives for tasks that don't require the most capable model. Analyzes call complexity (simple/moderate/complex) and success rates.
What it returns: A list of model switch recommendations with estimated monthly savings, confidence levels, and success rate comparisons. Sorted by potential savings.
Example: agentlens_optimize({ period: 7 }) → returns recommendations like "Switch gpt-4o → gpt-4o-mini for SIMPLE tasks, saving $89/month".
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": "agentlens_optimize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Analysis period in days (default: 7, max: 90) | |
| limit | No | Max recommendations to return (default: 5, max: 50) |