Skip to main content
Glama
DustinTrap

kvm-pilot

by DustinTrap

eject

Idempotent

Detach virtual media currently presented to the host, the inverse of mounting an ISO. Use it when a host should stop booting from mounted media; power state and boot order stay unchanged.

Instructions

Detach the virtual media presented to the host (inverse of mount_iso). GATED, reversible.

Needs KVM_PILOT_MCP_ALLOW_MEDIA + per-invocation approval. With nothing attached it returns detached=false and says so — not an error. Touches neither power nor the boot order: a host running from the ISO keeps running until it reboots; on BMCs, set_boot_device picks what boots next. Returns the typed act outcome.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNoPer-invocation approval when the client cannot prompt a human: set true to approve this exact call under the operator's standing policy. Leave false when the client supports elicitation (a human is asked). Never pre-set it speculatively; a denial returns outcome=not_confirmed.
profileNoProfile name from ~/.config/kvm-pilot/config.toml selecting which KVM/BMC (and its managed host) this call targets. Omit to use the server's default (KVM_PILOT_PROFILE).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.0.0
    • addedInput schema / properties / confirm / description
      Added value: +"Per-invocation approval when the client cannot prompt a human: set true to approve this exact call under the operator's standing policy. Leave false when the client supports elicitation (a human is asked). Never pre-set it speculatively; a denial returns outcome=not_confirmed."
    • addedInput schema / properties / profile / description
      Added value: +"Profile name from ~/.config/kvm-pilot/config.toml selecting which KVM/BMC (and its managed host) this call targets. Omit to use the server's default (KVM_PILOT_PROFILE)."
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: the gating requirements, that the operation is reversible, the no-op edge case (returns detached=false rather than an error), and the side-effect boundary (does not touch power or boot order; a running host keeps running until reboot). This is exactly the kind of behavioral disclosure annotations like idempotentHint/destructiveHint cannot convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core verb+resource and the sibling relationship, then layered with gating, edge-case and side-effect notes in order of importance. Dense rather than padded, though the closing 'Returns the typed act outcome' is mildly redundant given the earlier detached=false explanation.

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?

With no output schema, the description still conveys the return contract (typed act outcome, detached=false when nothing is attached), the auth/approval prerequisites, and the side-effect scope. An agent has everything needed to invoke it correctly and interpret the result.

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% and both parameters (confirm, profile) are fully documented in the schema, so the baseline is 3. The description mentions 'per-invocation approval', which loosely maps to ``confirm``, but adds no syntax, default, or interaction detail beyond the schema.

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 (detach) applied to a specific resource (virtual media presented to the host) and explicitly frames itself as the inverse of ``mount_iso``. An agent can distinguish it from mount_iso, list_virtual_media and set_boot_device without opening any 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 clear operative context: it is gated behind KVM_PILOT_MCP_ALLOW_MEDIA plus per-invocation approval, and it routes boot-order concerns to ``set_boot_device``. It stops short of an explicit when-not clause, but the inverse-of-mount_iso framing and the boot-order hand-off leave little ambiguity.

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