Skip to main content
Glama
vcf-lifecycle

vcf-lifecycle

by warroyo

Avi Upgrade

avi_upgrade

Upgrades Avi to an uploaded image after a successful precheck and user approval, scoped to controllers, Service Engine groups, or the full system.

Instructions

Upgrade Avi to an uploaded image after the user approves. Needs an avi_precheck of the same image and scope without errors.

scope: system (controllers and all Service Engine groups), controller (controllers only) or service_engines (groups only, once the controller is at the target). se_group_uuids: for service_engines, the groups to upgrade (uuids from avi_status); left out, every group that is behind.

accept_warnings: check codes of precheck warnings the user has seen and explicitly accepted, for example ["SYSERR_MC_BACKUP_ERR"] once a backup is stored off the controller. Every warning must be listed, or the upgrade is refused.

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": {
      "image_uuid": "<image_uuid>",
      "target_version": "<target_version>"
    },
    "name": "avi_upgrade"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNosystem
image_uuidYes
se_group_uuidsNo
target_versionYes
accept_warningsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses the most important traits: the precheck prerequisite, the ordering constraint for SE groups, scope-dependent blast radius (controllers plus all SE groups vs controllers only vs groups only), and a hard refusal if any known warning is not accepted. It does not state whether an upgrade is reversible or what happens on mid-flight failure, which is the remaining gap for a destructive operation.

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 purpose sentence, then one line per parameter with zero filler. Roughly 90 words for a five-parameter mutating tool at 0% schema coverage is proportionate, and no sentence merely restates the schema.

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 prerequisites, refusal semantics, and scope effects an agent needs before calling; return values are handled by the existing output schema, so they need not be described. Missing is any statement about progress/duration or failure/rollback behavior, which matters for a long-running destructive upgrade with no annotations.

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 0%, so the description must compensate: it defines all three scope values semantically, explains se_group_uuids including its default-when-omitted behavior and where the uuids come from (avi_status), and explains accept_warnings format and consequence with a concrete code example. image_uuid and target_version, both required, are left with only the implicit gloss "an uploaded image" – no hint that the uuid comes from avi_images or what version format target_version expects.

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 Avi to an uploaded image") plus the gating condition ("after the user approves"), and names the prerequisite tool avi_precheck, so the agent can place it correctly in the upgrade sequence 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 Guidelines5/5

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

Explicit sequencing rules: precheck of the same image and scope must exist without errors, and service_engines upgrades only apply "once the controller is at the target." It also tells the agent what to do with se_group_uuids (omit to catch every group that is behind) and what happens when accept_warnings is incomplete (refused).

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