maintenance_delete
Remove maintenance periods in Zabbix by specifying maintenance IDs. Streamline system upkeep management with JSON-formatted deletion results. Ideal for optimizing maintenance schedules.
Instructions
Delete maintenance periods from Zabbix.
Args:
maintenanceids: List of maintenance IDs to delete
Returns:
str: JSON formatted deletion result
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maintenanceids | Yes |
Implementation Reference
- src/zabbix_mcp_server.py:1262-1276 (handler)The handler function for the 'maintenance_delete' tool. It is decorated with @mcp.tool() which registers it with FastMCP, validates read-only mode, gets the Zabbix client, calls the maintenance.delete API method, and formats the response as JSON.@mcp.tool() def maintenance_delete(maintenanceids: List[str]) -> str: """Delete maintenance periods from Zabbix. Args: maintenanceids: List of maintenance IDs to delete Returns: str: JSON formatted deletion result """ validate_read_only() client = get_zabbix_client() result = client.maintenance.delete(*maintenanceids) return format_response(result)