trigger_delete
Remove specified triggers from Zabbix by providing trigger IDs. Returns deletion results in JSON format for easy integration and tracking.
Instructions
Delete triggers from Zabbix.
Args:
triggerids: List of trigger IDs to delete
Returns:
str: JSON formatted deletion result
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| triggerids | Yes |
Input Schema (JSON Schema)
{
"properties": {
"triggerids": {
"items": {
"type": "string"
},
"title": "Triggerids",
"type": "array"
}
},
"required": [
"triggerids"
],
"type": "object"
}
Implementation Reference
- src/zabbix_mcp_server.py:576-590 (handler)The main handler function for the 'trigger_delete' tool. It is decorated with @mcp.tool() which handles registration in FastMCP. The function checks read-only mode, authenticates with Zabbix API via get_zabbix_client(), calls the Zabbix trigger.delete API method, and formats the response as JSON.@mcp.tool() def trigger_delete(triggerids: List[str]) -> str: """Delete triggers from Zabbix. Args: triggerids: List of trigger IDs to delete Returns: str: JSON formatted deletion result """ validate_read_only() client = get_zabbix_client() result = client.trigger.delete(*triggerids) return format_response(result)