Skip to main content
Glama
homeassistant-ai

Home Assistant MCP Server

Official

Call Event

ha_call_event
Destructive

Fire a custom event on the Home Assistant event bus to trigger event-driven automations, Node-RED flows, or custom integrations that subscribe to that event type.

Instructions

Execute a custom event on the Home Assistant event bus.

When NOT to use: for controlling entities (lights, switches, climate) — use ha_call_service instead. To run an automation now, use ha_config_set_automation(identifier=..., run_actions=True).

Use this to publish custom event types consumed by event-triggered automations, Node-RED flows, or custom integrations that subscribe to specific event types.

Caveats: Events are fire-and-forget; this tool confirms the event was accepted by the bus but does not verify whether any automation or subscriber acted on it.

If a Claude Desktop user gets a 4-minute timeout with no result on this call, read the target back before repeating it, and tell them to wait a few seconds before clicking the manual-approve button, as clicking it too quickly is known to cause hangs in Claude Desktop. This workaround is specific to Claude Desktop.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoOptional event payload, delivered to subscribers as the event's data (trigger.event.data in an automation).
event_typeYesEvent type to fire, e.g. 'my_custom_event'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv8.6.0
    • addedInput schema / properties / data / description
      Added value: +"Optional event payload, delivered to subscribers as the event's data (trigger.event.data in an automation)."
    • addedInput schema / properties / event_type / description
      Added value: +"Event type to fire, e.g. 'my_custom_event'."
  2. First observedv7.14.2

TDQS

A4.5/5.0
Behavior5/5

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

Adds behavior the annotations cannot express: the call is fire-and-forget, success only means the bus accepted the event, and no subscriber action is verified. It also documents a concrete failure mode and recovery (Claude Desktop 4-minute timeout, read the target back, delay manual approval) — genuinely operational context beyond readOnly/destructive/idempotent hints.

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 cleanly partitioned into when-not, when-to, and caveats. The Claude Desktop workaround paragraph is the longest block and is tangential to tool selection, but it is operationally useful rather than filler.

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?

An output schema exists, so return-value explanation is not required, and the description covers purpose, alternatives, and async caveats completely. The one gap is that destructiveHint=true is never reconciled with a tool that merely publishes an event — an agent cannot tell whether the destructiveness comes from the event itself or from downstream automations.

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% and both parameters (event_type, data) are fully documented in the schema itself, including how data surfaces as trigger.event.data. The description adds no format or syntax detail beyond that, so the baseline 3 applies.

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+resource ('Execute a custom event on the Home Assistant event bus') and immediately distinguishes itself from the two most confusable siblings by naming them (ha_call_service for entity control, ha_config_set_automation for running automations). An agent can select this tool without opening any 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?

Explicit 'When NOT to use' block names the alternatives and the condition that selects them, and the following paragraph gives the positive use case (event-triggered automations, Node-RED flows, custom integrations). Both when-not and when-to are covered, which is the top of the range.

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