compare_cost
Estimate and rank the USD cost of a token-based workload across multiple LLM models, ordered cheapest first, so you can choose budget-friendly options.
Instructions
Estimate and rank the cost (USD) of a workload across several models, cheapest first.
Args: models: Model ids such as "openai/gpt-4o-mini" (a unique substring also works). input_tokens: Number of prompt/input tokens. output_tokens: Number of completion/output 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": {
"models": "<models>",
"input_tokens": "<input_tokens>",
"output_tokens": "<output_tokens>"
},
"name": "compare_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| models | Yes | ||
| input_tokens | Yes | ||
| output_tokens | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||