calculate_savings
Calculate estimated cost and latency savings from optimizations
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"current_calls": "<current_calls>",
"optimized_calls": "<optimized_calls>"
},
"name": "calculate_savings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| current_calls | Yes | Current number of API calls | |
| avg_latency_ms | No | Average latency per call in ms | |
| optimized_calls | Yes | Optimized number of calls | |
| cost_per_call_usd | No | Cost per API call in USD |