add_relationship
Add a directed relationship between two entities in a knowledge graph, specifying type and metadata to link them.
Instructions
Add a directed relationship (edge) between two entities 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": "<source>",
"target": "<target>"
},
"name": "add_relationship"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Relationship type, e.g. 'WORKS_AT' | |
| source | Yes | Source node ID | |
| target | Yes | Target node ID | |
| metadata | No | Additional edge properties |