Skip to main content
Glama

get_identity_core

Retrieve current identity model and core memory clusters to maintain AI's continuity of consciousness and persistent memory across interactions. Part of the AGI MCP Server.

Instructions

Retrieve the current identity model and core memory clusters

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • mcp.js:585-587 (handler)
    MCP tool handler that calls memoryManager.getIdentityCore() and returns JSON stringified result
    case "get_identity_core": const identity = await memoryManager.getIdentityCore(); return { content: [{ type: "text", text: JSON.stringify(identity, null, 2) }] };
  • Tool schema definition including name, description, and empty input schema advertised in listTools
    { name: "get_identity_core", description: "Retrieve the current identity model and core memory clusters", inputSchema: { type: "object", properties: {} } },
  • Core implementation that queries the identityModel table for the latest identity 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; } }

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