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

home-assistant-agent-mcp

by Hemanthkolli

ha_get_states

Retrieve all Home Assistant entity states, with an optional domain filter to narrow results to lights, climate, sensors, switches, or other domains.

Instructions

Get all entity states. Optionally filter by domain (e.g. light, climate, sensor, switch).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ha_get_states"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainNoFilter by domain (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the burden; 'Get all entity states' does establish this is a non-mutating bulk read. It says nothing about payload size (a full state dump can be very large), permissions, or what a returned state contains. Additions like volume expectations or return shape would raise this well above the minimum.

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 short sentences with the core action front-loaded and the optional filter second. Nothing is redundant or padded.

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?

For a zero-required-parameter read tool this is roughly adequate, but with no output schema the description never tells the agent what a state record looks like (entity_id, state, attributes) or how large a full listing may be. That leaves a real gap for an agent that must consume the result.

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 coverage is 100%, so the single domain parameter is already documented in the schema, which sets the baseline at 3. The description does add modest value by giving concrete domain examples (light, climate, sensor, switch) that clarify expected values beyond the schema's generic 'Filter by domain' text.

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 (all entity states), and the word 'all' distinguishes it from a single-entity fetch. It stops short of naming or contrasting with siblings like ha_get_entity or ha_get_history, so the agent must infer the difference from the tool names alone.

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

Usage Guidelines3/5

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

The phrase 'Optionally filter by domain' implies the two usage modes: fetch everything, or scope to one domain. There is no explicit when-to-use, when-not-to-use, or pointer to an alternative such as the history or single-entity tools.

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