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

home-assistant-agent-mcp

by Hemanthkolli

ha_update_automation

Update an existing Home Assistant automation by numeric ID with a new configuration to revise triggers, conditions, or actions.

Instructions

Update an existing automation by its numeric ID.

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": {
      "automation_id": "<automation_id>",
      "config": "<config>"
    },
    "name": "ha_update_automation"
  }
}

Input Schema

NameRequiredDescriptionDefault
configYes
automation_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure, yet it says nothing about whether the update replaces the whole automation or merges fields, whether it can silently drop trigger/action config, or what the response looks like. For a mutation tool touching nested config, this is a significant gap. It also calls the ID 'numeric' while the schema types it as a string.

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?

A single short sentence with no filler, and the identifying key is front-loaded. Its brevity is appropriate in form, though the space saved is not spent on information the agent actually needs.

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?

The tool is a mutation with a nested-object parameter, zero annotation coverage, zero schema descriptions, and no output schema, so the description must supply the missing context – and it does not. Nothing tells an agent how config is interpreted or what a success response contains. It is materially under-specified for this complexity.

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

Parameters2/5

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

Schema description coverage is 0% and the description only glosses 'automation_id' as a 'numeric ID' – which contradicts the schema's string type. The critical 'config' parameter, a nested object, is given no meaning at all: no indication of expected keys, whether it is a full or partial replacement, or how it interacts with existing settings.

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 ('Update') and resource ('an existing automation') plus the identifying key, which is enough to distinguish it from siblings like ha_create_automation, ha_delete_automation, and ha_get_automation. It stops short of naming any alternative explicitly, so it does not fully earn a 5.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus ha_toggle_automation or ha_create_automation, and no statement of prerequisites (e.g., that the automation must already exist, or what permissions are needed). The word 'existing' is the only implied context. An agent must infer the usage boundary from the tool name alone.

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