Skip to main content
Glama

Reimage a server (wipes it)

lw_server_reimage
Destructive

Reinstall a server from a template, erasing all existing data. Use it to reset or rebuild a server after confirming backups, since the operation is destructive.

Instructions

Reinstall a server from a template (v2 server/reimage). This erases all data on the server. Pick a template with lw_template_list. force=true skips platform safety checks. Confirm backups first. 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>",
      "template_name": "<template_name>"
    },
    "name": "lw_server_reimage"
  }
}

Input Schema

NameRequiredDescriptionDefault
accntNoAccount number to act on, for users with access to more than one account. Omit for your own account.
forceNoSkip platform safety checks. Default false.
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.
template_nameYesTemplate to install, from lw_template_list.

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.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint and non-idempotency, but the description adds the details an agent actually needs: all data is erased, force skips platform safety checks, and the call requires both LW_ALLOW_WRITES and LW_ALLOW_DESTRUCTIVE plus a confirmation step. That is meaningful behavioral context beyond the structured fields, not a restatement of them.

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?

The destructive consequence is front-loaded in the second sentence, followed by prerequisites, the force caveat, and the auth/confirmation requirements in a tight sequence. Every sentence carries an actionable constraint; nothing is padding.

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?

For a high-risk mutation with an output schema and full annotation coverage, this covers everything an agent needs before invoking: the data-loss consequence, environment-variable gates, the confirmation handshake, and where to source the template. No gap remains that would cause a misinvocation.

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 baseline is 3. The description still adds interpretive value by tying template_name to lw_template_list, explaining what force actually bypasses, and framing the two-phase confirm_token flow as preview-then-execute. It does not clarify accnt or context, which the schema handles on its own.

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 ('Reinstall a server from a template') plus the underlying API path, and the parenthetical 'This erases all data' makes the semantic difference from a plain reinstall unmistakable. An agent can distinguish this from lw_server_create or lw_server_update 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 concrete preconditions: pick the template via lw_template_list and confirm backups before calling. It also names force=true as the safety-check bypass and describes the two-step confirmation. It stops short of explicitly excluding alternatives (e.g. when to recreate rather than reimage), so it is strong but not a full when/when-not/alternatives statement.

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