Skip to main content
Glama
home-assistant-agent-mcp

home-assistant-agent-mcp

by Hemanthkolli

ha_create_automation

Creates a new Home Assistant automation from a complete config object, including triggers, conditions, actions, and mode, so AI agents can add event-driven routines.

Instructions

Create a new automation. Provide the full config object.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "config": "<config>"
    },
    "name": "ha_create_automation"
  }
}

Input Schema

NameRequiredDescriptionDefault
configYesAutomation config: alias, description, trigger, condition, action, mode

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the entire behavioral burden and does very little with it. Beyond the mutation implied by 'create,' it discloses nothing about permissions, whether the automation is created enabled or disabled, what happens on invalid config, or whether the call is idempotent. The one useful hint is 'Provide the full config object,' implying partial configs are rejected.

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?

Two short sentences, front-loaded with the purpose and followed by the key directive about the argument. No filler, though the second sentence is nearly redundant with the schema's own parameter description, so it isn't maximally efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A nested-object mutation tool with no annotations and no output schema needs more than two sentences: the automation config format (Home Assistant trigger/action shapes) is non-trivial and undescribed, and nothing is said about the return value or the created automation's identifier. An agent must infer the config dialect entirely.

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 schema description already enumerates the config keys (alias, description, trigger, condition, action, mode), so the schema does the heavy lifting. The description's phrase 'full config object' adds a marginal completeness requirement — all keys expected, not a subset — but gives no detail on expected structure or format for the nested trigger/condition/action shapes.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: "Create a new automation." The create-vs-update distinction from siblings like ha_update_automation is self-evident from the verb, but the description never names an alternative or scopes what an automation is in this system, so it falls short of full sibling differentiation.

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

Usage Guidelines3/5

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

Usage is only implied by the verb 'create' — an agent knows to reach for it when making a new automation, but there is no statement of prerequisites, no mention of when to prefer ha_update_automation, and no caveats such as the automation needing to be valid before creation. Nothing actively misleading, just unstated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.