Read Graph
read_graphRetrieves the entire knowledge graph, including all entities, observations, and relations. Use it when you need a complete view; search or open specific nodes for targeted lookups.
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
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"namespace": "<namespace>"
},
"name": "read_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| namespace | Yes | The namespace to operate in (required). It must already exist: create it with create_namespace, and list the existing ones with list_namespaces. Namespaces are isolated from each other: the same entity name can exist in several, and a relation only connects entities in its own namespace. | |
| 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 |