event_add_parent
Attach a child event to a parent event to model a part-of relationship. Use when the child is a step toward or part of the parent; returns version and parents.
Instructions
Link an Event (child) as part of a larger Event (parent). Link only when it is plainly part of it or a step toward it; two separate trips are siblings. Ground the link on Accounts of the child or of the parent. Adding an existing link changes nothing; a link that would close a cycle fails with PART_OF_CYCLE. Returns {eventId, version, parents} for the child.
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": {
"childEventId": "<childEventId>",
"parentEventId": "<parentEventId>",
"actor": "<actor>",
"sourceAccountIds": "<sourceAccountIds>"
},
"name": "event_add_parent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor | Yes | Who is writing: your own identity, e.g. {"kind": "agent", "id": "laptop"}. Never the owner or another writer. | |
| childEventId | Yes | An Event id from the directory or a receipt. | |
| parentEventId | Yes | An Event id from the directory or a receipt. | |
| expectedVersion | No | The child's version. | |
| sourceAccountIds | Yes | At least one Account of the child or of the parent that the link rests on. |