item_delete
Remove items from Zabbix by specifying item IDs. Provides JSON-formatted results for deletion confirmation, streamlining item management in monitoring systems.
Instructions
Delete items from Zabbix.
Args:
itemids: List of item IDs to delete
Returns:
str: JSON formatted deletion result
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemids | Yes |
Implementation Reference
- src/zabbix_mcp_server.py:445-460 (handler)The main handler function for the 'item_delete' tool. It is decorated with @mcp.tool() which registers it as an MCP tool. The function deletes the specified items using the Zabbix API client and returns a formatted JSON response. It checks read-only mode before performing the deletion.@mcp.tool() def item_delete(itemids: List[str]) -> str: """Delete items from Zabbix. Args: itemids: List of item IDs to delete Returns: str: JSON formatted deletion result """ validate_read_only() client = get_zabbix_client() result = client.item.delete(*itemids) return format_response(result)