Skip to main content
Glama

Create automatic HA backup

system_create_backup
Destructive

Creates a quick Home Assistant backup with no extra parameters, using the instance's registered backup service; on Supervisor, automatic settings 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: the called service's result, 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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON 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 already declare destructiveHint=true and non-idempotent, and the description goes well beyond them: it warns that a configured retention count prunes older automatic backups as a side effect, discloses the conditional service dispatch, and specifies the exact error returned when neither service is registered. This is rich behavioral context an agent could not infer from structured fields.

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 core action, then structured into Use/Not-for/Returns/Errors/Limits sections. It is somewhat verbose and the Supervisor-vs-Core dispatch is explained twice, but nearly every sentence carries actionable 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 zero-parameter mutation tool whose annotations already flag destructiveness, the description covers dispatch logic, side effects, usage exclusions, and the exact error payload. Even though an output schema exists, the additional return/error notes make the definition fully self-sufficient for correct invocation.

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?

With zero parameters the baseline is 4, and the description reinforces this by stating the Core/Container path takes 'no name, folder selection or password', confirming there is nothing to pass. No further param semantics are needed.

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 (create) and resource (HA backup) plus the exact service dispatch logic (`backup.create` on Core/Container vs `backup.create_automatic` on Supervisor). It explicitly differentiates itself from the sibling `supervisor_create_backup`, so an agent can select between them without opening schemas.

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' and 'Not for' clauses, and names the alternative tool (`supervisor_create_backup`) along with the conditions that select it (named/partial/password-protected backup, or one that never deletes older ones). 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