Skip to main content
Glama
LoganInTX

hass-mcp-extensions

by LoganInTX

domain_summary_tool

Summarize a Home Assistant domain by returning entity count, state distribution, sample entities, and common attributes to understand what's available before retrieving all entities.

Instructions

Get a summary of entities in a specific domain

Args: domain: The domain to summarize (e.g., 'light', 'switch', 'sensor') example_limit: Maximum number of examples to include for each state

Returns: A dictionary containing: - total_count: Number of entities in the domain - state_distribution: Count of entities in each state - examples: Sample entities for each state - common_attributes: Most frequently occurring attributes

Examples: domain="light" - get light summary domain="climate", example_limit=5 - climate summary with more examples Best Practices: - Use this before retrieving all entities in a domain to understand what's available

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYes
example_limitNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the full burden. It details the return structure (total_count, state_distribution, examples, common_attributes) and provides examples, disclosing the tool's read-only nature. It does not mention any side effects, permissions, or rate limits, but the disclosed behavior is sufficient for correct use.

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?

The description is well-structured with clear sections: main purpose, Args, Returns, Examples, Best Practices. Each sentence adds value without redundancy. It is appropriately sized for a 2-parameter tool.

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?

Given the low complexity, existence of output schema, and complete description of purpose, parameters, return values, and usage guidance, the tool is fully documented. No gaps remain for an agent to invoke correctly.

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

Parameters5/5

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

Schema description coverage is 0%, so the description fully compensates. It explains 'domain' with examples (e.g., 'light', 'switch') and 'example_limit' with meaning ('Maximum number of examples to include for each state') and default. Every parameter is clearly described.

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?

The description clearly states 'Get a summary of entities in a specific domain', specifying the verb and resource. Examples further clarify the scope. This distinguishes it from sibling tools like list_entities or search_entities_tool by focusing on aggregation rather than listing.

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?

The description includes a 'Best Practices' section explicitly advising to use this tool before retrieving all entities in a domain to understand what's available. This provides clear context but does not mention when not to use or alternatives beyond the implicit suggestion.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LoganInTX/home-assistant-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server