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

mcp-ht-better-hyperv

by HuanTian3365

hyperv_vm_restart

Restarts a Hyper-V virtual machine by stopping it, waiting until it is Off, then starting it and waiting until it is Running.

Instructions

Restart a Hyper-V virtual machine: stop, wait for Off, start, wait for Running.

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_restart"
  }
}

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

B3.3/5.0
Behavior3/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. It does disclose the real sequence and that the tool blocks until the VM reaches Off and then Running, which is genuinely useful and non-obvious. However, it says nothing about what happens on timeout, whether the tool errors or returns partial state, or what level of disruption/privilege is involved.

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?

A single front-loaded sentence that names the action and then the exact sequence of internal steps, with no filler. Every clause earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter mutation tool with no annotations and no output schema, the description covers the happy path well and the schema covers the parameters fully. The remaining gap is failure/timeout semantics, which an agent needs before invoking a destructive restart, so it is adequate but not complete.

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%, including an enum for mode and a documented timeoutSec default, so the schema already explains every parameter. The description adds only the implicit link between 'wait for Off/Running' and the timeout, which is marginal. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb (Restart) and resource (Hyper-V virtual machine) and immediately clarifies that restart is a composite stop/wait/start/wait operation. That distinguishes it from a plain start or stop, though it never names hyperv_vm_start or hyperv_vm_stop as the alternatives for those narrower needs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no explicit when-to-use guidance: nothing says to pick this over calling hyperv_vm_stop followed by hyperv_vm_start, and nothing states prerequisites or exclusions. Usage is only implied by the word 'Restart'.

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