Skip to main content
Glama

Stop Home Assistant

system_stop_ha
DestructiveIdempotent

Stops Home Assistant only after explicit confirmation, taking the instance fully offline for host maintenance; bringing it back requires a manual restart.

Instructions

Stop Home Assistant after an explicit confirmation.

Calls the homeassistant.stop service. Unlike a restart, nothing brings the instance back automatically — a manual restart is required. Without confirm=True nothing is stopped; the call only returns a safety prompt.

Use when: HA needs to be taken fully offline, e.g. before host maintenance. Not for: a temporary interruption that comes back on its own — use system_restart_ha. Returns: {"service": "homeassistant.stop", "changed_states": [...]} when confirmed, otherwise a confirmation prompt. Errors: returns {"error": "confirmation_required", "message": ..., "action": ...} when confirm is false. Limits: requires a manual restart to bring HA back online; requires confirm=True.

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": "system_stop_ha"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoSet true to actually stop HA. False (default) performs no action and instead returns a confirmation prompt.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.25.1
    • addedInput schema / properties / confirm / description
      Added value: +"Set true to actually stop HA. False (default) performs no action and instead returns a confirmation prompt."
  2. Changed1 schema field changedv0.18.1
    • addedInput schema / properties / confirm
      Added value: +{
      +  "default": false,
      +  "type": "boolean"
      +}
  3. First observedv0.3.0

TDQS

A4.9/5.0
Behavior5/5

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

The annotations already mark the tool as destructive and non-read-only, but the description adds important operational context: nothing restarts HA automatically, manual restart is required, and a non-confirmed call performs no action and returns a safety prompt. It also documents the error shape for missing confirmation.

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?

The description is well structured and front-loads the core action, then provides use cases, exclusions, returns, errors, and limits. It is slightly verbose for a one-parameter tool, but the extra detail is relevant for a destructive operation.

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?

Even though an output schema exists, the description still explains the return behavior and confirmation-required error case. Combined with the manual-restart limitation, it gives the agent everything needed to invoke the tool safely.

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

Parameters5/5

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

Although schema coverage is already 100%, the description reinforces the critical `confirm` behavior: without `confirm=True` nothing is stopped, and the call only returns a prompt. This is more than schema repetition because it clarifies the operational consequence of the flag.

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?

The description states a specific verb and resource ('Stop Home Assistant') and explicitly distinguishes it from restart behavior. It makes clear that the operation shuts HA down fully rather than temporarily interrupting it.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

It gives explicit when-to-use guidance ('HA needs to be taken fully offline, e.g. before host maintenance') and when-not-to-use guidance ('Not for: a temporary interruption... use `system_restart_ha`'). This directly routes the agent between sibling tools.

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