Skip to main content
Glama
mpeirone

zabbix-mcp-server

maintenance_update

Modify an existing maintenance period in Zabbix by updating details such as name, start/end times, and description. Ensure accurate scheduling and system availability adjustments with this tool on zabbix-mcp-server.

Instructions

Update an existing maintenance period in Zabbix.

Args:
    maintenanceid: Maintenance ID to update
    name: New maintenance name
    active_since: New start time (Unix timestamp)
    active_till: New end time (Unix timestamp)
    description: New maintenance description
    
Returns:
    str: JSON formatted update result

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
active_sinceNo
active_tillNo
descriptionNo
maintenanceidYes
nameNo

Implementation Reference

  • The MCP tool handler for 'maintenance_update', registered via @mcp.tool() decorator. Updates a Zabbix maintenance period using the ZabbixAPI client, with input validation via type hints and docstring serving as schema.
    @mcp.tool()
    def maintenance_update(maintenanceid: str, name: Optional[str] = None,
                           active_since: Optional[int] = None, active_till: Optional[int] = None,
                           description: Optional[str] = None) -> str:
        """Update an existing maintenance period in Zabbix.
        
        Args:
            maintenanceid: Maintenance ID to update
            name: New maintenance name
            active_since: New start time (Unix timestamp)
            active_till: New end time (Unix timestamp)
            description: New maintenance description
            
        Returns:
            str: JSON formatted update result
        """
        validate_read_only()
        
        client = get_zabbix_client()
        params = {"maintenanceid": maintenanceid}
        
        if name:
            params["name"] = name
        if active_since:
            params["active_since"] = active_since
        if active_till:
            params["active_till"] = active_till
        if description:
            params["description"] = description
        
        result = client.maintenance.update(**params)
        return format_response(result)
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) but doesn't describe what permissions are required, whether changes are reversible, what happens to unspecified fields, or any rate limits/constraints. The mention of 'JSON formatted update result' hints at the return format, but doesn't detail success/error responses.

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 perfectly structured: a clear purpose statement followed by organized Args and Returns sections. Every sentence earns its place, with no redundant information. The formatting makes it easy to scan and understand.

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?

For a mutation tool with 5 parameters, no annotations, and no output schema, the description provides adequate basic information but has significant gaps. It covers the purpose and parameters well, but lacks behavioral details (permissions, error handling, partial updates) and doesn't fully describe the return value beyond 'JSON formatted update result'. Given the complexity, it should do more to compensate for missing structured data.

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 - which it does effectively by listing all 5 parameters with brief explanations. It clarifies that maintenanceid is the identifier to update, name is the 'new maintenance name', timestamps are Unix format, etc. This adds meaningful context beyond the bare schema, though it doesn't explain null handling or default behaviors.

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 maintenance period in Zabbix'), making the purpose immediately understandable. It doesn't explicitly distinguish from sibling tools like maintenance_create or maintenance_delete, but the verb 'update' inherently differentiates it from creation/deletion operations.

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?

No guidance is provided about when to use this tool versus alternatives like maintenance_create or maintenance_delete. The description doesn't mention prerequisites (e.g., needing an existing maintenance period), nor does it specify what happens if the maintenanceid doesn't exist or if partial updates are allowed.

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