Skip to main content
Glama

Preview a rollback (dry run)

preview_rollback
Read-onlyIdempotent

Preview what rolling back a deployment would do without changing anything. Shows the target release and impact so you can review it, then run the rollback from the dashboard or CLI.

Instructions

Dry run only: work out what rolling a deployment back would do, without changing anything. Without targetRelease it previews a rollback to the release before the current one. It never performs the rollback; the user runs it from the dashboard or the CLI after reviewing the preview.

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": "<app>",
      "deployment": "<deployment>"
    },
    "name": "preview_rollback"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYesApp name exactly as list_apps returns it.
deploymentYesDeployment name, for example Production or Staging.
targetReleaseNoLabel to roll back to, for example v12. Omit to use the release before the current one.

Output Schema

NameRequiredDescriptionDefault
appYes
noticeYes
outcomeYes
refusalNo
executedYes
warningsYes
deploymentYes
newReleaseNo
notCheckedYes
rulesSourceYes
targetReleaseNo
currentReleaseNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the safety profile is partly covered; the description nonetheless adds real behavioral content: no state changes occur, the omitted-target case resolves to the release before the current one, and this tool cannot complete the operation end-to-end. That handoff detail is not derivable from 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.

Conciseness5/5

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

Three short sentences, with the most decision-relevant constraint ('Dry run only … without changing anything') front-loaded. Every sentence carries distinct information: scope, default target resolution, and the fact that the rollback must be executed elsewhere.

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?

An output schema exists, so return values need no explanation, and the description supplies the remaining pieces: non-mutating behavior, default parameter resolution, and the limitation that execution happens outside this tool. Nothing an agent needs in order to call this correctly 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%, and the schema already documents app, deployment, and targetRelease, including the 'omit to use the release before the current one' behavior. The description restates that same default in prose without adding format or validation detail, so it contributes little beyond the schema.

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

Purpose5/5

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

The description opens with a specific verb and resource ('Dry run only: work out what rolling a deployment back would do') and immediately bounds the scope with 'without changing anything.' It is unmistakable from siblings like get_live_release or list_release_history, which report state rather than simulate a rollback.

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 states when to use it (before doing a rollback, to see the effect), what the default behavior is when targetRelease is omitted, and explicitly what it will not do ('It never performs the rollback'). It also names the follow-up path — the user runs the actual rollback from the dashboard or CLI after reviewing — which is exactly the when/when-not guidance an agent needs.

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