kg_edges
Create, list, and maintain relationships between knowledge graph nodes, including cleanup and rebuilding to ensure data integrity.
Instructions
Unified tool for relationship operations. Supports: 'create' to link nodes, 'list' to view relationships, 'maintain' for cleanup and rebuilding.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | [maintain] Maximum nodes to process. | |
| nodeId | No | [list] Filter edges by node ID (shows edges connected to this node). | |
| relation | No | [create] Relationship type: references, relates_to, derived_from, blocks, duplicates. | |
| toNodeId | No | [create] Target node ID. | |
| operation | Yes | Edge operation: 'create' to link nodes, 'list' to view edges, 'maintain' for maintenance. | |
| fromNodeId | No | [create] Source node ID. | |
| maintainOp | No | [maintain] Maintenance type: rebuild, prune, reclassify, comprehensive. | comprehensive |
| pruneThreshold | No | [maintain] Strength threshold for pruning (lower = more aggressive). | |
| rebuildThreshold | No | [maintain] Similarity threshold for rebuilding (higher = stricter). |