cache_stats
Retrieve cache statistics and configuration for your Meraki network to monitor caching performance.
Instructions
Get cache statistics and configuration
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- meraki-mcp-dynamic.py:633-638 (handler)Tool handler function for 'cache_stats' - returns cache statistics and configuration as JSON
@mcp.tool() async def cache_stats() -> str: """Get cache statistics and configuration""" stats = cache.stats() stats['read_only_mode'] = READ_ONLY_MODE return json.dumps(stats, indent=2) - meraki-mcp-dynamic.py:107-113 (helper)SimpleCache.stats() method - provides cache statistics (total_items, cache_enabled, ttl_seconds)
def stats(self) -> Dict: """Get cache statistics""" return { "total_items": len(self.cache), "cache_enabled": ENABLE_CACHING, "ttl_seconds": CACHE_TTL_SECONDS } - meraki-mcp-dynamic.py:633-633 (registration)Registration of cache_stats tool via @mcp.tool() decorator on FastMCP server instance
@mcp.tool() - meraki-mcp-dynamic.py:634-634 (schema)No input parameters - the tool takes no arguments (empty schema inferred from absence of parameters)
async def cache_stats() -> str: