create_edge
Create a directed relationship between two existing nodes by specifying their IDs and edge type, then return the new edge with its ID.
Instructions
Create one directed edge from source_id to target_id (both must exist) and return it with its id.
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_id": "<source_id>",
"target_id": "<target_id>",
"edge_type": "<edge_type>"
},
"name": "create_edge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edge_type | Yes | Relationship type: "KNOWS". | |
| source_id | Yes | ||
| target_id | Yes | ||
| properties | No | Property values: {"name": "Ada", "born": 1815}. |