Skip to content
Docs menu

Tool reference · Knowledge graph & temporal facts

memory_graph_stats

Reports the size and health of the knowledge graph: node and edge counts by type, orphans, communities and the most important nodes.

local stdio server read-only

When to use

  • You want a quick health check of the graph after indexing or a reflection run.
  • You want to see which concepts the memory considers most important.
  • You suspect many disconnected (orphan) nodes.

Parameters

This tool takes no parameters.

Example

Arguments

{}

Result shape

{
  "total_nodes": 2140,
  "total_edges": 5872,
  "nodes_by_type": {
    "concept": 1320,
    "technology": 210,
    "rule": 95
  },
  "edges_by_type": {
    "mentioned_with": 3100,
    "uses": 640
  },
  "avg_connectivity": 5.49,
  "orphan_nodes": 37,
  "top_nodes": [
    {
      "name": "postgresql",
      "type": "technology",
      "importance": 0.91,
      "mention_count": 214
    }
  ],
  "communities": 18
}

Values are illustrative; the keys follow the server's handler. MCP clients receive the result as JSON text content.

Server description

The description the server sends to your agent in tools/list, captured from the v14.7.0 source:

Knowledge graph statistics: nodes, edges, communities, top concepts, health metrics.

Found a mistake? Open an issue on GitHub.

Search