Skip to main content
Glama
mpeirone

zabbix-mcp-server

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

TableJSON Schema
NameRequiredDescriptionDefault
groupidYes
nameYes

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:
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It states this is an update operation (implying mutation) and mentions a JSON-formatted return, but lacks critical details: whether it requires specific permissions, if changes are reversible, error handling for invalid groupids, or rate limits. For a mutation tool with zero annotation coverage, this leaves significant behavioral gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is efficiently structured with a clear purpose statement followed by bullet-pointed Args and Returns sections. Every sentence adds value: the first states the action, and the subsequent lines document parameters and output. There is no redundant or verbose content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 2 parameters with 0% schema coverage and no output schema, the description partially compensates by listing parameters and noting a JSON return. However, as a mutation tool with no annotations, it lacks details on permissions, side effects, error cases, or output structure. It's minimally adequate but has clear gaps for safe and effective use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It explicitly lists both parameters (groupid, name) with brief explanations ('Group ID to update', 'New group name'), adding meaningful semantics beyond the bare schema. This covers all parameters adequately, though it doesn't detail format constraints (e.g., groupid format, name length).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Update') and resource ('existing host group in Zabbix'), making the purpose immediately understandable. It distinguishes from siblings like hostgroup_create and hostgroup_delete by specifying it updates existing groups rather than creating or deleting them. However, it doesn't explicitly contrast with hostgroup_get (read vs. write).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing an existing groupid), compare with host_update for host-level changes, or specify scenarios where hostgroup_update is appropriate over hostgroup_create or hostgroup_delete. Usage context is implied but not explicitly stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Related Tools

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