check_graph
Detects orphan relations, missing parents, and hierarchy cycles in a knowledge graph. Optionally repairs orphans and missing parent IDs.
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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | When true, repair orphan relations + missing parentIds. Default false (dry-run). |