Skip to main content
Glama
mahandra

HA Insights MCP

by mahandra

Search entities

search_entities
Read-only

Search Home Assistant entities by query, area, or domain to discover entity_ids and current states before checking detailed state information.

Instructions

Find Home Assistant entities and their current states.

    Use this first to discover entity_ids, then call get_entity_state for details.
    Returns entity_id, name, state and area for each match, best matches first.
    

Input Schema

NameRequiredDescriptionDefault
areaNoOnly this area, by area_id or name (see list_areas)
limitNoMaximum results
queryYesCase-insensitive text matched against entity_id and friendly name, e.g. 'kitchen', 'temperature', 'light.bed'. All words must match. Use an empty string to list everything that matches the filters.
domainNoOnly this domain, e.g. 'light', 'sensor', 'climate', 'switch'

Output Schema

NameRequiredDescriptionDefault
totalYesNumber of matching entities before applying the limit
entitiesYes
truncatedYesTrue if more matches exist; narrow the query or filters

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds real value beyond that: the returned fields (entity_id, name, state, area) and the result ordering ('best matches first'). It does not mention limit/pagination behavior or what happens when nothing matches, which is why it stops short of 5.

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?

Three short lines, front-loaded with purpose, followed by the workflow hint and the return shape. No filler sentences and nothing repeated from the schema.

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

Completeness5/5

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

Annotations cover read-safety, an output schema covers return structure, and the schema fully documents all four parameters. The description supplies exactly the missing piece — the discovery-then-detail workflow with get_entity_state — so an agent has everything needed to call it correctly.

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 the schema already documents query matching semantics, area, domain, and limit with a max of 100. The description adds no parameter-level detail (no note that an empty query lists everything, no guidance on combining filters), so this is the baseline for a fully documented schema.

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 and resource ('Find Home Assistant entities and their current states') and immediately distinguishes itself from the sibling read tool by naming get_entity_state for details. An agent can tell what this does and how it differs from adjacent tools without opening a 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?

Explicitly says 'Use this first to discover entity_ids, then call get_entity_state for details', which gives both the ordering rule and the named alternative. The condition that selects this tool versus get_entity_state is unambiguous.

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