rollback_app
Bi-directional rollback. The service captures a pre-rollback safety checkpoint FIRST, then applies the rollback (stop unit → revert VM disk → restore DB → start → health check). Returns the safety cp's id so you can roll forward again if the rollback was a mistake.
M1 stub mode: no real disk reverts (M1.5 wires real libvirt snapshots). Schema + state transitions are real — App.deploy_history gets a synthetic 'rolled-back to ' entry.
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": {
"app_id": "<app_id>",
"checkpoint_id": "<checkpoint_id>"
},
"name": "rollback_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | App ID. | |
| api_key | No | MCP API key | |
| checkpoint_id | Yes | Checkpoint to roll back to (from list_checkpoints). | |
| session_token | No | Session token |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||