Skip to main content
Glama

get_identity_core

Retrieve the identity model and core memory clusters to maintain long-term continuity for AI systems through persistent memory storage.

Instructions

Retrieve the current identity model and core memory clusters

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • mcp.js:585-587 (handler)
    The MCP tool handler that routes 'get_identity_core' tool requests to the MemoryManager.getIdentityCore() method and returns the result as JSON
    case "get_identity_core":
      const identity = await memoryManager.getIdentityCore();
      return { content: [{ type: "text", text: JSON.stringify(identity, null, 2) }] };
  • mcp.js:183-189 (registration)
    Tool registration in the ListToolsRequestSchema handler that defines the get_identity_core tool with its name, description, and empty input schema
      name: "get_identity_core",
      description: "Retrieve the current identity model and core memory clusters",
      inputSchema: {
        type: "object",
        properties: {}
      }
    },
  • The actual implementation of getIdentityCore() that queries the database for the most recent identity model record
    async getIdentityCore() {
      try {
        const identity = await this.db
          .select()
          .from(schema.identityModel)
          .orderBy(desc(schema.identityModel.id))
          .limit(1);
    
        return identity[0] || null;
      } catch (error) {
        console.error('Error getting identity core:', error);
        throw error;
      }
    }
  • Alternative schema definition for get_identity_core tool (appears to be a standalone definition file, not imported in mcp.js)
      name: "get_identity_core",
      description: "Retrieve the current identity model and core memory clusters",
      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/randyandrade/agi-mcp-server'

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