Skip to main content
Glama

Cancel (remove) an asset

lw_asset_remove
Destructive

Cancel a Liquid Web asset to stop service and billing; irreversible, requires write/destructive permissions and confirmation, with optional cleanup_assets warnings.

Instructions

Request cancellation of an asset (v2 asset/remove). This stops service and billing for the asset and is hard to undo. cleanup_assets defaults to false; read the preview warnings before turning it on. Use lw_server_terminate for cloud servers if you want the server-specific call. 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_asset_remove"
  }
}

Input Schema

NameRequiredDescriptionDefault
accntNoAccount number to act on, for users with access to more than one account. Omit for your own account.
ratingNoOptional experience rating: 0, 5 or 10.
commentNoFree-text cancellation comment (sent as cancellation_comment).
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.
cleanup_assetsNoDangerous. If this is the last asset that is not a domain, SSL or DNS zone, also turns off auto-renew on every domain and SSL and removes all remaining DNS zones. Default false.
cancellation_reasonNoShort reason for the cancellation.

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

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

Annotations already flag destructiveHint=true, but the description goes well beyond them: it says the action stops service and billing, is hard to undo, requires LW_ALLOW_WRITES and LW_ALLOW_DESTRUCTIVE, and needs a preview-then-confirm round trip. It also spells out the cascading effects of cleanup_assets (auto-renew off on domains/SSL, remaining DNS zones removed).

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?

Four dense sentences that each carry load, front-loaded with purpose and undo risk before the alternative and the permission gates. Slightly compressed runtime for a destructive tool, but nothing is wasted.

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, multi-parameter mutation with an output schema and full annotation coverage, it supplies everything an agent needs: reversibility, cascading deletions, auth prerequisites, and the two-step confirmation protocol.

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, but the description adds operational meaning by warning to read preview warnings before enabling cleanup_assets. It does not explain rating, comment, or context, though those are already documented 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?

States a specific verb and resource ('Request cancellation of an asset') and names the underlying endpoint (v2 asset/remove). It immediately distinguishes itself from the sibling lw_server_terminate, so an agent can route 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 Guidelines4/5

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

Gives explicit conditions and an alternative: use lw_server_terminate for cloud servers, and a confirmation step follows. The alternative routing is slightly soft ('if you want the server-specific call') rather than stating when the server-specific call is required, but the direction is clear.

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