consultar_habitaciones
Retrieve a complete list of smart home rooms with device counts by type to manage and control connected devices across your home automation system.
Instructions
Obtiene la lista completa de habitaciones con su información.
Returns: Lista de habitaciones con nombre y cantidad de dispositivos por tipo.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- servers/mcp_rooms.py:144-152 (handler)The core implementation of the 'consultar_habitaciones' tool. This function, decorated with @mcp.tool(), takes no parameters and returns the list of all rooms by calling storage.list_rooms(). The docstring provides input/output description serving as schema.@mcp.tool() def consultar_habitaciones() -> list[dict]: """ Obtiene la lista completa de habitaciones con su información. Returns: Lista de habitaciones con nombre y cantidad de dispositivos por tipo. """ return storage.list_rooms()