cache_store
Store tool results in a persistent cache with configurable TTL, preventing redundant re-runs of expensive operations.
Instructions
Store a tool result in the persistent cache with a TTL. Prevents re-running the same expensive operation twice. Recommended: set key = make_cache_key(tool_name, args).
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": {
"key": "<key>",
"value": "<value>"
},
"name": "cache_store"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Cache key (use make_cache_key helper for deterministic keys). | |
| value | Yes | Result to store (JSON string or plain text). | |
| ttl_seconds | No | How long to keep (default 1 hour). Use 0 for no expiry. | |
| namespace | No | Logical group (e.g. "web", "files", "default"). | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||