Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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) }] };
  • 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: {} } },
  • 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: {} } },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/QuixiAI/agi-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server