Skip to main content
Glama
mcp-ht-better-hyperv

mcp-ht-better-hyperv

by HuanTian3365

hyperv_vm_stop

Stops a Hyper-V virtual machine and waits until it is Off. Use shutdown mode to close the guest cleanly or turnoff mode to cut power immediately, which discards unsaved guest data.

Instructions

Stop a Hyper-V virtual machine and wait until it is Off. mode=shutdown (default) closes down cleanly; mode=turnoff cuts power and loses unsaved guest data.

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": {
      "vm": "<vm>"
    },
    "name": "hyperv_vm_stop"
  }
}

Input Schema

NameRequiredDescriptionDefault
vmYesName of the Hyper-V virtual machine.
modeNostop only. shutdown (default) asks the guest to close down cleanly; turnoff cuts power immediately and loses unsaved work inside the guest.
timeoutSecNoHow long to wait for the target state, in seconds. Default 120.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the call blocks until the VM reaches Off, that turnoff cuts power, and that unsaved guest data is lost. It does not say what happens if the VM is already stopped, what errors surface on timeout, or what credentials/permissions are needed.

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?

Two sentences, no waste, with the blocking behavior and the destructive-mode warning front-loaded before the mode explanation.

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?

Complete for a three-parameter mutation tool whose schema is fully described; the destructive path is called out. Only edge cases such as already-off VMs and timeout failure behavior are left unstated.

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 coverage is 100%, so all three parameters are already documented including the mode enum and timeoutSec default. The description restates the mode distinction rather than adding syntax or new meaning, so baseline 3 applies.

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 ('Stop a Hyper-V virtual machine') plus a strong behavioral guarantee ('wait until it is Off'), which cleanly separates it from start/restart siblings without needing to name them.

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?

Gives explicit guidance on choosing between the two modes, including which one is the default and which one risks data loss. It stops short of stating when to prefer this tool over hyperv_vm_restart or other alternatives, but the action is unambiguous enough that this is a minor gap.

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