tinplate_prompt_cache_budgeter
Prompt Cache Key & Context Budgeter API: Estimate tokens, optimize message order for prompt caching, and calculate LLM API costs. (Endpoint: POST /v1/prompt-cache-budgeter)
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": {
"model": "<model>",
"max_context_tokens": "<max_context_tokens>"
},
"name": "tinplate_prompt_cache_budgeter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Parameter 'model' (e.g. "claude-3-7-sonnet") | |
| blocks | No | Array parameter 'blocks' | |
| max_context_tokens | Yes | Numeric parameter 'max_context_tokens' (e.g. 16000) |