add_relationship
Create a new relationship between two entities by specifying source and target codes/types and a relation type, with optional validity dates and metadata.
Instructions
Add a new relationship between two entities.
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_type": "<source_entity_type>",
"source_code": "<source_code>",
"relation_type": "<relation_type>",
"target_entity_type": "<target_entity_type>",
"target_code": "<target_code>"
},
"name": "add_relationship"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metadata | No | ||
| valid_to | No | ||
| valid_from | No | ||
| source_code | Yes | ||
| target_code | Yes | ||
| relation_type | Yes | ||
| source_entity_type | Yes | ||
| target_entity_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||