Skip to main content
Glama

hostgroup_delete

Remove specified host groups from Zabbix by providing their group IDs. Returns a JSON-formatted result confirming the deletion process.

Instructions

Delete host groups from Zabbix.

Args: groupids: List of group IDs to delete Returns: str: JSON formatted deletion result

Input Schema

NameRequiredDescriptionDefault
groupidsYes

Input Schema (JSON Schema)

{ "properties": { "groupids": { "items": { "type": "string" }, "title": "Groupids", "type": "array" } }, "required": [ "groupids" ], "type": "object" }

Implementation Reference

  • The handler function for the hostgroup_delete tool. It checks if the server is in read-only mode, retrieves the Zabbix API client, calls the hostgroup.delete method with the provided groupids, and returns a JSON-formatted response.
    @mcp.tool() def hostgroup_delete(groupids: List[str]) -> str: """Delete host groups from Zabbix. Args: groupids: List of group IDs to delete Returns: str: JSON formatted deletion result """ validate_read_only() client = get_zabbix_client() result = client.hostgroup.delete(*groupids) 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