create_relation
Create a relationship between two existing entities in the knowledge graph by specifying source, target, and properties.
Instructions
Create a relationship between two entities that both already exist 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": {
"source_entity": "<source_entity>",
"target_entity": "<target_entity>",
"relation_data": "<relation_data>"
},
"name": "create_relation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| relation_data | Yes | Relationship properties, e.g. {'description': '...', 'keywords': '...', 'weight': 1.0}. | |
| source_entity | Yes | Name of the source entity. Must already exist. | |
| target_entity | Yes | Name of the target entity. Must already exist. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||