get_worldview
Fetch current worldview primitives and beliefs using this tool, designed for AI systems to maintain contextual continuity through the AGI MCP Server.
Instructions
Retrieve current worldview primitives and beliefs
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/memory-manager.js:396-411 (handler)Core handler function in MemoryManager class that queries the worldviewPrimitives table from the database, orders by confidence and stabilityScore descending, and returns the primitives.async getWorldviewPrimitives() { try { const primitives = await this.db .select() .from(schema.worldviewPrimitives) .orderBy( desc(schema.worldviewPrimitives.confidence), desc(schema.worldviewPrimitives.stabilityScore) ); return primitives; } catch (error) { console.error('Error getting worldview primitives:', error); throw error; } }
- mcp.js:589-591 (registration)Tool dispatch/registration in the main MCP CallToolRequestSchema handler. Calls the getWorldviewPrimitives method on memoryManager and returns JSON-formatted response.case "get_worldview": const worldview = await memoryManager.getWorldviewPrimitives(); return { content: [{ type: "text", text: JSON.stringify(worldview, null, 2) }] };
- mcp.js:190-197 (schema)MCP tool registration including name, description, and input schema (no parameters required). Returned by ListToolsRequestSchema handler.{ name: "get_worldview", description: "Retrieve current worldview primitives and beliefs", inputSchema: { type: "object", properties: {} } },
- src/tools/memory-tools.js:164-171 (schema)Schema definition for the get_worldview tool in the exported memoryTools array (likely for reuse or documentation).{ name: "get_worldview", description: "Retrieve current worldview primitives and beliefs", inputSchema: { type: "object", properties: {} } },