Skip to main content
Glama
Vortitron

home-assistant-mcp

by Vortitron

Get automation config

ha_get_automation
Read-only

Fetch an automation's full triggers, conditions, and actions by entity_id or unique id to review or debug its logic.

Instructions

Get the full configuration (triggers, conditions, actions) of an automation. Accepts either the entity_id (automation.xxx) or the unique id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
automationYesentity_id (automation.xxx) or unique id.
instance_idNoOptional: the instance you mean (as listed by vomehome_list_instances). When given, the call is refused if this session is targeting a different home, instead of answering from it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.10.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds value by disclosing the returned shape (triggers, conditions, actions), which partially compensates for the absent output schema, but says nothing about error behavior or whether the returned config is editable.

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 tight sentences with the purpose and return shape front-loaded and no filler. The second sentence is somewhat redundant with the schema's automation description, a minor waste.

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

Completeness4/5

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

For a read-only getter with annotations covering safety and full schema coverage, the description is nearly sufficient, and naming the returned components partly substitutes for a missing output schema. It could still say more about the config's editability or failure modes.

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 description coverage is 100%, so both parameters are already documented, including the instance_id refusal semantics. The description merely restates the automation parameter's accepted forms (entity_id or unique id) with no added syntax or format detail. Baseline 3 applies when the schema does the heavy lifting.

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 ('Get the full configuration ... of an automation') and enumerates the returned components (triggers, conditions, actions), which separates it from a bare list tool. It does not explicitly name the sibling it is not, e.g. ha_list_automations or ha_get_config, so an agent must infer the distinction.

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?

The description gives no when-to-use or when-not guidance and never mentions alternatives such as ha_list_automations (for enumerating) or ha_set_automation (for mutation). The intended usage is only weakly implied by the purpose statement.

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