A Model Context Protocol server for Home Assistant integration. Provides tools to interact with Home Assistant API including getting states of entities, calling services, managing automations, retrieving system info
This Home Assistant MCP server has 26 tools with bare-minimum documentation. Naming is mostly verb-based and clear (get_state, call_service, delete_state), but descriptions are extremely terse, most are 1 - 3 words, far below the 50 - 200 character baseline for LLM-optimized docs. Input schemas are present with basic types, but lack depth: parameter descriptions are minimal or absent entirely, and no enum constraints appear anywhere. Output schemas are completely undocumented. Error handling is absent, the code catches exceptions but does not return structured error guidance. Security concerns are significant: the token is passed as an environment variable (good), but there's no permission gating, rate limiting, or audit logging. Tool composition is reasonable for a domain controller, but the lack of descriptive richness means agents cannot reliably distinguish when to use similar tools or understand preconditions. The server is functional but falls well short of production quality.
Call a Home Assistant service
Call service and get response data
Check configuration validity
Delete entity state
Fire an event
Get specific automation details
Get all automations
Descriptions are critically sparse, most are 1 - 4 words (e.g., 'Get all entity states', 'Get logbook entries'). Rubric baseline is 50 - 200 characters for LLM-optimized descriptions. These fall 50 - 90 chars short, providing no context for when/why to use a tool, what it returns, or what prerequisites exist. Example: get_state says 'Get state of specific entity' (28 chars); should include 'Retrieves current state and attributes of a specific Home Assistant entity. Returns state value and optional metadata. Use this before updating an entity to check current conditions.'
Parameters lack descriptions entirely or are minimal. For example, get_history has 6 parameters (start_time, end_time, filter_entity_id, minimal_response, no_attributes, significant_changes_only) but none explain format (ISO 8601?), valid ranges, or when to use them. Example: minimal_response has description 'Optional minimal response flag' (31 chars), unclear what 'minimal' excludes. Rubric requires 'The project key (2-10 uppercase letters)' style constraints.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 48 | 2026-07-28+ | v2 |
Get calendar events for a specific calendar
Get list of calendar entities
Get camera image data
Get Home Assistant configuration
Get error log
Get event types
Get historical data
Get logbook entries
Get all available services
Get state of specific entity
Get all entity states
Handle an intent
Render a Home Assistant template
Set or update entity state
Subscribe to Home Assistant event stream
Toggle an automation on/off
Manually trigger an automation
Turn off an automation
Turn on an automation
Output schemas are completely undocumented. The rubric requires 'Document the output schema. LLMs need to know what fields to expect.' For example, get_states returns 'List[Dict[str, Any]]' but the tool definition does not declare what fields each dict contains (e.g., entity_id, state, attributes, last_changed). Agents cannot reliably extract the right data or chain calls.
No enum constraints on multi-valued parameters. For example, call_service and fire_event accept 'domain', 'service', 'event_type' as free-form strings. Without enums, agents hallucinate invalid values (e.g., 'climate_control' instead of 'climate'). Rubric: 'When a parameter accepts one of a known set of values, declare it as an enum.'
Error handling is absent. The code catches aiohttp.ClientError and generic Exception, logging them, but does not return structured error responses. Rubric requires: 'Error responses must tell the LLM what to do next.' Example: if set_state fails because the entity doesn't exist, the tool should return 'Entity xyz not found. Try get_states() to list available entities.' instead of a stack trace.
No confirmation or dry-run support for destructive operations. delete_state, trigger_automation, and turn_off_automation are irreversible but have no confirmation step. Rubric: 'Irreversible operations should support a dry-run or confirmation step. Agents make mistakes.'
No permission gating or audit logging. Tools like delete_state and call_service (which can turn off lights, unlock doors, etc.) have no checks that the agent/user has authority to execute them. Rubric: 'Gate destructive or sensitive tools behind permission checks. Each tool should declare what permissions it requires.' No audit trail exists.
No rate limiting or timeout guards. An agent in a retry loop could generate thousands of calls per second. Rubric: 'Apply rate limits to prevent runaway agents from overwhelming downstream services.' The client sets timeout=30s per request, but no per-agent or per-second rate limit exists.
subscribe_to_events returns no schema, unclear how the subscription works (streaming? polling? one-shot?). The tool name implies an event stream, but the input schema is empty and output is undocumented. Agents cannot reliably use this.
Similar tool names risk LLM confusion. get_calendars and get_calendar_events are distinct (list calendars vs. fetch events for one calendar), but get_automations vs. get_automation differ only in singular/plural, which LLMs often conflate. Descriptions don't disambiguate sufficiently.
No guidance on response size limits or pagination. get_states and get_history could return thousands of items, blowing context windows. Rubric: 'Even if the API allows returning thousands of items, cap results at a reasonable limit (e.g. 20-50) and offer pagination.' No limit or pagination params are documented.