llm-cost
llm_cost3 free MCP calls per day (all tools together), then $0.005 USDC via x402 or card credits (paid in-band: params._meta["x402/payment"]). Token & cost calculator: estimate tokens for a text (or pass input_tokens/output_tokens) and price it across several models using provider list prices (LiteLLM price table, MIT). Params: models (comma list of model ids like gpt-4o-mini, claude-sonnet-4-5, gemini/gemini-2.5-flash or search words, max 15), text or input_tokens, output_tokens, calls. When to use: Use llm-cost to compare what a workload costs across models.
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": "llm_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| calls | No | ||
| models | No | ||
| input_tokens | No | ||
| output_tokens | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calls | No | ||
| results | No | ||
| sources | No | ||
| input_tokens | No | ||
| output_tokens | No | ||
| estimate_method | No | ||
| input_tokens_estimated | No |