service_rollback
Roll back a Docker service to its previous spec to undo a bad update. Re-applies the last known-good configuration automatically.
Instructions
Roll a swarm service back to its previous spec (the docker service rollback equivalent).
Re-applies the service's PreviousSpec - the spec from before the most recent service_update /
service_scale. Raises ToolInputError if the service has no PreviousSpec
(it has never been updated, or was already rolled back). The high-level SDK exposes no rollback,
so this reads the current version and previous spec via the low-level APIClient and submits them
with the low-level update_service API call.
Returns: dict: The daemon response (a dict with a "Warnings" key)
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_or_name": "<id_or_name>"
},
"name": "service_rollback"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_or_name | Yes |