check_graph
Detect orphan relations, missing parents, and hierarchy cycles in the knowledge graph. Optionally repair orphan relations and clear missing parentIds while reporting cycles.
Instructions
v12.5.0 — Detect orphan relations (from/to references a missing entity), missing parents (entity.parentId references a missing entity), and hierarchy cycles. Reports findings. With apply=true, deletes orphan relations and clears missing parentIds; cycles are always reported but never auto-repaired (no safe default for which edge to break).
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": "check_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | When true, repair orphan relations + missing parentIds. Default false (dry-run). |