Skip to main content
Glama
T1nker-1220

Knowledge Graph Memory Server

read_graph

Retrieve the complete knowledge graph to access stored information and learned lessons from previous interactions.

Instructions

Read the entire knowledge graph

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler function for reading the entire knowledge graph by delegating to loadGraph(). This is the main logic executed by the tool.
    async readGraph(): Promise<KnowledgeGraph> { return this.loadGraph(); }
  • index.ts:1062-1069 (registration)
    Registration of the 'read_graph' tool in the list returned by ListToolsRequestHandler, including name, description, and empty input schema.
    { name: "read_graph", description: "Read the entire knowledge graph", inputSchema: { type: "object", properties: {}, }, },
  • Dispatch handler in CallToolRequestSchema that executes the read_graph tool by calling knowledgeGraphManager.readGraph() and returning JSON-formatted response.
    case "read_graph": return { content: [{ type: "text", text: JSON.stringify(await knowledgeGraphManager.readGraph(), null, 2) }] };

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/T1nker-1220/memories-with-lessons-mcp-server'

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