Skip to main content
Glama

hostgroup_update

Modify an existing Zabbix host group by updating its name using specified group ID. Returns JSON-formatted results for tracking changes.

Instructions

Update an existing host group in Zabbix.

Args: groupid: Group ID to update name: New group name Returns: str: JSON formatted update result

Input Schema

NameRequiredDescriptionDefault
groupidYes
nameYes

Input Schema (JSON Schema)

{ "properties": { "groupid": { "title": "Groupid", "type": "string" }, "name": { "title": "Name", "type": "string" } }, "required": [ "groupid", "name" ], "type": "object" }

Implementation Reference

  • The main handler function for the 'hostgroup_update' tool, decorated with @mcp.tool() which also serves as its registration in the MCP server. It updates the name of a Zabbix host group using the Zabbix API client.
    def hostgroup_update(groupid: str, name: str) -> str: """Update an existing host group in Zabbix. Args: groupid: Group ID to update name: New group name Returns: str: JSON formatted update result """ validate_read_only() client = get_zabbix_client() result = client.hostgroup.update(groupid=groupid, name=name) return format_response(result)
  • The @mcp.tool() decorator registers the hostgroup_update function as an MCP tool.
    def hostgroup_update(groupid: str, name: str) -> str:

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