get_security_status
Retrieve the current status of the security panel in your Domoticz system for home security monitoring.
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:1103-1108 (handler)The get_security_status tool handler function. It's an async function decorated with @mcp.tool() that calls the Domoticz API endpoint 'getsecstatus' to retrieve the current security panel status.
@mcp.tool() 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:1103-1104 (registration)The tool is registered via the @mcp.tool() decorator on line 1103, which is the standard FastMCP tool registration mechanism.
@mcp.tool() async def get_security_status() -> str: - src/domoticz_mcp/server.py:1105-1105 (schema)The tool takes no parameters (no input schema) and returns a string. The docstring describes it as: 'Get the current status of the security panel.'
"""Get the current status of the security panel."""