graph_edge_upsert
Adds or updates a relationship edge between two Knowledge Graph nodes, defining source, target, relationship type, and optional edge metadata.
Instructions
Add or update a relationship edge between two nodes 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": {
"from": "<from>",
"to": "<to>",
"relationship": "<relationship>"
},
"name": "graph_edge_upsert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target node ID | |
| from | Yes | Source node ID | |
| props | No | Edge metadata | |
| relationship | Yes | Relationship name, e.g. 'renders', 'calls', 'allocates', 'crashed_at' |