cache_get
Check for a cached response before sending an expensive LLM request, matching exact model, prompt, and parameters. Return the stored answer on hit, or a miss signal to generate and save it.
Instructions
Look up a cached LLM response by exact (model, prompt, params) match, like an HTTP cache checking a request against its cache key. Call this BEFORE issuing an expensive prompt to a model. Returns hit:false on a miss or an expired entry — in that case, run the prompt yourself and store the result with cache_set. On a hit, freshness mirrors HTTP semantics: fresh means use it as-is; stale means it is past its TTL but within its stale-while-revalidate window, so you may still use it but consider refreshing it.
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>",
"prompt": "<prompt>"
},
"name": "cache_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model/tool identifier the response came from, e.g. "claude-sonnet-5" | |
| params | No | Other call parameters that affect the response (temperature, system prompt, etc.) | |
| prompt | Yes | The exact prompt or request text |