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

mcp-ht-better-hyperv

by HuanTian3365

hyperv_credential_set

Store a Hyper-V guest administrator username and password in local plugin configuration so credentials persist across restarts and avoid repeated prompts.

Instructions

Store the guest administrator username and password for a Hyper-V virtual machine. Omit password (or pass an empty string) when the guest account has no password. The password is never returned or logged by this tool; it is written to this plugin's local configuration file under the harness home, so it survives restarts without touching the shared credential store. Ask the user once, store it, and reuse it — do not re-ask on every run.

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>",
      "username": "<username>"
    },
    "name": "hyperv_credential_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
vmYesName of the Hyper-V virtual machine.
passwordNoGuest account password. Omit or pass an empty string when the account has no password.
usernameYesGuest account name. Must be a local administrator inside the guest.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

No annotations are supplied, and the description carries the full burden well: it discloses that the password is never returned or logged, that it is written to the plugin's local configuration file under the harness home, that it survives restarts, and that it does not touch the shared credential store. These are exactly the persistence and secrecy facts an agent needs before storing a secret.

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 with the core action, then edge case, then storage/security behavior, then agent guidance — every sentence earns its place with no filler. The 'store it, and reuse it' cadence is mildly repetitive with 'do not re-ask on every run' but the redundancy reinforces the instruction rather than wasting space.

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?

For a three-parameter write tool with no annotations and no output schema, the description covers purpose, edge case, storage location, secrecy, and reuse policy. It does not state what happens if a credential already exists (overwrite vs. error) or what the tool returns on success, which are the remaining gaps for a mutation tool.

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 the schema already documents vm, username, and password including the empty-string convention. The description echoes the password-omission rule and the local-administrator requirement rather than adding syntax or format detail beyond the schema. Baseline 3 is appropriate when the schema does the heavy lifting.

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: 'Store the guest administrator username and password for a Hyper-V virtual machine.' Combined with the tool name and the sibling hyperv_credential_clear, an agent can immediately tell this is the write counterpart to the clear tool without opening a schema.

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 concrete operational guidance: omit the password or pass an empty string when the guest account has none, and 'ask the user once, store it, and reuse it — do not re-ask on every run.' It also implicitly separates this from the shared credential store. It stops short of explicitly naming hyperv_credential_clear or stating overwrite/replace semantics when a credential already exists.

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