Skip to main content
Glama

Show server power state

lw_server_power_status
Read-onlyIdempotent

Retrieve a server's cached or live power state by uniq_id, returning power status, status, and any running task ID.

Instructions

Get a server's power state. Default reads the cached status (v2 server/power/status, fast). live=true asks the platform for the current state (v2 server/power/check), which is slower. Returns powerStatus, status and any running task id.

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_power_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
liveNoTrue to check the live state instead of the cached one.
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.

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

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

Beyond the readOnly/idempotent/non-destructive annotations, it discloses the two backing endpoints, the latency tradeoff of the live path, and the returned fields (powerStatus, status, running task id). This is real added context; only minor details like rate limiting or cache staleness are absent.

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 compact sentences, front-loaded with the purpose, then the default-vs-live tradeoff, then the return shape. No filler or redundancy.

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 four-parameter read tool with full schema coverage, annotations, and an output schema, this covers operating mode, latency, and results adequately. Slight gap: no mention of authentication or context/account scoping behavior when acting cross-account.

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 all four parameters are already documented, but the description still adds meaning to live by tying it to a distinct endpoint and a performance cost. The other parameters (accnt, context, uniq_id) get no elaboration in the description, which is acceptable given their schema text.

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 ("Get a server's power state") and implicitly separates itself from the mutating siblings lw_server_power and lw_server_power_hard by framing the task as a read that returns powerStatus. An agent can select it without opening the 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 guidance on the tool's two modes: default reads cached status (fast), live=true asks the platform for the current state (slower), naming both endpoints. It lacks an explicit "do not use this to change power state, use lw_server_power instead" exclusion, but the read-only framing makes the boundary 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