cos_graph_doctor
Diagnose graph health by scanning for orphans, dangling edges, duplicates, and backend status. Identify causes of empty queries or backend fallback; optionally remove dangling edges after preview.
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 |