gemini_updateCache
Update cached content metadata (TTL and/or displayName) by specifying the unique cache name. Ensure accuracy and relevance of cached resources in the MCP Gemini Server.
Instructions
Updates metadata (TTL and/or displayName) for a specific cached content resource. Requires the unique cache name (e.g., 'cachedContents/abc123xyz'). Returns the updated cache metadata.
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": {
"cacheName": "<cacheName>"
},
"name": "gemini_updateCache"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cacheName | Yes | Required. The unique name/ID of the cache to update (e.g., 'cachedContents/abc123xyz'). | |
| displayName | No | Optional. The new human-readable name for the cache. Max 100 chars. | |
| ttl | No | Optional. The new time-to-live for the cache as a duration string (e.g., '3600s' for 1 hour). Max 48 hours. |