Undo a chore completion
chore_complete_undoUndo a mistaken chore completion: restore the prior due date, assignee and anchor, reopen any closed swap request, and remove that completion from history within the two-minute window.
Instructions
Take back the caller's own latest completion of a chore: the app restores the due date, assignee and anchor from before the completion, reopens the swap request the completion closed and removes the completion from the history. Use it right after chore_complete when it was a mistake; to change a chore for any other reason use chore_update. Only the member who completed can undo (not_owner for others), only the latest completion, and only within about two minutes after the chore last changed (undo_expired afterwards, not_latest_completion if a later completion exists, completion_not_found if it was already undone). Returns chore_changed if the chore moved on since the completion: read it again. Not idempotent: a second call fails. Pass back the completion and chore values exactly as the chore_complete response returned them. Returns the restored chore.
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>",
"completionId": "<completionId>",
"previous": "<previous>",
"expectedNextDueAt": "<expectedNextDueAt>",
"expectedAssignedMemberId": "<expectedAssignedMemberId>"
},
"name": "chore_complete_undo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Id of the chore, from chores_list. | |
| wgCode | No | Share code of the flat (code from wg_list). Leave it out when the account belongs to one flat. | |
| previous | Yes | The completion.previous object from the chore_complete response, passed back unchanged. | |
| completionId | Yes | Id of the completion to undo, from completion.id in the chore_complete response. | |
| expectedNextDueAt | Yes | The chore nextDueAt as returned by chore_complete. The undo only applies while the chore still has it. | |
| expectedAssignedMemberId | Yes | The chore assignedMemberId as returned by chore_complete, or null. The undo only applies while the chore still has it. |