Skip to main content
Glama

template_create

Generate and configure new Zabbix monitoring templates by specifying technical names, host groups, visible names, and descriptions. Streamlines template creation for efficient system monitoring.

Instructions

Create a new template in Zabbix.

Args: host: Template technical name groups: List of host groups (format: [{"groupid": "1"}]) name: Template visible name description: Template description Returns: str: JSON formatted creation result

Input Schema

NameRequiredDescriptionDefault
descriptionNo
groupsYes
hostYes
nameNo

Input Schema (JSON Schema)

{ "properties": { "description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Description" }, "groups": { "items": { "additionalProperties": { "type": "string" }, "type": "object" }, "title": "Groups", "type": "array" }, "host": { "title": "Host", "type": "string" }, "name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Name" } }, "required": [ "host", "groups" ], "type": "object" }

Implementation Reference

  • Implements the template_create MCP tool handler. Creates a new Zabbix template using the ZabbixAPI client.template.create method. Validates read-only mode first and formats the response as JSON.
    @mcp.tool() def template_create(host: str, groups: List[Dict[str, str]], name: Optional[str] = None, description: Optional[str] = None) -> str: """Create a new template in Zabbix. Args: host: Template technical name groups: List of host groups (format: [{"groupid": "1"}]) name: Template visible name description: Template description Returns: str: JSON formatted creation result """ validate_read_only() client = get_zabbix_client() params = { "host": host, "groups": groups } if name: params["name"] = name if description: params["description"] = description result = client.template.create(**params) 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