Skip to main content
Glama

Rollout undo

k8s_rollout_undo

Roll back a Kubernetes workload to a previous revision to recover from a bad deployment; specify resource type and name, optionally revision, namespace, or context.

Instructions

Roll back to a revision (default: the previous one), like kubectl rollout undo.

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": {
      "resource_type": "<resource_type>",
      "name": "<name>"
    },
    "name": "k8s_rollout_undo"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
contextNoNamed context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted.
revisionNo
namespaceNo
resource_typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

C2.7/5.0
Behavior2/5

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

With readOnlyHint=false and openWorldHint=true already supplied, the description needed to add the operational context: that this mutates live workloads, that pods will be recreated, which resource kinds are acceptable, and whether the rollback can itself be undone. It adds none of that, contributing only the default-revision behavior.

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?

A single front-loaded sentence with no filler; the default-revision detail is placed inline where it is needed. It is efficient, though the terseness borders on under-specification rather than tight writing.

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

Completeness2/5

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

This is a mutating, cluster-affecting operation with no output schema, five parameters at 20% coverage, and only terse annotations. The description is far too thin to prepare an agent for calling it correctly — it omits valid resource types, what happens to running pods, and how to discover revision numbers.

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

Parameters2/5

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

Schema description coverage is only 20% — just the context parameter is documented — so the description bore most of the burden. It explains only that revision defaults to the previous revision, and leaves resource_type (which workload kinds are valid), name, and namespace entirely unaddressed.

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 description names a specific verb and effect ('Roll back to a revision') and anchors it to a known kubectl command, so an agent can tell what the tool does. It does not differentiate from the rollout siblings (e.g., k8s_rollout_history would be the tool to inspect revisions before choosing one), so it stops short of a 5.

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

Usage Guidelines2/5

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

The only guidance is the default behavior ('default: the previous one'); there is no statement of when to use this versus k8s_rollout_history or k8s_rollout_restart, and no preconditions such as requiring an existing rollout or a valid revision number.

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

Deploy Server

Other Tools