Skip to main content
Glama

Sleep a VM

vm_sleep

Sleep a VM. Puts a running VM to sleep. It keeps its memory and disk and wakes where it left off. Sleeping an asleep VM answers 200.

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": {
      "vmId": "<vmId>"
    },
    "name": "vm_sleep"
  }
}

Input Schema

NameRequiredDescriptionDefault
vmIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=false and readOnlyHint=false, so the safety profile is covered. The description usefully adds that memory and disk are preserved and the VM resumes where it left off, but it doesn't say what happens to running processes, whether the call blocks until state changes, or how quickly the transition occurs. The "sleeping an asleep VM answers 200" note is genuinely useful behavior detail that goes beyond the annotations.

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

Conciseness3/5

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

Short and front-loaded, but the first two sentences are redundant — "Sleep a VM." restates the title and is immediately re-specified by "Puts a running VM to sleep." The remaining sentences each add real information.

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 one-parameter lifecycle tool with annotations covering the safety profile, the description covers the essential non-obvious behavior (state preservation, resumption, repeat-call behavior). Only return-value shape and any latency/blocking expectations are missing, which is a minor gap given no output schema exists.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries the full burden of explaining the single parameter, and it says nothing about vmId. The name is self-explanatory, but no format, source (e.g., from vm_list), or validation behavior is given.

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 uses a specific verb and resource ("Puts a running VM to sleep") and clarifies the operation's semantics with "It keeps its memory and disk and wakes where it left off." That makes it clearly distinguishable from vm_wake in practice, though neither sibling is named explicitly.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the agent can infer this applies to a running VM and that calling it on an already-sleeping VM is harmless ("answers 200"). It never says when to prefer this over vm_wake/vm_delete or notes prerequisites such as VM state or permissions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.