get_cache_info
Retrieve current cache usage details to monitor documentation access efficiency and manage storage resources.
Instructions
Get information about the current cache usage.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/RTFD/server.py:151-155 (handler)The main handler function for the 'get_cache_info' tool. It is registered directly using the @mcp.tool decorator. Retrieves cache statistics from CacheManager and serializes the response.@mcp.tool(description="Get information about the current cache usage.") async def get_cache_info() -> CallToolResult: """Return cache statistics including entry count and size.""" stats = _cache_manager.get_stats() return serialize_response_with_meta(stats)