cost_estimate
Calculate expected token cost of an Algernon fan-out before dispatching, using task count and per-million-token input/output prices, to prevent budget overruns.
Instructions
Predict token cost of an Algernon fan-out BEFORE dispatching.
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": {
"k_tasks": "<k_tasks>",
"input_price_per_mtok": "<input_price_per_mtok>",
"output_price_per_mtok": "<output_price_per_mtok>"
},
"name": "cost_estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k_tasks | Yes | ||
| input_price_per_mtok | Yes | ||
| output_price_per_mtok | Yes |