Skip to main content
Glama

Shut down, stop or reset a server

lw_server_power_hard
Destructive

Power off or hard reset a server: choose a clean shutdown or a destructive stop/reset that skips the OS shutdown and may lose data; requires write/destructive permissions and confirmation.

Instructions

Take a server down or hard power cycle it (v2 server/power/shutdown, stop or reset). shutdown is a clean OS power off; stop and reset skip the clean shutdown and can lose data. The server stays down after shutdown or stop until started with lw_server_power. Destructive: needs LW_ALLOW_WRITES and LW_ALLOW_DESTRUCTIVE, then a confirmation step.

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": {
      "uniq_id": "<uniq_id>",
      "action": "<action>"
    },
    "name": "lw_server_power_hard"
  }
}

Input Schema

NameRequiredDescriptionDefault
accntNoAccount number to act on, for users with access to more than one account. Omit for your own account.
actionYesshutdown (clean), stop (hard off) or reset (hard power cycle).
contextNoAuth context name (like lw-cli contexts). Omit to use the default. lw_contexts lists them.
uniq_idYesSix-character asset id (uniq_id), e.g. "ABC123". Get it from lw_asset_list or lw_server_list.
confirm_tokenNoLeave empty on the first call to get a preview and a token. Repeat the call with identical parameters plus this token to execute.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
errorNo
statusYes
contextNo
previewNo
summaryYes
warningsNo
next_pageNo
next_stepNo
truncatedNo
expires_atNo
confirm_tokenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

The annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false. The description adds context the annotations do not provide: the required LW_ALLOW_WRITES and LW_ALLOW_DESTRUCTIVE flags, a two-step confirmation, the data-loss risk from stop and reset, and the fact that the server remains down afterwards.

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?

Four short sentences. The most important fact (this is destructive and may lose data) comes early, the effect on the server comes before the prerequisites, and nothing is repeated from the title or schema.

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?

An output schema exists, so the description does not need to explain return values. Between the schema and the description, every parameter is covered (accnt, context and uniq_id are described in the schema). The description covers the destructive operation, its prerequisites and the confirmation. Nothing an agent needs to call this correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the 3 baseline applies. The description goes beyond the schema by explaining the difference between shutdown, stop and reset in terms of data safety. That meaning drives how the agent picks an enum value, though the confirm_token flow is only described in 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?

The description names the specific operation (v2 server/power/shutdown, stop or reset) and the three actions, and it distinguishes this tool from its sibling lw_server_power by stating that the server stays down until restarted with that tool. An agent can tell it apart from lw_server_power and lw_server_power_status without opening either schema.

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

Usage Guidelines5/5

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

It states that shutdown is a clean OS power off, while stop and reset skip that step and can lose data. That is the decision rule for picking an action. It also names lw_server_power as the way to bring the server back, which tells the agent when this tool's effects end.

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

Deploy Server

Other Tools