Skip to main content
Glama

host_shutdown

Power off a LAN host over its transport, requiring confirm=yes and rejecting local-host targets to prevent accidental shutdowns.

Instructions

Power a LAN host off over its transport (windows: shutdown /s /t 5, linux: systemctl poweroff); it refuses unless confirm is exactly "yes" and refuses any host whose address matches this machine, because powering the wrong box off is only reachable by rebooting it on site.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "host_shutdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNo
confirmNoMust be exactly "yes" or the tool refuses
timeoutMsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It does well on guardrails — confirm gate, self-host refusal, and the rationale that a wrong-box shutdown requires on-site rebooting — and the embedded OS commands reveal it is a graceful shutdown. However, it omits permissions/auth needs, failure and error behavior, whether the call waits for the host to go down, and what timeoutMs actually controls.

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?

A single dense sentence that front-loads the action and mechanism before the safety constraints. Slightly run-on with the parenthetical, but every clause carries information — no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, unannotated tool this covers the most important hazard (irreversible power-off on the wrong host) but leaves real gaps: what timeoutMs does, how host identifiers are formatted, and what the tool returns or raises on refusal or failure. Adequate but not complete for a no-annotation mutation tool.

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

Parameters2/5

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

Schema coverage is only 33%, with just confirm documented. The description repeats the confirm requirement already in the schema and only indirectly hints that host is an address ("whose address matches this machine"); the host format (IP vs hostname), the timeoutMs semantics, and its min/max bounds are all unexplained.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Power a LAN host off over its transport") and backs it with concrete per-OS commands (shutdown /s /t 5, systemctl poweroff). It effectively distinguishes itself from host_reboot by describing termination rather than restart, though it never names the sibling explicitly.

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?

The description gives clear preconditions for use: a confirm value of exactly "yes" is required and the call is refused for the local machine's address. It does not name host_reboot as the alternative when a restart is intended, but the refusal conditions do function as when-not guidance.

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