set_cache_ttl
Change the cache time-to-live at runtime without restarting the server; applies the new TTL to all cache namespaces in the running process.
Instructions
Change the cache time-to-live at runtime, without restarting the server.
The change takes effect in the running server process, without a restart. Use get_cache_ttl first if you need to restore the previous value afterward.
Args: ttl_seconds: New TTL in seconds, applied to all five cache namespaces (sheet structure, sheet data, Drive folders, docs, calendars). Must be >= 0; 0 effectively disables TTL-based caching (every entry is immediately eligible for expiry).
Returns: Confirmation with the new TTL. Applies only to this running process — set CACHE_TTL in the environment/.env for the startup default.
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": {
"ttl_seconds": "<ttl_seconds>"
},
"name": "set_cache_ttl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl_seconds | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||