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
| Name | Required | Description | Default |
|---|---|---|---|
| dummy | No | Placeholder parameter - this tool doesn't require parameters but returns the complete knowledge graph with entities and relationships |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"dummy": {
"description": "Placeholder parameter - this tool doesn't require parameters but returns the complete knowledge graph with entities and relationships",
"type": "string"
}
},
"type": "object"
}
Implementation Reference
- src/memory/tools.ts:404-407 (handler)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()); } });
- src/memory/tools.ts:401-403 (schema)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 () => {
- src/memory/tools.ts:398-408 (registration)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()); } });