consultar_habitacion
Retrieve detailed information about a specific smart home room including all connected devices and their current status.
Instructions
Obtiene información detallada de una habitación específica.
Args: room_name: nombre de la habitación
Returns: Información completa de la habitación incluyendo todos sus dispositivos.
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": {
"room_name": "<room_name>"
},
"name": "consultar_habitacion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| room_name | Yes |
Implementation Reference
- servers/mcp_rooms.py:154-166 (handler)The handler function for the 'consultar_habitacion' tool. It calls storage.get_room_info(room_name) to fetch detailed information about the specified room.
@mcp.tool() def consultar_habitacion(room_name: str) -> dict: """ Obtiene información detallada de una habitación específica. Args: room_name: nombre de la habitación Returns: Información completa de la habitación incluyendo todos sus dispositivos. """ return storage.get_room_info(room_name) - servers/mcp_rooms.py:155-165 (schema)Type signature defining input (room_name: str) and output (dict) for the tool.
def consultar_habitacion(room_name: str) -> dict: """ Obtiene información detallada de una habitación específica. Args: room_name: nombre de la habitación Returns: Información completa de la habitación incluyendo todos sus dispositivos. """ return storage.get_room_info(room_name) - servers/mcp_rooms.py:154-154 (registration)Decorator that registers the function as an MCP tool.
@mcp.tool()