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.
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. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"cacheName": {
"description": "Required. The unique name/ID of the cache to update (e.g., 'cachedContents/abc123xyz').",
"minLength": 1,
"pattern": "^cachedContents\\/.+$",
"type": "string"
},
"displayName": {
"description": "Optional. The new human-readable name for the cache. Max 100 chars.",
"maxLength": 100,
"minLength": 1,
"type": "string"
},
"ttl": {
"description": "Optional. The new time-to-live for the cache as a duration string (e.g., '3600s' for 1 hour). Max 48 hours.",
"pattern": "^\\d+(\\.\\d+)?s$",
"type": "string"
}
},
"required": [
"cacheName"
],
"type": "object"
}