send_notification
Send a custom notification with a subject and body to any configured Domoticz notification subsystem, such as push notifications or email alerts.
Instructions
Send a notification through Domoticz notification subsystems.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subject | Yes | ||
| body | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/domoticz_mcp/server.py:1096-1101 (handler)The send_notification tool handler function. Sends a notification through Domoticz notification subsystems by calling the Domoticz JSON API with param=sendnotification, subject, and body.
@mcp.tool() async def send_notification(subject: str, body: str) -> str: """Send a notification through Domoticz notification subsystems.""" async with create_client() as client: response = await _do_request(client, "GET", f"{DOMOTICZ_API_URL}?type=command¶m=sendnotification&subject={urllib.parse.quote(subject)}&body={urllib.parse.quote(body)}") return response.text - src/domoticz_mcp/server.py:1096-1097 (registration)The tool is registered via the @mcp.tool() decorator on the send_notification async function.
@mcp.tool() async def send_notification(subject: str, body: str) -> str: