Skip to main content
Glama

force_ako_sync

Destructive

Resync all Kubernetes resources with the AVI Controller by restarting the AKO pod when drift is detected; previews blast radius unless confirm=True.

Instructions

[WRITE] Force AKO to resync all K8s resources with the AVI Controller.

The resync restarts the AKO pod so it rebuilds every Virtual Service, pool and VS-VIP from the cluster's current resources. Without confirm=True this only previews: it returns blast_radius (context, namespace, the pod's name, uid and phase, and the Ingresses it re-programs) 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.

Refused with confirm=True: a pod already terminating, and a pod or Ingress list that cannot be read. Use when drift is detected; may cause brief traffic disruption. Run diff_ako_sync first to see what is out of sync, then get_ako_sync_status.

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": "force_ako_sync"
  }
}

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.8/5.0
Behavior5/5

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

Annotations already declare destructive=true and non-idempotent, but the description goes further: it details the dry-run default, enumerates what blast_radius returns (context, namespace, pod name/uid/phase, affected Ingresses), names the failure modes that refuse confirm=True (terminating pod, unreadable pod/Ingress list), and warns of brief traffic disruption.

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?

Front-loaded with purpose, then consequence, then refusal cases, then recommended workflow — a sensible order. Slight redundancy between "Show that to the user and get their explicit decision" and the following sentence about not setting confirm=True, but both carry safety weight.

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, and the description compensates by describing the preview payload's contents. Combined with the refusal conditions and the disruption warning, an agent has everything needed to call this destructive tool correctly and 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 the schema already defines both parameters, so the baseline is 3. The description adds real semantic weight by treating confirm as a consent gate rather than a flag — warning against setting it without user approval — which the schema field description does not convey.

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 ("Force AKO to resync all K8s resources with the AVI Controller") plus the mechanism (AKO pod restart rebuilding Virtual Services, pools and VS-VIPs). The "[WRITE]" prefix immediately separates it from the read-only siblings like get_ako_sync_status and diff_ako_sync.

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 an explicit trigger ("Use when drift is detected") and orders the alternatives: "Run diff_ako_sync first to see what is out of sync, then get_ako_sync_status." It also spells out the human-in-the-loop gate — preview unless the user explicitly consents — which is the key usage decision for this tool.

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