Skip to main content
Glama
mpeirone

zabbix-mcp-server

host_delete

Remove hosts from Zabbix monitoring by specifying host IDs. Returns a JSON-formatted result confirming successful deletions for efficient system management.

Instructions

Delete hosts from Zabbix.

Args:
    hostids: List of host IDs to delete
    
Returns:
    str: JSON formatted deletion result

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostidsYes

Implementation Reference

  • The host_delete tool handler, decorated with @mcp.tool() for MCP registration. It validates read-only mode, gets the Zabbix client, deletes the specified hosts using the Zabbix API, and returns a formatted JSON response.
    @mcp.tool()
    def host_delete(hostids: List[str]) -> str:
        """Delete hosts from Zabbix.
        
        Args:
            hostids: List of host IDs to delete
            
        Returns:
            str: JSON formatted deletion result
        """
        validate_read_only()
        
        client = get_zabbix_client()
        result = client.host.delete(*hostids)
        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