cos_graph_doctor
Diagnose knowledge graph health by detecting orphans, dangling edges, duplicates, and backend status. Run report-only mode to review issues, then optionally fix dangling edges.
Instructions
Graph health snapshot — orphans, dangling edges, duplicates, backend status.
Call when graph queries return nothing or meta.backend_fallback=true.
Args: fix: If True, attempt safe repairs (delete dangling edges). Default False — use the report-only mode to see what would change first.
Returns:
JSON envelope with healthy boolean, issues list, stats dict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |