Skip to main content
Glama

Create automatic HA backup

system_create_backup
Destructive

Create a quick Home Assistant backup using the instance's registered backup service and existing automatic-backup settings. On Supervisor installs, configured retention may prune older backups.

Instructions

Create a Home Assistant backup using whichever backup service the instance registers.

On Supervisor installs backup.create does not exist, so this calls backup.create_automatic instead, which creates a backup using the automatic-backup settings configured in Settings -> System -> Backups; when a retention count is configured there, those same settings prune older automatic backups as a side effect of this call. On HA Core/Container installs, where backup.create exists, that one is called instead — no name, folder selection or password. Returns an error if neither service is registered.

Use when: HA already has the wanted automatic-backup settings configured and a quick backup with no extra parameters is enough. Not for: a named, partial, and/or password-protected backup on a Supervisor install, or a backup that never deletes older ones — use supervisor_create_backup. Returns: {"service": "backup.create"|"backup.create_automatic", "changed_states": [...]}, or an error dict when neither service is registered. Errors: {"error": "Neither backup.create nor backup.create_automatic is registered on this Home Assistant instance."}. Limits: on Supervisor installs, applies the instance's configured retention count, which can delete older backups.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations flag destructiveHint=true, and the description explains exactly why: on Supervisor installs the retention count is applied and older automatic backups may be deleted. It further discloses which service is called on which install type, that no name/folder/password is passed, and the exact error condition when neither service is registered.

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 verb+resource, then labeled sections (Use when / Not for / Returns / Errors / Limits) that make scanning easy. There is minor redundancy: the 'neither service is registered' error is stated twice, once inline and once under Errors.

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 zero-parameter mutation tool with a destructive side effect, everything an agent needs is covered: dispatch logic, side effects, exclusions, error shape, and return shape even though an output schema already exists. No material gap remains.

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?

The schema has zero parameters, so the baseline is a 4. The description reinforces this by stating the call takes 'no extra parameters' and no name, folder selection or password, which matches the empty schema rather than adding new semantics.

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 concrete verb and resource ('Create a Home Assistant backup') and immediately explains the service-dispatch behavior that makes this tool distinct. It explicitly contrasts with `supervisor_create_backup`, so an agent can choose between the two without opening either schema.

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 explicit 'Use when' conditions (automatic-backup settings already configured, quick no-parameter backup) and explicit 'Not for' exclusions (named, partial, password-protected, or non-deleting backups) with the correct alternative named. Nothing 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