Skip to main content
Glama
itseasy21

Knowledge Graph Memory Server

read_graph

Access and retrieve the complete knowledge graph stored in the Memory Server to enable AI systems to recall user-specific information across conversations.

Instructions

Read the entire knowledge graph

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function that implements the logic for the 'read_graph' tool by loading the entire knowledge graph from the memory file.
    async readGraph(): Promise<KnowledgeGraph> { return this.loadGraph(); }
  • Type schema defining the structure of the KnowledgeGraph object returned by the read_graph tool.
    interface KnowledgeGraph { entities: Entity[]; relations: Relation[]; }
  • index.ts:420-427 (registration)
    Registration of the 'read_graph' tool in the ListToolsRequestSchema response, including name, description, and empty input schema.
    { name: "read_graph", description: "Read the entire knowledge graph", inputSchema: { type: "object", properties: {}, }, },
  • Dispatch handler in the CallToolRequestSchema that executes the read_graph tool by calling readGraph and serializing the result to JSON.
    case "read_graph": return { content: [{ type: "text", text: JSON.stringify(await knowledgeGraphManager.readGraph(), null, 2) }] };

Other Tools

Related Tools

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/itseasy21/mcp-knowledge-graph'

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