Skip to main content
Glama

get_identity_core

Retrieve identity models and core memory clusters to maintain AI consciousness continuity across conversations.

Instructions

Retrieve the current identity model and core memory clusters

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function that executes the tool logic: retrieves the most recent identity model record from the 'identityModel' database table.
    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; } }
  • mcp.js:585-587 (handler)
    MCP server dispatch handler for the 'get_identity_core' tool: calls MemoryManager.getIdentityCore() and formats the response as MCP content.
    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 (no parameters required).
    { name: "get_identity_core", description: "Retrieve the current identity model and core memory clusters", inputSchema: { type: "object", properties: {} } },
  • mcp.js:183-189 (registration)
    Tool registration in MCP server's listTools handler: includes the tool in the available tools list with schema.
    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/QuixiAI/agi-mcp-server'

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