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
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_identity_core"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
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: {} } }, - src/memory-manager.js:380-393 (handler)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; } } - src/tools/memory-tools.js:157-163 (schema)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: {} } },