merge_concepts
Merge duplicate concept nodes into a single canonical node, copying missing properties and rewiring all relationships, to resolve inconsistencies from naming variations.
Instructions
Merge a duplicate concept node into the primary, re-wiring all edges.
Use when the LLM extracted the same concept twice with slightly different names
(e.g. "MOSFET" and "MOSFET Transistor") and you want to consolidate them.
Steps performed automatically:
1. Gap-fill: properties present on duplicate but absent on primary are copied.
2. All outgoing edges from duplicate are re-created on primary (idempotent MERGE).
3. All incoming edges to duplicate are re-pointed to primary (idempotent MERGE).
4. Duplicate node is permanently deleted.
To find candidates: use query_knowledge to search for near-duplicate concepts,
or check find_bridges for concepts that reference each other indirectly.
Args:
primary_id: concept_id of the node to keep (the canonical one).
duplicate_id: concept_id of the node to absorb and delete.
Returns:
JSON summary with rewired edge counts and deletion confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| primary_id | Yes | ||
| duplicate_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |