Skip to main content
Glama

restart_ako

Destructive

Delete the AKO pod to restart it when AKO is stuck or after config changes; preview blast radius first, then confirm to apply.

Instructions

[WRITE] Restart the AKO pod by deleting it — its StatefulSet recreates it.

Without confirm=True this only previews: it returns blast_radius (context, namespace, the pod's name, uid, phase and restarts, and the Ingresses whose programming pauses until the new pod is Running) and changes nothing. Show that to the user and get their explicit decision. Do not set confirm=True on your own because the user asked earlier: they have not seen what it changes yet. The pod deleted is the one measured (uid precondition).

Refused with confirm=True: a pod already terminating, and a pod or Ingress list that cannot be read. Use when AKO is stuck or after config changes; brief traffic disruption is possible. Run get_ako_status afterwards, and get_ako_logs if the pod is not Running.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "restart_ako"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoFalse (default) returns the blast radius and changes nothing. True applies it.
contextNoK8s context name (optional).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.5.2
    • removedInput schema / properties / confirmed
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "boolean"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Deprecated alias for confirm; removed in the next minor release. confirmed=False holds even when confirm=True.",
      -  "title": "Confirmed"
      -}
  2. Addedv2.4.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and openWorldHint=true, and the description adds substantial context beyond them: default confirm=False is a pure preview returning blast_radius (context, namespace, pod name/uid/phase/restarts, affected Ingresses), the uid precondition guaranteeing the measured pod is the deleted one, and the exact refusal cases. It does not cover timing/retry behavior after a successful restart, which keeps it just short of the top score.

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 a [WRITE] marker and the one-line purpose, then layered preview semantics, refusal cases, and usage/follow-up in that order. Every paragraph carries operational information; the repeated emphasis on not pre-setting confirm is a deliberate safety guardrail rather than filler.

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?

No output schema exists, so the description carries return-value burden and does so by enumerating the blast_radius fields and affected Ingresses. Combined with refusal conditions, the uid precondition, and post-restart verification steps, an agent has everything needed to call a destructive two-param tool safely.

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 coverage is 100% and both parameters are self-documented, so the baseline is 3. The description adds real decision meaning on top: what confirm=True actually commits versus what the preview returns, and an explicit policy that the agent must not self-authorize the confirm flag — context's role (namespace/Ingress scoping of the blast radius) is only loosely implied.

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 ("Restart the AKO pod by deleting it") and immediately explains the mechanism ("its StatefulSet recreates it"), which is essential because the operation is a delete. It also distinguishes itself from the read-only siblings it names later (get_ako_status, get_ako_logs).

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?

Gives the trigger conditions ("when AKO is stuck or after config changes"), the cost ("brief traffic disruption is possible"), and explicit follow-up routing to get_ako_status and conditionally get_ako_logs. The two-phase confirm workflow is spelled out including when NOT to escalate to confirm=True.

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