invalidate_cache
Clear cached historian data by key pattern when configuration changes or fresh data is required, returning the number of invalidated entries.
Instructions
Invalidate cache entries matching pattern.
Story 2.2: Clears cached data, optionally filtering by pattern. Use this when configuration changes or fresh data is required.
Args: pattern: SQL LIKE pattern for keys (empty string = invalidate all)
Returns: dict[str, Any]: Dictionary containing invalidation results with keys: - success: Boolean indicating if operation succeeded - count: Number of entries invalidated - pattern: The pattern used (if any)
Example:
json { "success": true, "count": 15, "pattern": "search:%" }
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "invalidate_cache"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||