cache_set
Store an LLM response in cache after receiving it to prevent re-paying for identical future requests.
Instructions
Store an LLM response in the cache. Call this after receiving a response to avoid re-paying for identical future requests.
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": {
"messages": "<messages>",
"model": "<model>",
"response": "<response>"
},
"name": "cache_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messages | Yes | ||
| model | Yes | ||
| response | Yes | The full LLM response object to cache. | |
| provider | No | Provider name (anthropic, openai, etc.). |