Skip to main content
Glama

Rollout restart

k8s_rollout_restart

Restart a Kubernetes workload rollout by stamping its pod template, triggering a rolling restart without changing the workload configuration.

Instructions

Restart a rollout (kubectl rollout restart): stamp the pod template.

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_restart"
  }
}

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.
namespaceNo
resource_typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.4.2

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=true), so the bar is lower. The description usefully discloses the mechanism — patching the pod template annotation — which explains why this is non-destructive config-wise while still triggering pod recreation. It omits what actually happens to running pods (rolling replacement, potential transient unavailability) and any RBAC/patch-permission requirements.

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?

One sentence, front-loaded with the action and the kubectl equivalent, with zero filler. The terse parenthetical style compresses well but borders on under-specification rather than being genuinely efficient.

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 state-changing workload operation with no output schema and only 25% schema coverage, so the description carries most of the burden. It never says which resource types are valid, what a restart does to running pods, or whether it can be reverted — all things an agent needs before invoking it.

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 coverage is only 25% and the description adds no parameter meaning at all. Critically, resource_type is undocumented anywhere — an agent cannot tell from description or schema whether it should pass 'deployment', 'statefulset', 'daemonset', or something else, which is the single highest-risk ambiguity for this tool.

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?

States a specific verb+resource ('Restart a rollout') and anchors it to the canonical kubectl command plus the mechanism ('stamp the pod template'). This clearly distinguishes it from sibling rollout verbs like pause/resume/undo/status, though it never explicitly names those alternatives.

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

Usage Guidelines3/5

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

The use case is implied by 'restart a rollout' — an agent can infer this is the rolling-restart action for a workload. There is no explicit when-to-use/when-not guidance, no mention of prerequisites (e.g. the workload must exist and be rollout-capable), and no routing to siblings like k8s_rollout_undo when a restart is not the right remedy.

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