Skip to main content
Glama

activate_cluster

Enable a memory cluster by providing its UUID and optional context, allowing AI systems to access associated memories for continuity across interactions with the AGI MCP Server.

Instructions

Activate a memory cluster and get its associated memories

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cluster_idYesUUID of the cluster to activate
contextNoContext description for this activation

Implementation Reference

  • Core handler function that executes the activate_cluster tool logic: updates cluster activation count and last activated time, records activation history, and returns associated memories via getClusterMemories.
    async activateCluster(clusterId, context = null) { try { const result = await this.db.transaction(async (tx) => { // Update cluster activation await tx .update(schema.memoryClusters) .set({ activationCount: sql`${schema.memoryClusters.activationCount} + 1`, lastActivated: new Date() }) .where(eq(schema.memoryClusters.id, clusterId)); // Record activation history await tx.insert(schema.clusterActivationHistory).values({ clusterId, activationContext: context, activationStrength: 1.0 }); return true; }); // Return cluster with recent memories return await this.getClusterMemories(clusterId); } catch (error) { console.error('Error activating cluster:', error); throw error; } }
  • Input schema definition for the activate_cluster tool, defining parameters cluster_id (required) and optional context.
    { name: "activate_cluster", description: "Activate a memory cluster and get its associated memories", inputSchema: { type: "object", properties: { cluster_id: { type: "string", description: "UUID of the cluster to activate" }, context: { type: "string", description: "Context description for this activation", default: null } }, required: ["cluster_id"] } },
  • mcp.js:569-574 (registration)
    MCP server request handler registration for activate_cluster tool, dispatching to memoryManager.activateCluster and formatting response.
    case "activate_cluster": const clusterMemories = await memoryManager.activateCluster( args.cluster_id, args.context || null ); return { content: [{ type: "text", text: JSON.stringify(clusterMemories, null, 2) }] };
  • Tool schema registration in MCP server's tools list (possibly duplicated or inline).
    name: "activate_cluster", description: "Activate a memory cluster and get its associated memories", inputSchema: { type: "object", properties: { cluster_id: { type: "string", description: "UUID of the cluster to activate" }, context: { type: "string", description: "Context description for this activation", default: null } }, required: ["cluster_id"] } },
  • mcp.js:527-527 (handler)
    Overall MCP tool request handler switch statement that routes to specific tool implementations including activate_cluster.
    server.setRequestHandler(CallToolRequestSchema, async (request) => {

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