cache
Store and retrieve cached data using key-value pairs with optional TTL settings to manage temporary storage in MCP Server Template applications.
Instructions
Get or set a cached value. Provide only key to get, provide key and value to set.
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>"
},
"name": "cache"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key to fetch or store | |
| value | No | ||
| ttlSeconds | No |