Skip to main content
Glama

upgrade_cluster

Destructive

Upgrade the Kubernetes version of an Ankra-provisioned self-managed cluster to target_version (e.g. 'v1.31.4' or 'v1.31.4+k3s1'; the version must be in the platform catalogue). Runs a rolling upgrade as a tracked operation: nodes are drained and upgraded one at a time, control plane first. Downgrades and minor-version skips are refused, and the cluster must be online with no operations in progress. Not reversible - Kubernetes cannot be downgraded through this API.

Input Schema

NameRequiredDescriptionDefault
cluster_idNoUUID of the target cluster. Optional when a cluster is selected.
cluster_nameNoExact name of the target cluster. Optional when a cluster is selected.
target_versionYesTarget Kubernetes version, e.g. 'v1.31.4' or 'v1.31.4+k3s1'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say destructive=true and non-idempotent; the description goes well beyond them by disclosing the rolling drain-one-node-at-a-time procedure, control-plane-first ordering, refusal of downgrades and minor-version skips, the online/no-ops-in-progress precondition, and that the change is irreversible. That is exactly the operational context an agent needs before invoking a destructive upgrade.

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?

Front-loaded with the action, then target_version format, then the behavioural guarantees and constraints. Three dense sentences with no filler; every clause conveys a fact the caller needs.

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

Completeness4/5

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

Covers the action, preconditions, mechanics, and irreversibility thoroughly, and no output schema exists so return values need not be explained. It calls the upgrade a 'tracked operation' but stops short of telling the agent how to follow that tracking (e.g. via wait_for_execution), which is the one remaining gap for an async destructive call.

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

Parameters4/5

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

Schema description coverage is already 100%, so the baseline is 3. The description earns a bump by adding a constraint the schema omits: target_version must come from the platform catalogue, plus concrete format examples. cluster_id/cluster_name semantics remain entirely to the schema, and the description doesn't clarify how the name/id fallback resolves.

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 (upgrade the Kubernetes version of an Ankra-provisioned self-managed cluster) and scopes it precisely to self-managed clusters, which implicitly separates it from the managed-cluster sibling. An agent can tell what it does and roughly which tool family it belongs to without opening 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 Guidelines4/5

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

Gives real preconditions for use: the cluster must be Ankra-provisioned and self-managed, online, with no operations in progress, and the target version must exist in the platform catalogue. However it never names or routes the agent away from the competing siblings (upgrade_managed_cluster, roll_cluster_to_version, upgrade_cluster_agent), so the selection guidance is implicit rather than explicit.

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