calculate_llm_cost
Calculate and rank LLM API costs for a monthly token workload, including KV prompt caching hit ratio modeling, to compare providers.
Instructions
Calculate and rank LLM API costs for a specific token workload with KV prompt caching hit ratio modeling.
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": "calculate_llm_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modelId | No | Optional model ID (e.g. gpt-5, claude-4-5-sonnet, deepseek-r1) | |
| inputTokens | No | Monthly input tokens (default: 7,000,000) | |
| outputTokens | No | Monthly output tokens (default: 3,000,000) | |
| cacheHitRatio | No | Prompt cache hit ratio between 0 and 1 (default: 0.5) |