get_users
Retrieve all user accounts registered in the Domoticz home automation system.
Instructions
Get all Domoticz user accounts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/domoticz_mcp/server.py:914-919 (handler)Core handler for the get_users tool. Makes an HTTP GET request to domoticz with ?type=users and returns the response containing all user accounts.
@mcp.tool() async def get_users() -> str: """Get all Domoticz user accounts.""" async with create_client() as client: response = await _do_request(client, "GET", f"{DOMOTICZ_API_URL}?type=users") return response.text - src/domoticz_mcp/server.py:915-915 (registration)The tool is registered as an MCP tool via the @mcp.tool() decorator on line 914.
async def get_users() -> str: