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

home-assistant-agent-mcp

by Hemanthkolli

ha_get_entity

Retrieve the current state and all attributes of a specific Home Assistant entity by entity ID for use in automations, dashboards, or device control.

Instructions

Get state and all attributes of a specific entity.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "entity_id": "<entity_id>"
    },
    "name": "ha_get_entity"
  }
}

Input Schema

NameRequiredDescriptionDefault
entity_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.2/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 full behavioral burden. "Get" clearly signals a non-destructive read and it discloses that all attributes are returned, but it says nothing about behavior for an unknown entity_id (error vs empty), permission requirements, or response shape.

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?

One sentence, front-loaded with the verb and with no filler. It is efficient, though the terseness leaves gaps that a few more words could have closed.

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?

This is a simple single-parameter tool, and the description does state the return content (state plus all attributes), which partly substitutes for the missing output schema. However, with no annotations and zero schema coverage on the identifier, the definition leaves an agent guessing about id format and failure behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for the single entity_id parameter, so the description must compensate and does not. It never states the expected identifier format (for example domain.object_id like "light.kitchen"), which is exactly the kind of meaning a caller needs here.

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?

The description names a specific verb and resource ("Get state and all attributes of a specific entity"), which is clear and distinguishable from list-style siblings by the word "specific". It stops short of naming an alternative such as ha_get_states or ha_get_history, so differentiation relies on the reader inferring it.

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?

Usage is only implied: the phrase "a specific entity" suggests this is the single-entity lookup rather than a bulk state fetch, but there is no explicit when-to-use or when-not-to-use statement and no named alternative. An agent must infer the boundary with ha_get_states and ha_get_history from names alone.

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