Roll back a migration
rollbackUndoes a migration or a sample: DELETES from the destination CRM every record this migration created (records that were there before are never touched). Call it only when the user asks to undo, and only after they confirm. Without the user's confirmationCode (shown on a page of the web app, see the refusal's url) it deletes nothing. Returns { started } (false with a status when a rollback is already running); follow it with get_migration until the step is rolled_back.
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>"
},
"name": "rollback"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The migration id start_migration returned, like MIG-8F3C1D92. | |
| confirmationCode | No | The code the user read on the confirmation page of the web app and pasted into the chat. Omit it on the first call: the refusal gives the page's link. |