neo4j_insert_relationship
Create a relationship between two existing nodes by specifying their labels and unique matching properties, along with the relationship type and optional properties.
Instructions
Create a relationship between two existing nodes (matched by label + properties).
Args: from_label: Label of the source node. from_properties: Properties to match the source node (must be unique). rel_type: Relationship type (e.g. "PAGOU", "PERTENCE"). to_label: Label of the target node. to_properties: Properties to match the target node (must be unique). rel_properties: Optional properties on the relationship itself.
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_label": "<from_label>",
"from_properties": "<from_properties>",
"rel_type": "<rel_type>",
"to_label": "<to_label>",
"to_properties": "<to_properties>"
},
"name": "neo4j_insert_relationship"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rel_type | Yes | ||
| to_label | Yes | ||
| from_label | Yes | ||
| to_properties | Yes | ||
| rel_properties | No | ||
| from_properties | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |