graph_add_relation
Create a relation between two nodes using one of 22 predefined types to model hierarchical, semantic, index, chronological, or dependency connections.
Instructions
Create a relation between two nodes. Supports 22 relation types: Hierarchical (contains, decomposes_to, belongs_to), Semantic (derives_from, supports, contradicts, related_to, questions, answers), Index (indexes Entity->Fileref, extracted_from Fact/Chunk->Fileref, references, implements, relates_to_file), Chronological (sequel_to, supersedes, leads_to, resolves, triggers), Dependency (depends_on, blocks, constrained_by).
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": {
"from_id": "<from_id>",
"to_id": "<to_id>",
"type": "<type>"
},
"name": "graph_add_relation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from_id | Yes | Source node ID | |
| to_id | Yes | Target node ID | |
| type | Yes | Relation type (22 types available) | |
| weight | No | Relation strength 0.0-1.0 |