Read Graph
read_graphRetrieve the entire knowledge graph—all entities, observations, and relations—with optional type and observation limits; use when you need the complete graph instead of keyword or name searches.
Instructions
Read the entire knowledge graph: every entity with its observations, and every relation. The result grows with the graph, so use this only when you need everything; prefer search_nodes to find entities by keyword and open_nodes to read entities whose names you know.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "read_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entityTypes | No | Return only entities whose entityType is one of these (exact match), and only the relations that touch one of them. Omit to return every entity. | |
| observationLimit | No | Return at most this many observations per entity (the first ones, in the order they were added) and add each entity's total as observationCount. Use 0 for names, types and counts only: a cheap overview of a large graph, after which open_nodes reads the entities you need in full. Omit to return every observation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entities | Yes | ||
| relations | Yes |