add_edge
Create a relationship between two concepts in a knowledge graph. Specify source and target nodes, relation type, and optional strength.
Instructions
Create a relationship between two concepts in the knowledge graph.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source_concept": "<source_concept>",
"target_concept": "<target_concept>",
"relation_type": "<relation_type>"
},
"name": "add_edge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_concept | Yes | Source node ID or concept name | |
| target_concept | Yes | Target node ID or concept name | |
| relation_type | Yes | Type of relationship. One of: - "prerequisite": Source must be learned before target - "builds_on": Target extends/deepens source concept - "related_to": Concepts are connected (bidirectional semantically) - "contradicts": Common misconception (source is wrong belief about target) - "applies_to": Source concept applies to target domain/topic - "parent_of": Ontological hierarchy (source is parent category of target) | |
| strength | No | Confidence in the relationship from 0.0 to 1.0. Default 1.0. | |
| reasoning | No | Explanation of why this relationship exists |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||