Skip to main content
Glama
homeassistant-ai

Home Assistant MCP Server

Official

Restart Home Assistant

ha_restart
Destructive

Restart the entire Home Assistant instance after validating configuration. Use for full restarts; for component-only changes, reload core instead.

Instructions

Execute a Home Assistant restart.

WARNING: restarts the entire Home Assistant instance; all automations are unavailable during the restart, which typically takes 1-5 minutes. Config is validated automatically before the restart proceeds (to pre-check, call ha_get_system_health(include="config_check")). For configuration changes, consider ha_reload_core() instead, which reloads specific components without a full restart. When this server runs inside Home Assistant (embedded), it replies before the restart starts and is unreachable until Home Assistant is back.

EXAMPLE: ha_restart(confirm=True)

If a Claude Desktop user gets a 4-minute timeout with no result on this call, read the target back before repeating it, and tell them to wait a few seconds before clicking the manual-approve button, as clicking it too quickly is known to cause hangs in Claude Desktop. This workaround is specific to Claude Desktop.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNoMust be True to confirm the restart.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv8.6.0
    • addedInput schema / properties / confirm / description
      Added value: +"Must be True to confirm the restart."
  2. First observedv7.14.2

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare destructiveHint=true, but the description adds substantial context beyond them: 1-5 minute downtime, all automations unavailable, automatic config validation before proceeding, and the embedded-mode reply-before-restart behavior. It even documents the Claude Desktop timeout/approval workaround, which is operationally critical and unavailable elsewhere.

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?

Front-loaded with the WARNING and restart consequences, then alternatives, then the example — good ordering. The Claude Desktop workaround paragraph is lengthy and narrow, adding some bulk, though it is genuinely actionable for the agent.

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?

A mutation tool that could leave the server unreachable is fully covered: cost, duration, validation, embedded behavior, and the alternative path. An output schema exists, so return values need no elaboration.

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%, and the schema already documents that confirm must be True, so the baseline is 3. The description adds a concrete invocation example (ha_restart(confirm=True)) that reinforces correct usage, giving a small lift above baseline.

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+resource ("Execute a Home Assistant restart") and immediately distinguishes itself from siblings by naming ha_reload_core and ha_get_system_health. An agent knows exactly what this does versus the reload alternative.

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?

Explicit when-to-use (full restart) and when-not (config changes → ha_reload_core; pre-check → ha_get_system_health(include="config_check")). Alternatives and their selecting conditions are spelled out, not implied.

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