estimate_llm_cost
Calculates the cost of a single LLM request from supplied per-million token rates, including cached input tokens, to support budgeting and model comparison.
Instructions
Estimate one LLM request from supplied per-million token rates. Input tokens include cached tokens.
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": {
"record": "<record>",
"rates": "<rates>"
},
"name": "estimate_llm_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rates | Yes | ||
| record | Yes |