Skip to main content
Glama

read_graph

Access the complete knowledge graph to retrieve entities and relationships, enabling structured reasoning and memory for AI-assisted problem-solving within MCP Think Tank.

Instructions

Read the entire knowledge graph

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dummyNoPlaceholder parameter - this tool doesn't require parameters but returns the complete knowledge graph with entities and relationships

Implementation Reference

  • Handler function for the 'read_graph' tool that serializes and returns the entire knowledge graph as JSON.
        // Return as string - still using the underlying graph for compatibility
        return JSON.stringify(graph.toJSON());
      }
    });
  • Input schema definition for the 'read_graph' tool using Zod, featuring an optional dummy parameter.
      dummy: z.string().describe("Placeholder parameter - this tool doesn't require parameters but returns the complete knowledge graph with entities and relationships").optional()
    }),
    execute: async () => {
  • Registration of the 'read_graph' tool on the FastMCP server instance.
      name: 'read_graph',
      description: 'Read the entire knowledge graph',
      parameters: z.object({
        dummy: z.string().describe("Placeholder parameter - this tool doesn't require parameters but returns the complete knowledge graph with entities and relationships").optional()
      }),
      execute: async () => {
        // Return as string - still using the underlying graph for compatibility
        return JSON.stringify(graph.toJSON());
      }
    });
Install Server

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/flight505/mcp-think-tank'

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