Skip to main content
Glama
mpeirone

zabbix-mcp-server

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
NameRequiredDescriptionDefault
itemidsYes

Implementation Reference

  • 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)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mpeirone/zabbix-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server