set_relation
Add or remove a typed relation between two existing knowledge entries, optionally resolving a pending reference; superseded relations are closed but remain readable.
Instructions
Add or remove a typed relation between two existing entries, optionally resolving a matching pending reference. When adding, valid_from and valid_until record when the assertion holds in the world, and supersedes names the target of the same-predicate relation this one replaces from valid_from on. The replaced relation stays stored and readable; it is closed, not deleted.
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": {
"id": "<id>",
"expected_revision": "<expected_revision>",
"predicate": "<predicate>",
"target_id": "<target_id>",
"action": "<action>"
},
"name": "set_relation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| action | Yes | ||
| predicate | Yes | ||
| target_id | Yes | ||
| supersedes | No | ||
| valid_from | No | ||
| valid_until | No | ||
| expected_revision | Yes | ||
| resolve_reference | No |