Skip to main content
Glama

Rollback a Workload

rollback_workload
Destructive

Roll a workload back: restores the previous image of every container whose image changed, read from the workload's change history (last 30 days), or puts the image passed on the first container. Then waits up to 40 seconds for it to be ready. Only images change; env and everything else stay. Get approval first: it replaces the running version.

Input Schema

NameRequiredDescriptionDefault
gvcYesGVC name.
orgNoOrganization slug.
nameYesWorkload to roll back.
imageNoImage for the first container. Default: every container whose image changed gets its previous one.
waitSecondsNoSeconds to wait on the server until the workload is ready on the previous image, 0 to 45. The call returns as soon as it is, or with the latest state when the time runs out. Use this instead of calling again and again.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNoThe full result. Read this, not only the summary.
detailsNo
summaryYes
nextStepsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / gvc / description
      Previous value: -"GVC slug. If the user named none, list_resources (kind \"gvc\") and let them choose."New value: +"GVC name."
    • changedInput schema / properties / image / description
      Previous value: -"Image to go back to. Default: the image the workload ran before the current one."New value: +"Image for the first container. Default: every container whose image changed gets its previous one."
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

Adds real behavioral content beyond the annotations: the ~40s readiness wait, the fact that env and other settings are untouched, the 30-day history boundary, and that the running version is replaced requiring approval. Annotations already carry destructive/openWorld/non-idempotent, so this is meaningful added context.

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?

Front-loaded with the action and mechanism, then constraints, then the approval warning. Dense but nearly every clause carries information; the run-on middle sentence is the only mild cost.

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?

With an output schema present, rich annotations, and full schema coverage, the description supplies everything an agent still needs: what is preserved, how long the wait is, and the approval prerequisite.

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 coverage is 100%, so every parameter is already documented, including the default behavior of image. The description restates the image default and its first-container targeting but adds no new syntax or edge-case meaning, so the baseline 3 applies.

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?

States a specific verb and resource plus the exact mechanism: restores the previous image of every container whose image changed, or sets the image on the first container. The scope detail ('only images change') makes it distinguishable from restart_workload and update_workload even though they aren't named.

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

Usage Guidelines4/5

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

Gives clear operating context: the 30-day change-history window, the image-override option, and an explicit 'get approval first' warning that flags the operation as a replacement of the running version. It stops short of naming alternatives (restart_workload, update_workload) or stating when-not to use it.

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.