get_cache_stats
Retrieve cache performance statistics—hit rate, size, entry count, evictions, and hits/misses—to monitor historian caching health and diagnose bottlenecks.
Instructions
Get cache statistics.
Story 2.2: Returns cache performance statistics including hit rate, size, and entry count.
Returns: dict[str, Any]: Dictionary containing cache statistics with keys: - success: Boolean indicating if operation succeeded - stats: Cache statistics object
Example:
json { "success": true, "stats": { "entry_count": 42, "total_size_mb": 12.5, "max_size_mb": 100, "cache_hits": 150, "cache_misses": 30, "hit_rate_percent": 83.3, "evictions": 5 } }
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": "get_cache_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||