Skip to main content
Glama

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
NameRequiredDescriptionDefault
daysNoNumber of days to look back

Implementation Reference

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

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