Skip to main content
Glama

configuration_import

Import configuration data into Zabbix using specified format (JSON or XML) and rules. This tool provides a structured approach to integrate and manage monitoring setups with clear import results.

Instructions

Import configuration to Zabbix.

Args: format: Import format (json, xml) source: Configuration data to import rules: Import rules Returns: str: JSON formatted import result

Input Schema

NameRequiredDescriptionDefault
formatYes
rulesYes
sourceYes

Input Schema (JSON Schema)

{ "properties": { "format": { "title": "Format", "type": "string" }, "rules": { "additionalProperties": true, "title": "Rules", "type": "object" }, "source": { "title": "Source", "type": "string" } }, "required": [ "format", "source", "rules" ], "type": "object" }

Implementation Reference

  • The core handler function implementing the 'configuration_import' tool logic. It validates read-only mode, retrieves Zabbix client, prepares import parameters, calls client.configuration.import_(), and formats the response.
    def configuration_import(format: str, source: str, rules: Dict[str, Any]) -> str: """Import configuration to Zabbix. Args: format: Import format (json, xml) source: Configuration data to import rules: Import rules Returns: str: JSON formatted import result """ validate_read_only() client = get_zabbix_client() params = { "format": format, "source": source, "rules": rules } result = client.configuration.import_(**params) return format_response(result)
  • The @mcp.tool() decorator registers the configuration_import function as an MCP tool, using its name and type annotations for schema.
    @mcp.tool()

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