Skip to main content
Glama

Get Workload Rollout History

get_rollout_history
Read-onlyIdempotent

Inspect Kubernetes Deployment, StatefulSet, or DaemonSet revision history to trace image changes and rollout regressions; read-only, with no rollback actions.

Instructions

Inspect native Kubernetes controller revision history for a single Deployment, StatefulSet, or DaemonSet.

Returns cluster_id, workload_type, name, namespace, current_revision, and revisions (ordered newest-first with revision number, change_cause, and container image). Strictly read-only and never performs rollbacks.

Use when tracing image changes or rollout regressions on a Kubernetes workload controller. Prefer get_helm_release_history and diff_helm_revisions when inspecting Helm chart release revisions, or get_manifest to view the workload's full current YAML specification.

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": {
      "cluster_id": "<cluster_id>",
      "namespace": "<namespace>",
      "workload_type": "<workload_type>",
      "name": "<name>"
    },
    "name": "get_rollout_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesExact name of the Deployment, StatefulSet, or DaemonSet inside `namespace` (1-253 chars, e.g. 'checkout-api').
namespaceYesTarget Kubernetes namespace name (1-63 chars, e.g. 'default', 'prod'). Use `get_namespaces` to discover available namespaces on the cluster.
cluster_idYesUnique KubeOrbit cluster identifier returned by `list_teams_and_clusters` (1-63 URL-safe chars, e.g. 'gke-prod-us', 'eks-staging').
workload_typeYesKubernetes controller kind supporting rollout history: one of 'deployment', 'statefulset', or 'daemonset'.

Output Schema

NameRequiredDescriptionDefault
nameNoWorkload controller name.
namespaceNoNamespace containing the workload.
revisionsNoRevision entries ordered newest-first, each with `revision`, `change_cause`, and container `image` when available.
cluster_idNoCluster identifier queried.
workload_typeNoWorkload controller kind queried (deployment, statefulset, or daemonset).
current_revisionNoLatest revision number observed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changedv0.1.1
    • addedInput schema / properties / cluster_id / description
      Added value: +"Unique KubeOrbit cluster identifier returned by `list_teams_and_clusters` (1-63 URL-safe chars, e.g. 'gke-prod-us', 'eks-staging')."
    • addedInput schema / properties / cluster_id / maxLength
      Added value: +63
    • addedInput schema / properties / cluster_id / minLength
      Added value: +1
    • addedInput schema / properties / cluster_id / pattern
      Added value: +"^[a-zA-Z0-9][a-zA-Z0-9._-]{0,62}$"
    • addedInput schema / properties / name / description
      Added value: +"Exact name of the Deployment, StatefulSet, or DaemonSet inside `namespace` (1-253 chars, e.g. 'checkout-api')."
    • addedInput schema / properties / name / maxLength
      Added value: +253
    • addedInput schema / properties / name / minLength
      Added value: +1
    • addedInput schema / properties / name / pattern
      Added value: +"^[a-zA-Z0-9][a-zA-Z0-9._-]{0,252}$"
    • addedInput schema / properties / namespace / description
      Added value: +"Target Kubernetes namespace name (1-63 chars, e.g. 'default', 'prod'). Use `get_namespaces` to discover available namespaces on the cluster."
    • addedInput schema / properties / namespace / maxLength
      Added value: +63
    • addedInput schema / properties / namespace / minLength
      Added value: +1
    • addedInput schema / properties / namespace / pattern
      Added value: +"^[a-zA-Z0-9][a-zA-Z0-9._-]{0,62}$"
    • addedInput schema / properties / workload_type / description
      Added value: +"Kubernetes controller kind supporting rollout history: one of 'deployment', 'statefulset', or 'daemonset'."
    • addedInput schema / properties / workload_type / enum
      Added value: +[
      +  "deployment",
      +  "statefulset",
      +  "daemonset"
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "cluster_id": {
      +      "default": "",
      +      "description": "Cluster identifier queried.",
      +      "title": "Cluster Id",
      +      "type": "string"
      +    },
      +    "current_revision": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Latest revision number observed.",
      +      "title": "Current Revision"
      +    },
      +    "name": {
      +      "default": "",
      +      "description": "Workload controller name.",
      +      "title": "Name",
      +      "type": "string"
      +    },
      +    "namespace": {
      +      "default": "",
      +      "description": "Namespace containing the workload.",
      +      "title": "Namespace",
      +      "type": "string"
      +    },
      +    "revisions": {
      +      "description": "Revision entries ordered newest-first, each with `revision`, `change_cause`, and container `image` when available.",
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "title": "Revisions",
      +      "type": "array"
      +    },
      +    "workload_type": {
      +      "default": "",
      +      "description": "Workload controller kind queried (deployment, statefulset, or daemonset).",
      +      "title": "Workload Type",
      +      "type": "string"
      +    }
      +  },
      +  "title": "RolloutHistoryOutput",
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered; the description reinforces it with 'Strictly read-only and never performs rollbacks,' which resolves the natural ambiguity about whether history inspection can revert anything. It also discloses ordering (newest-first) and the fields carried per revision, though much of the field list overlaps the existing output schema.

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?

Three short paragraphs with the purpose front-loaded, then return shape, then routing guidance — easy to scan. Minor waste in enumerating return fields that a present output schema already documents, but overall tight and well ordered.

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 four-required-parameter read tool with full schema coverage, an output schema, and rich annotations, the description supplies everything an agent still needs: scope, native-vs-Helm distinction, read-only guarantee, and sibling routing.

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 every parameter already has examples, patterns, and discovery hints (e.g. 'Use `get_namespaces` to discover available namespaces'), so the schema carries the semantic load. The description only restates that the target is one of the three controller kinds, which the enum already encodes — baseline 3 is appropriate.

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: 'Inspect native Kubernetes controller revision history for a single Deployment, StatefulSet, or DaemonSet.' The word 'native' plus the explicit controller kinds immediately separates it from Helm-release siblings without needing the schema.

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 gives a positive trigger ('tracing image changes or rollout regressions on a Kubernetes workload controller') and then names three alternatives with the conditions that select them: `get_helm_release_history` and `diff_helm_revisions` for Helm chart revisions, `get_manifest` for the current YAML spec. That is explicit when-to-use and when-not-to-use guidance.

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