Skip to main content
Glama

Restart Home Assistant

system_restart_ha
DestructiveIdempotent

Restart Home Assistant after explicit confirmation, causing about 30 seconds of downtime. Use when a config change requires a full restart.

Instructions

Restart Home Assistant after an explicit confirmation.

Calls the homeassistant.restart service, which causes roughly 30 seconds of downtime for the whole instance, including this add-on. Without confirm=True nothing is restarted; the call only returns a safety prompt describing how to confirm.

Use when: a config change requires a full restart, e.g. after system_check_config reports the config is valid. Not for: a no-downtime reload — use system_reload_all; stopping HA without restarting it — use system_stop_ha; restarting only Core under Supervisor — use supervisor_restart_core. Returns: {"service": "homeassistant.restart", "changed_states": [...]} when confirmed, otherwise a confirmation prompt. Errors: returns {"error": "confirmation_required", "message": ..., "action": ...} when confirm is false. Limits: interrupts Home Assistant for about 30 seconds; 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_restart_ha"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoSet true to actually restart HA. False (default) performs no restart 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 restart HA. False (default) performs no restart 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.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the concrete cost of the operation (~30 seconds of downtime for the whole instance, including the add-on) and the confirmation gate that makes an unconfirmed call a no-op. It also documents the success payload and the `confirmation_required` error shape, which is exactly the disambiguation an agent needs before a destructive call.

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?

Well front-loaded with labeled sections (Use when / Not for / Returns / Errors / Limits) that make it scannable. Minor redundancy: the confirmation requirement is stated three times (intro, Limits, error section), which costs a little space without adding information.

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 single-boolean destructive tool, the description covers trigger conditions, alternatives, downtime, success payload, and the exact error response — no gaps remain for an agent to call it correctly. The output schema exists, yet the inline return/error summary is still coherent and non-duplicative in spirit.

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

Parameters3/5

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

Schema coverage is 100% and the `confirm` parameter already documents its default and no-op behavior, so the description largely restates it ('Without `confirm=True` nothing is restarted'). It reinforces the safety semantics usefully, but adds no format or edge-case detail the schema lacks, so baseline 3 applies.

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 ('Restart Home Assistant') and immediately names the underlying service ('homeassistant.restart'), so the action is unambiguous. It is clearly distinguishable from sibling restart/reload tools, which the description names explicitly.

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?

Provides an explicit 'Use when' with a concrete trigger (a config change after `system_check_config` reports valid) and a 'Not for' list naming three alternatives with the exact condition that selects each: `system_reload_all`, `system_stop_ha`, `supervisor_restart_core`. Nothing about tool selection is left to inference.

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