Skip to main content
Glama

Hass-MCP

list_entities

Retrieve a filtered list of Home Assistant entities by domain, search query, or specific fields. Use this tool to efficiently manage smart home devices with customizable parameters like detailed output and result limits.

Instructions

Get a list of Home Assistant entities with optional filtering

Args: domain: Optional domain to filter by (e.g., 'light', 'switch', 'sensor') search_query: Optional search term to filter entities by name, id, or attributes (Note: Does not support wildcards. To get all entities, leave this empty) limit: Maximum number of entities to return (default: 100) fields: Optional list of specific fields to include in each entity detailed: If True, returns all entity fields without filtering

Returns: A list of entity dictionaries with lean formatting by default

Examples: domain="light" - get all lights search_query="kitchen", limit=20 - search entities domain="sensor", detailed=True - full sensor details

Best Practices: - Use lean format (default) for most operations - Prefer domain filtering over no filtering - For domain overviews, use domain_summary_tool instead of list_entities - Only request detailed=True when necessary for full attribute inspection - To get all entity types/domains, use list_entities without a domain filter, then extract domains from entity_ids

Input Schema

NameRequiredDescriptionDefault
detailedNo
domainNo
fieldsNo
limitNo
search_queryNo

Input Schema (JSON Schema)

{ "properties": { "detailed": { "default": false, "title": "Detailed", "type": "boolean" }, "domain": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Domain" }, "fields": { "anyOf": [ { "items": { "type": "string" }, "type": "array" }, { "type": "null" } ], "default": null, "title": "Fields" }, "limit": { "default": 100, "title": "Limit", "type": "integer" }, "search_query": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Search Query" } }, "title": "list_entitiesArguments", "type": "object" }

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/voska/hass-mcp'

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