Cleanup Duplicate Events
cleanup_duplicate_eventsPreview first, 30-day undo. Canonicalize one owned duplicate calendar pair: copy fields unique to the archived event onto keep_event_id, then recoverably archive archive_event_id (archived_at + canonical_id). Person tags stay on the archived row (restorable). Preview with preview_destructive_change({tool:"cleanup_duplicate_events",arguments:{keep_event_id,archive_event_id}}). Reviewed and reversible: first call preview_destructive_change({ tool: "cleanup_duplicate_events", arguments: { keep_event_id, archive_event_id } }), which stores the exact change without applying it. After the user confirms, call cleanup_duplicate_events with preview_id, restore_window_acknowledged: true and request_id; the reviewed preview is applied exactly and a changed record is refused. Returns restore_id; restore_change({ restore_id }) undoes it for 30 days unless the record was edited since. ($0.10; API key required)
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": {
"keep_event_id": "<keep_event_id>",
"archive_event_id": "<archive_event_id>",
"preview_id": "<preview_id>",
"restore_window_acknowledged": "<restore_window_acknowledged>",
"request_id": "<request_id>"
},
"name": "cleanup_duplicate_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preview_id | Yes | preview_id returned by preview_destructive_change for this tool. | |
| request_id | Yes | Required idempotency key; retries return the original receipt. | |
| keep_event_id | Yes | Survivor event_id from get_events (kept active). | |
| idempotency_key | No | Alias for request_id. | |
| archive_event_id | Yes | Redundant event_id from get_events (archived, restorable). | |
| survivor_event_id | No | Alias of keep_event_id. | |
| canonical_event_id | No | Alias of keep_event_id. | |
| duplicate_event_id | No | Alias of archive_event_id. | |
| restore_window_acknowledged | Yes | Must be true after reviewing the preview and its 30-day restore window. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep | No | ||
| account | No | The Dayze account this data belongs to. With more than one Dayze connection, name it in the answer. | |
| archive | No | ||
| link_moves | No | ||
| preview_id | No | ||
| provenance | No | Which connector wrote the record and which connected Dayze account received it. | |
| restore_id | No | Pass to restore_change to undo within restore_window_days. | |
| reversible | No | ||
| field_copies | No | ||
| preview_text | No | ||
| keep_event_id | No | ||
| archive_event_id | No | ||
| idempotent_replay | No | ||
| restore_expires_at | No | ||
| restore_window_days | No | ||
| attendees_retained_on_archive | No |