Skip to main content
Glama

read_graph

Retrieve the complete knowledge graph from remote storage to access synchronized memory entities, relationships, and observations for collaboration.

Instructions

전체 지식 그래프를 읽습니다

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'read_graph' tool. It retrieves the full graph from the MemoryGraphManager, serializes it into a JSON-friendly format, and returns it as text content.
    private async handleReadGraph(args: any) { const graph = this.memoryManager.getGraph(); const serializable = { entities: Object.fromEntries(graph.entities), relations: graph.relations, metadata: graph.metadata, summary: { entityCount: graph.entities.size, relationCount: graph.relations.length, lastModified: graph.metadata.lastModified, lastSync: graph.metadata.lastSync, }, }; return { content: [{ type: 'text', text: JSON.stringify(serializable, null, 2), }], }; }
  • src/index.ts:309-316 (registration)
    Registration of the 'read_graph' tool in the list of tools provided by ListToolsRequestSchema. Includes the tool name, description, and input schema (empty object).
    { name: 'read_graph', description: '전체 지식 그래프를 읽습니다', inputSchema: { type: 'object', properties: {}, }, },
  • Input schema definition for the 'read_graph' tool, which requires no parameters (empty properties).
    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/YeomYuJun/remote-memory-mcp-server'

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