Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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 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: {} } },
  • 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: {} } },

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