Skip to main content
Glama
Vortitron

home-assistant-mcp

by Vortitron

Get entity state

ha_get_state
Read-only

Retrieve full state and attributes for Home Assistant entities to read exact current values before changing them or writing automation logic.

Instructions

Get the full state and attributes for one or more entities. Use this to read exact current values before changing them or writing template/automation logic.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
entity_idsYesOne or more entity_ids, e.g. ['light.kitchen','sensor.outside_temp'].
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

A3.7/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 that it returns full state plus attributes, but says nothing about behavior for unknown entities, unavailable states, or cross-instance refusal (that detail lives only in the instance_id schema field).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with no filler; the core action leads and the usage cue follows immediately. Every clause earns its place.

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

Completeness3/5

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

With no output schema, the description should carry more of the return-shape burden; it only gestures at 'full state and attributes' without indicating the state/attributes structure an agent must parse. Adequate for selection, thin for consumption.

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%: entity_ids format and examples plus the instance_id refusal semantics are fully documented in the schema. The description adds only the 'one or more' cardinality, so baseline 3 is appropriate.

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?

Names a specific verb (get) and resource (entity state/attributes) and adds a scope qualifier ('one or more entities'), which distinguishes it from the list-style sibling ha_list_entities and the time-series ha_get_history. It does not explicitly name a sibling, but the purpose is unmistakable.

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

Usage Guidelines4/5

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

Gives a clear usage context: read exact current values before mutating them or writing template/automation logic. That is real when-to-use guidance, though it names no alternative tool to use instead (e.g., ha_list_entities for bulk browsing).

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