Skip to main content
Glama
AIops-tools

xcpng-aiops

by AIops-tools

vm_stop

Shut down a VM via clean guest shutdown or forced power-off. Use dry-run to test before applying.

Instructions

[WRITE][risk=medium] Stop a VM (clean shutdown; hard with force). Inverse: vm_start.

A clean shutdown needs the guest tools running; force maps to a hard power-off. Captures the prior power state.

Refuses the VM declared as running Xen Orchestra (xo_self_vm_uuid on the target) — stopping XO removes the API vm_start would travel over, so recovery needs hypervisor console access. dry_run refuses it too: a preview that returns green for a call that will be refused is a wrong preview. That guard is exact and opt-in: an undeclared target is refused nothing, on either path. The dry-run adds a weaker IP-based selfVmHint (null when there is none) that is a coincidence to check, never a verdict and never a block — XO's API exposes no self endpoint, so nothing here can be certain.

Args: vm_id: VM uuid (see vm_list). force: Hard power-off instead of a clean guest shutdown. dry_run: If True, preview without stopping (no undo recorded). target: Xen Orchestra target name from config; omit for the default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNo
vm_idYes
targetNo
dry_runNo
Behavior5/5

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

Despite no annotations, description fully discloses behavioral traits: clean shutdown depends on guest tools, force is hard power-off, captures prior power state, refuses self VM, and dry_run behavior with IP hint. No contradictions.

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?

Description is detailed but well-structured with paragraphs and bullet-style args. Front-loaded with purpose and important notes. Could be slightly tighter but earns its length.

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?

Covers purpose, parameters, behavioral notes, edge cases (self VM, dry_run), and distinguishes from siblings. No output schema, so return values not explained, but otherwise complete for a stop action.

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

Parameters5/5

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

Schema coverage is 0%, but description explains each parameter: vm_id as UUID, force as hard power-off, dry_run as preview, target as XO target. Adds significant meaning beyond 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?

Clearly states it stops a VM with clean shutdown or force, and identifies inverse as vm_start. Differentiates from siblings like vm_reboot and vm_migrate.

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?

Provides guidelines on when to use clean vs force, notes requirement of guest tools for clean shutdown, and warns against stopping self VM or using dry_run with self guard. Could be more explicit about alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AIops-tools/XCPng-AIops'

If you have feedback or need assistance with the MCP directory API, please join our Discord server