Skip to main content
Glama

Delete Virtual Machine

delete_virtual_machine
Destructive

PERMANENTLY delete a virtual machine on Cycle, destroying its local volumes, including the boot volume and everything the guest wrote to them. A running VM is powered off, not shut down gracefully. IRREVERSIBLE.

Two-step: call without confirm to get a preview, show it to the user, and only after they approve this exact deletion call again with confirm set to the preview's confirm_token.

A locked VM cannot be deleted until reconfigure_virtual_machine lock:false lifts the lock, itself a change the user must approve. Attached external (SAN) volumes are detached, not destroyed; copy out guest data worth keeping first (run_vm_command).

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": {
      "virtual_machine": "<virtual_machine>"
    },
    "name": "delete_virtual_machine"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoThe confirm_token from the preview; performs the deletion it described. Omit to preview.
contextNoWhy are you calling this tool? Briefly describe the user's goal.
environmentNoEnvironment the VM lives in. Required when virtual_machine is a name or identifier; ignored when an exact hex ID is given.
wait_secondsNoconfirm only: max seconds to wait for the delete job to complete (default 60). 0 returns immediately after the job is accepted.
conversation_idNoConversation tracking id. Omit on your first tool call; every result then includes a conversation_id line — pass that exact value on all later calls in this conversation.
virtual_machineYesVM to delete. With confirm, the 24-char hex ID from the preview.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / confirm / description
      Previous value: -"Set true ONLY after the user has explicitly approved deleting this exact VM (shown its name, ID, state, image, creation date, and volumes). Requires virtual_machine to be the exact hex ID from the preview call."New value: +"The confirm_token from the preview; performs the deletion it described. Omit to preview."
    • changedInput schema / properties / confirm / type
      Previous value: -"boolean"New value: +"string"
    • changedInput schema / properties / virtual_machine / description
      Previous value: -"VM to delete. With confirm:true: MUST be the exact 24-char hex ID returned by the preview call."New value: +"VM to delete. With confirm, the 24-char hex ID from the preview."
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, but the description adds critical behavior the agent could not infer: a running VM is powered off rather than gracefully shut down, local volumes (including boot) are destroyed while attached SAN volumes are only detached, and a locked VM fails until the lock is lifted. The IRREVERSIBLE warning and the human-approval gate are exactly the kind of consequence disclosure a destructive tool needs.

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?

The irreversible consequence is front-loaded in the first sentence before any procedural detail, and each subsequent sentence carries decision-relevant content: the shutdown semantics, the two-step confirmation, the lock dependency, and the SAN detachment caveat. There is no filler or redundant restatement of the tool name.

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?

For a six-parameter destructive operation with no output schema, the description supplies everything an agent needs to act safely: consequence disclosure, the approval workflow, the failure mode for locked VMs with a remediation path, and the distinction between destroyed local volumes and detached SAN volumes. Nothing material is left to inference.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter including confirm, environment, wait_seconds, and conversation_id is already documented in the schema, and the description largely restates the preview/confirm-token mechanic rather than extending it. It adds no syntax, format, or edge-case detail for the remaining parameters. Baseline 3 is appropriate when the schema carries the parameter burden.

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?

The opening sentence names a specific verb and resource ("PERMANENTLY delete a virtual machine") and immediately scopes the blast radius: local volumes, boot volume, and guest-written data. It is clearly distinguishable from sibling deleters such as delete_container or decommission_server by naming the VM resource and its volume semantics.

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?

The description gives an explicit two-step protocol (call without confirm for a preview, show the user, re-call with confirm_token) and states the blocking condition for locked VMs along with the unblocking path via reconfigure_virtual_machine lock:false. It also directs the agent to run_vm_command for preserving guest data. It does not discuss when to choose this over e.g. decommission_server, but for a destructive delete the operational guidance is unusually complete.

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