Roll back production
tzcloud_roll_backPut earlier deployed code on production with that version's setting bindings and plain values. The serving version draws version_already_serving, a newer one version_newer_than_serving. With none serving, no comparison is made. With one or two environments, take a promotable number from tzcloud_list_versions. Across model changes, the account owner decides on data. No action offers snapshots yet. If halted, it refuses target_environment_halted. First use tzcloud_halt_environment with resume: true. The owner must agree or have asked.
An answer not from this platform does not show whether the rollback started. Examples are gateway error pages or closed connections. Call tzcloud_read_status with wait_seconds first. It started if environments.production.deploy shows kind promote with a started_at later than your call. Rollbacks use that kind. Repeat tzcloud_roll_back only if that read shows it did not start.
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": {
"application": "<application>",
"version": "<version>"
},
"name": "tzcloud_roll_back"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | Yes | A deployed number from `tzcloud_list_versions` with `promotable` true. Where production serves a version, choose an earlier number: the serving version is refused `version_already_serving`, and a newer one `version_newer_than_serving`. | |
| application | Yes | Your account's application `id` from `tzcloud_list_applications`, not its name or label. | |
| wait_seconds | No | Seconds to hold the answer until the version-history row this call starts ends. A value out of range is refused `invalid_request`. |