get_memory_health
Monitor and retrieve comprehensive statistics on system memory health to ensure optimal performance and stability for AI continuity in the AGI MCP Server.
Instructions
Get overall statistics about memory system health
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/memory-manager.js:414-425 (handler)Core handler function that queries the memoryHealth table to retrieve overall memory system health statistics.async getMemoryHealth() { try { const health = await this.db .select() .from(schema.memoryHealth); return health; } catch (error) { console.error('Error getting memory health:', error); throw error; } }
- mcp.js:593-595 (registration)MCP tool dispatch in the CallToolRequest handler that invokes MemoryManager.getMemoryHealth() and returns JSON response.case "get_memory_health": const health = await memoryManager.getMemoryHealth(); return { content: [{ type: "text", text: JSON.stringify(health, null, 2) }] };
- mcp.js:198-205 (schema)Tool registration in ListToolsRequestHandler defining name, description, and empty input schema for get_memory_health.{ name: "get_memory_health", description: "Get overall statistics about memory system health", inputSchema: { type: "object", properties: {} } },
- src/tools/memory-tools.js:173-179 (schema)Additional tool schema definition exported from memory-tools.js (possibly unused or for reference).name: "get_memory_health", description: "Get overall statistics about memory system health", inputSchema: { type: "object", properties: {} } },