get_security_status
Retrieve the current status of your Domoticz security panel to monitor alarm state and security settings.
Instructions
Get the current status of the security panel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/domoticz_mcp/server.py:1049-1053 (handler)The actual handler (tool function) for get_security_status. It is decorated with @mcp.tool(), queries the Domoticz API with getsecstatus, and returns the result.
async def get_security_status() -> str: """Get the current status of the security panel.""" async with create_client() as client: response = await _do_request(client, "GET", f"{DOMOTICZ_API_URL}?type=command¶m=getsecstatus") return response.text - src/domoticz_mcp/server.py:1048-1049 (registration)The tool is registered with the MCP server via the @mcp.tool() decorator on line 1048, which is the standard FastMCP registration mechanism.
@mcp.tool() async def get_security_status() -> str: - src/domoticz_mcp/server.py:1050-1050 (schema)The docstring serves as the schema/description for the tool, which MCP uses to define its interface.
"""Get the current status of the security panel."""