caching_breakeven
Calculate the break-even point for prompt caching given the static token count and number of reuses. Determines when caching is cost-effective.
Instructions
Compute prompt-caching savings and break-even for a static prompt reused N times. Break-even is ~1.28 reuses.
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": {
"prompt_tokens": "<prompt_tokens>",
"reuses": "<reuses>"
},
"name": "caching_breakeven"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt_tokens | Yes | Size of the static (cacheable) prompt in tokens | |
| reuses | Yes | How many times the prompt is reused | |
| model | No | sonnet-4.5 |