get_active_themes
Retrieve recently activated memory themes and patterns from the AGI MCP Server to analyze AI system continuity within a specified time frame.
Instructions
Get recently activated memory themes and patterns
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Number of days to look back |
Implementation Reference
- src/memory-manager.js:428-439 (handler)The core handler function in MemoryManager class that executes the tool logic by querying the 'activeThemes' database table and returning the results.async getActiveThemes(days = 7) { try { const themes = await this.db .select() .from(schema.activeThemes); return themes; } catch (error) { console.error('Error getting active themes:', error); throw error; } }
- src/tools/memory-tools.js:181-192 (schema)The input schema definition for the 'get_active_themes' tool, specifying the optional 'days' parameter.name: "get_active_themes", description: "Get recently activated memory themes and patterns", inputSchema: { type: "object", properties: { days: { type: "integer", description: "Number of days to look back", default: 7 } } }
- mcp.js:597-599 (registration)MCP server tool dispatch/registration in the CallToolRequestSchema handler switch statement, calling the MemoryManager handler.case "get_active_themes": const themes = await memoryManager.getActiveThemes(args.days || 7); return { content: [{ type: "text", text: JSON.stringify(themes, null, 2) }] };
- mcp.js:207-218 (schema)The tool schema as registered in the MCP server's ListToolsRequestSchema response.name: "get_active_themes", description: "Get recently activated memory themes and patterns", inputSchema: { type: "object", properties: { days: { type: "integer", description: "Number of days to look back", default: 7 } } }