Create Graph Relationship
create_graph_relationshipCreate a relationship between two nodes in a deployed graph project.
The rel_type must match a relationship key from the project schema. Use get_graph_data_schema to see available relationship types.
Example: rel_type: "authored" from_id: "alan-turing-001" to_id: "on-computable-numbers-001" data: {"year": 1936}
The from_id and to_id must be entity_ids of existing nodes.
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": {
"project_id": "<project_id>",
"rel_type": "<rel_type>",
"from_id": "<from_id>",
"to_id": "<to_id>"
},
"name": "create_graph_relationship"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Relationship properties (optional) | |
| to_id | Yes | Target node entity_id | |
| from_id | Yes | Source node entity_id | |
| rel_type | Yes | Relationship key (e.g., 'authored', 'related_to') | |
| project_id | Yes | Project ID (UUID) | |
| environment | No | Environment: staging or production (default: staging) |