Quote cost from usage
quote_costCompute the price from measured usage — tokens, CPU seconds, bytes, storage writes and external calls — instead of a flat price table.
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": "quote_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokens | No | ||
| bytes_out | No | ||
| cpu_seconds | No | ||
| external_calls | No | ||
| storage_writes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |