Skip to main content
Glama

Terminate a server

lw_server_terminate
Destructive

Permanently destroy a server and delete all its data, stopping billing. Requires write and destructive permissions plus a confirmation token before execution.

Instructions

Destroy a server (v2 server/terminate). The server and its data are deleted and billing stops. This cannot be undone. For non-server assets use lw_asset_remove. 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>"
    },
    "name": "lw_server_terminate"
  }
}

Input Schema

NameRequiredDescriptionDefault
accntNoAccount number to act on, for users with access to more than one account. Omit for your own account.
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.5/5.0
Behavior5/5

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

Annotations already mark it destructive, but the description adds real substance: data is deleted, billing stops, the action is irreversible, and it requires both LW_ALLOW_WRITES and LW_ALLOW_DESTRUCTIVE plus a confirmation token. That permission-gating detail is not derivable from the annotations and directly changes how an agent should sequence the call.

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?

Three short sentences, front-loaded with the destructive outcome, then the sibling alternative, then the prerequisite gates. Nothing is padded and the most important warning lands first.

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 destructive single-asset operation with a fully documented four-parameter schema and an output schema, the description covers consequences, prerequisites, alternates, and the two-phase confirmation. No gap an agent would need to fill.

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%, so every parameter including uniq_id and confirm_token is already documented with patterns and sourcing hints. The description only echoes the confirmation step in prose without adding format or constraint detail; baseline 3 is appropriate here.

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 ('Destroy a server') with the underlying endpoint, and immediately distinguishes itself from a named sibling by limiting scope to servers versus lw_asset_remove for other assets. An agent can tell exactly what this does and what it does not cover.

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?

Explicitly routes non-server deletions to lw_asset_remove and spells out the two-gate flow (env flags, then confirmation). It does not discuss when a reversible alternative such as lw_server_power might be preferable to a destroy, which keeps it from a 5.

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