Undo a setup run
undo_setup_runUndo a setup run in one step: delete what it created, restore what it changed, recreate what it deleted; click problems it resolved or ignored are open again (never dismissed), and ones it set back to open are resolved or ignored as before; a review it saved is deleted unless a recommendation's status changed since or the review was updated since; recommendation statuses it set are put back, and a review it edited gets its whole earlier version back, unless the review was updated again or a status set since. dry_run defaults to true and changes nothing: always run it first and tell the user what the undo would do, above all any funnel_history (days a funnel counted are deleted with it and cannot come back) and anything skipped. Then call again with dry_run false. Changes someone else made after the run are never overwritten; they are skipped and reported. A run can be undone once.
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": {
"run_id": "<run_id>"
},
"name": "undo_setup_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | Setup run ID, from start_setup_run or list_setup_runs. | |
| dry_run | No | Default true: work the undo out and change nothing. Pass false only after telling the user what the dry run said. | |
| project | No | Project ID, from list_projects. Required when this connection covers more than one project; may be left out when it covers one (and with an API key, which belongs to one project). |