Skip to main content
Glama

Turn Zero Cloud for Backend & Hosting

Roll back production

tzcloud_roll_back
Destructive

Put 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

NameRequiredDescriptionDefault
versionYesA 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`.
applicationYesYour account's application `id` from `tzcloud_list_applications`, not its name or label.
wait_secondsNoSeconds to hold the answer until the version-history row this call starts ends. A value out of range is refused `invalid_request`.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true and openWorldHint=true, so the bar is lower. The description adds real context beyond them: specific refusal codes (`target_environment_halted`, `version_already_serving`, `version_newer_than_serving`), the requirement that the owner agree, that no snapshot/undo is offered for data across model changes, and how to confirm the operation actually began. However, the core safety profile is largely carried by the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and its main constraint are front-loaded, and the verification procedure comes last, which is a sensible ordering. Sentences are dense and occasionally telegraphic ('Across model changes, the account owner decides on data.'), which costs a bit of readability, but no sentence is genuinely redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, open-world mutation with no output schema, the definition covers prerequisites, valid input sourcing, refusal conditions, consent requirements, and an explicit post-call verification path including how to distinguish a started rollback from an ambiguous result. Nothing an agent needs before or after the call is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all three parameters, including `wait_seconds` bounds and the `version` ordering rule, are already documented in the schema. The description restates the `promotable`/earlier-version constraint without adding format, default, or interaction detail beyond it. The baseline of 3 applies when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names a specific verb and resource and delimits the scope precisely: putting an *earlier* deployed version on production along with that version's setting bindings and plain values. That 'earlier than currently serving' qualifier implicitly separates it from a forward promote, though no sibling is named outright, so the differentiator must be inferred.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It supplies prerequisites (halt the environment with `tzcloud_halt_environment` using `resume: true` first), the source of valid inputs (`promotable` numbers from `tzcloud_list_versions`), when-not conditions (no comparison if nothing is serving), and a verification alternative (`tzcloud_read_status` with `wait_seconds`). It even states the retry rule: repeat only if the status read shows the rollback did not start.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources