update_edge
Modify properties of an existing edge. Choose to merge changes with current properties or replace them entirely.
Instructions
Update properties on an existing edge.
Use this tool when: you need to modify an edge's properties after creation. Do NOT use for: changing the edge type (delete and recreate), creating new edges (use create_edge), or deleting edges (use delete_edge).
Args: edge_id: The ID of the edge to update. properties: Key-value properties to set. merge: If True (default), merge with existing properties. If False, replace all properties.
Returns: JSON with the updated edge's id, source_id, target_id, edge_type, and properties.
Examples: update_edge(0, {"weight": 2.5}) update_edge(0, {"since": 2024}, merge=False)
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": {
"edge_id": "<edge_id>",
"properties": "<properties>"
},
"name": "update_edge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edge_id | Yes | ||
| properties | Yes | ||
| merge | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |