Skip to main content
Glama
Zabbix MCP Server

Zabbix MCP Server

event_get

Read-only

Retrieve complete Zabbix event history, including resolved and active PROBLEM/OK events, to audit state changes and correlate incidents; filter by source, object, host, time, and severity.

Instructions

Retrieve events generated by triggers, discovery rules, or autoregistration. Events form the full audit trail of state changes. For active/current problems only, prefer problem.get instead. Use event.get when you need the complete event history including resolved events, or when you need to correlate PROBLEM and OK events. Filter by 'source' (0=trigger, 1=discovery, 2=autoregistration, 3=internal) and 'object' to narrow results. Use 'time_from'/'time_till' for time-bounded queries and 'severity_min' to filter by importance. The newest events come first unless a sort is given, so 'limit' keeps the latest ones.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "event_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of results to return.
valueNoEvent value filter: 0=OK (resolved), 1=PROBLEM (active).
filterNoReturn only results whose properties exactly match the given values (a single value or a list of values per key). Example: {"status": 0} or {"status": [0, 1]}. Keys: acknowledged, cause_eventid (6.4+), cep_ruleid (8.0+), clock, eventid, flags (8.0+), name, ns, object, objectid, severity, source, value. Text properties cannot be filtered; use 'search' for them.
objectNoEvent object type: 0=trigger, 1=discovered host, 2=discovered service, 3=autoregistration event, 4=item, 5=LLD rule.
outputNoProperties of the event object to return. Pass 'extend' for all, 'count' for the number of matches only, or a list of property names. Default when omitted: eventid, name, severity, clock, value, r_eventid. Properties: acknowledged, c_eventid, cause_eventid (6.4+), cep_ruleid (8.0+), clock, correlationid, eventid, flags (8.0+), name, ns, object, objectid, opdata, r_eventid, severity, source, suppressed, urls, userid, value.
searchNoReturn results whose string properties contain the given pattern (case-insensitive; '*' is a wildcard when searchWildcardsEnabled is true). Example: {"name": "web"}. Keys: name.
serverNoTarget Zabbix server. Available: default. Defaults to 'default' if omitted.
sourceNoEvent source: 0=trigger (default), 1=discovery, 2=autoregistration, 3=internal.
hostidsNoReturn only events for the given hosts.
eventidsNoReturn only events with the given IDs.
groupidsNoReturn only events for hosts belonging to the given host groups.
raw_jsonNoStrips the security disclaimer preamble from the response so it is pure JSON. Default: false. Requires the bearer token to have 'allow_raw_json' explicitly enabled by an operator in the admin portal - tokens without that policy receive a PolicyError instead. WARNING: setting true bypasses the prompt-injection mitigation marker that wraps untrusted Zabbix data (host names, item descriptions, problem text). LLM clients (Claude, GPT, Cursor, ...) should leave this false; only programmatic non-LLM consumers (Python scripts, n8n workflows that json.loads the result) should set true.
objectidsNoReturn only events for the given trigger/item/LLD rule IDs (depends on the 'object' parameter).
sortfieldNoSort by one or more of: eventid, objectid, clock (a list for several; pair with 'sortorder'). No other property is sortable. When omitted, the result is sorted by eventid with the newest first.
sortorderNoSort order: 'ASC' (ascending) or 'DESC' (descending). 'DESC' while 'sortfield' is omitted (newest first); 'ASC' alone returns the oldest first.
time_fromNoReturn only events generated after this time (Unix timestamp, ISO 8601 date-time such as 2026-04-01T08:00:00Z, or a relative time such as now-1h, now/d or now-7d/d; a value without a zone is read in the zone resolved for the call) (inclusive).
time_tillNoReturn only events generated before this time (Unix timestamp, ISO 8601 date-time such as 2026-04-01T08:00:00Z, or a relative time such as now-1h, now/d or now-7d/d; a value without a zone is read in the zone resolved for the call) (inclusive).
countOutputNoReturn the count of matching results instead of the actual data.
searchByAnyNoIf true, return results matching ANY search field (OR). Default is ALL fields (AND).
acknowledgedNoIf true, return only acknowledged events. If false, only unacknowledged events.
extra_paramsNoOther native event.get parameters, merged into the request as-is. Parameters: action (7.0+), action_userids (7.0+), evaltype, eventid_from, eventid_till, groupBy (7.0+), groupCount (removed in 7.0), problem_time_from, problem_time_till, severities, suppressed, symptom (6.4+), tags, trigger_severities (7.0+). Switches (true turns one on, false is the same as leaving it out): groupCount. groupCount (removed in 7.0) goes with output='count': the count is then split by the ID filters the method groups by (hostids, groupids ...), one row per ID with 'rowscount'; a single row without such a filter. Sub-object selects (value 'extend', 'count' or a list of property names): selectAcknowledges (7.0+), selectAlerts (7.0+), selectHosts, selectRelatedObject, selectSuppressionData, selectTags, select_acknowledges (removed in 7.2), select_alerts (removed in 7.2). Any other key is refused here, because Zabbix would silently ignore it. For a parameter you are sure exists on your release but is not listed, use zabbix_raw_api_call.
severity_minNoReturn only events with severity greater than or equal to this value: 0=not classified, 1=information, 2=warning, 3=average, 4=high, 5=disaster.
searchWildcardsEnabledNoIf true, enable * and ? wildcards in search patterns.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.42.4
    • changedInput schema / properties / extra_params / anyOf
      Previous value: -[
      -  {
      -    "propertyNames": {
      -      "enum": [
      -        "editable",
      -        "excludeSearch",
      -        "preservekeys",
      -        "startSearch",
      -        "action",
      -        "action_userids",
      -        "evaltype",
      -        "eventid_from",
      -        "eventid_till",
      -        "groupBy",
      -        "groupCount",
      -        "problem_time_from",
      -        "problem_time_till",
      -        "severities",
      -        "suppressed",
      -        "symptom",
      -        "tags",
      -        "trigger_severities",
      -        "applicationids",
      -        "selectAcknowledges",
      -        "selectAlerts",
      -        "selectHosts",
      -        "selectRelatedObject",
      -        "selectSuppressionData",
      -        "selectTags",
      -        "select_acknowledges",
      -        "select_alerts"
      -      ]
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "selectAcknowledges": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "extend",
      +              "count"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "items": {
      +              "enum": [
      +                "acknowledgeid",
      +                "action",
      +                "cep_ruleid",
      +                "clock",
      +                "details",
      +                "maintenanceid",
      +                "message",
      +                "name",
      +                "new_severity",
      +                "old_severity",
      +                "suppress_until",
      +                "surname",
      +                "taskid",
      +                "userid",
      +                "username"
      +              ],
      +              "type": "string"
      +            },
      +            "minItems": 1,
      +            "type": "array"
      +          }
      +        ]
      +      },
      +      "selectAlerts": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "extend",
      +              "count"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "items": {
      +              "enum": [
      +                "acknowledgeid",
      +                "actionid",
      +                "alertid",
      +                "alerttype",
      +                "clock",
      +                "error",
      +                "esc_step",
      +                "mediatypeid",
      +                "message",
      +                "p_eventid",
      +                "retries",
      +                "sendto",
      +                "status",
      +                "subject",
      +                "userid"
      +              ],
      +              "type": "string"
      +            },
      +            "minItems": 1,
      +            "type": "array"
      +          }
      +        ]
      +      },
      +      "selectHosts": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "extend",
      +              "count"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "items": {
      +              "enum": [
      +                "active_available",
      +                "assigned_proxyid",
      +                "description",
      +                "flags",
      +                "host",
      +                "hostid",
      +                "inventory_mode",
      +                "ipmi_authtype",
      +                "ipmi_password",
      +                "ipmi_privilege",
      +                "ipmi_username",
      +                "maintenance_from",
      +                "maintenance_status",
      +                "maintenance_type",
      +                "maintenanceid",
      +                "monitored_by",
      +                "name",
      +                "proxy_groupid",
      +                "proxyid",
      +                "status",
      +                "tls_accept",
      +                "tls_connect",
      +                "tls_issuer",
      +                "tls_subject"
      +              ],
      +              "type": "string"
      +            },
      +            "minItems": 1,
      +            "type": "array"
      +          }
      +        ]
      +      },
      +      "selectRelatedObject": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "extend",
      +              "count"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "items": {
      +              "enum": [
      +                "comments",
      +                "correlation_mode",
      +                "correlation_tag",
      +                "description",
      +                "error",
      +                "event_name",
      +                "expression",
      +                "flags",
      +                "lastchange",
      +                "manual_close",
      +                "opdata",
      +                "priority",
      +                "recovery_expression",
      +                "recovery_mode",
      +                "state",
      +                "status",
      +                "templateid",
      +                "triggerid",
      +                "type",
      +                "url",
      +                "url_name",
      +                "value"
      +              ],
      +              "type": "string"
      +            },
      +            "minItems": 1,
      +            "type": "array"
      +          }
      +        ]
      +      },
      +      "selectSuppressionData": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "extend",
      +              "count"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "items": {
      +              "enum": [
      +                "cep_ruleid",
      +                "maintenanceid",
      +                "suppress_until",
      +                "userid"
      +              ],
      +              "type": "string"
      +            },
      +            "minItems": 1,
      +            "type": "array"
      +          }
      +        ]
      +      },
      +      "selectTags": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "extend",
      +              "count"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "items": {
      +              "enum": [
      +                "tag",
      +                "value"
      +              ],
      +              "type": "string"
      +            },
      +            "minItems": 1,
      +            "type": "array"
      +          }
      +        ]
      +      }
      +    },
      +    "propertyNames": {
      +      "enum": [
      +        "editable",
      +        "excludeSearch",
      +        "preservekeys",
      +        "startSearch",
      +        "action",
      +        "action_userids",
      +        "evaltype",
      +        "eventid_from",
      +        "eventid_till",
      +        "groupBy",
      +        "groupCount",
      +        "problem_time_from",
      +        "problem_time_till",
      +        "severities",
      +        "suppressed",
      +        "symptom",
      +        "tags",
      +        "trigger_severities",
      +        "applicationids",
      +        "selectAcknowledges",
      +        "selectAlerts",
      +        "selectHosts",
      +        "selectRelatedObject",
      +        "selectSuppressionData",
      +        "selectTags",
      +        "select_acknowledges",
      +        "select_alerts"
      +      ]
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed12 schema fields changedv1.42.2
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / extra_params / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "propertyNames": {
      +      "enum": [
      +        "editable",
      +        "excludeSearch",
      +        "preservekeys",
      +        "startSearch",
      +        "action",
      +        "action_userids",
      +        "evaltype",
      +        "eventid_from",
      +        "eventid_till",
      +        "groupBy",
      +        "groupCount",
      +        "problem_time_from",
      +        "problem_time_till",
      +        "severities",
      +        "suppressed",
      +        "symptom",
      +        "tags",
      +        "trigger_severities",
      +        "applicationids",
      +        "selectAcknowledges",
      +        "selectAlerts",
      +        "selectHosts",
      +        "selectRelatedObject",
      +        "selectSuppressionData",
      +        "selectTags",
      +        "select_acknowledges",
      +        "select_alerts"
      +      ]
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / extra_params / description
      Previous value: -"Other native event.get parameters, merged into the request as-is. Parameters: action (7.0+), action_userids (7.0+), evaltype, eventid_from, eventid_till, groupBy (7.0+), problem_time_from, problem_time_till, severities, suppressed, symptom (6.4+), tags, trigger_severities (7.0+). Sub-object selects (value 'extend', 'count' or a list of property names): selectAcknowledges (7.0+), selectAlerts (7.0+), selectHosts, selectRelatedObject, selectSuppressionData, selectTags, select_acknowledges (removed in 7.2), select_alerts (removed in 7.2). Any other key is refused here, because Zabbix would silently ignore it. For a parameter you are sure exists on your release but is not listed, use zabbix_raw_api_call."New value: +"Other native event.get parameters, merged into the request as-is. Parameters: action (7.0+), action_userids (7.0+), evaltype, eventid_from, eventid_till, groupBy (7.0+), groupCount (removed in 7.0), problem_time_from, problem_time_till, severities, suppressed, symptom (6.4+), tags, trigger_severities (7.0+). Switches (true turns one on, false is the same as leaving it out): groupCount. groupCount (removed in 7.0) goes with output='count': the count is then split by the ID filters the method groups by (hostids, groupids ...), one row per ID with 'rowscount'; a single row without such a filter. Sub-object selects (value 'extend', 'count' or a list of property names): selectAcknowledges (7.0+), selectAlerts (7.0+), selectHosts, selectRelatedObject, selectSuppressionData, selectTags, select_acknowledges (removed in 7.2), select_alerts (removed in 7.2). Any other key is refused here, because Zabbix would silently ignore it. For a parameter you are sure exists on your release but is not listed, use zabbix_raw_api_call."
    • changedInput schema / properties / filter / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "propertyNames": {
      +      "enum": [
      +        "acknowledged",
      +        "cause_eventid",
      +        "cep_ruleid",
      +        "clock",
      +        "eventid",
      +        "flags",
      +        "name",
      +        "ns",
      +        "object",
      +        "objectid",
      +        "severity",
      +        "source",
      +        "value"
      +      ]
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / output / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "extend",
      +      "count"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "enum": [
      +        "acknowledged",
      +        "c_eventid",
      +        "cause_eventid",
      +        "cep_ruleid",
      +        "clock",
      +        "correlationid",
      +        "eventid",
      +        "flags",
      +        "name",
      +        "ns",
      +        "object",
      +        "objectid",
      +        "opdata",
      +        "r_eventid",
      +        "severity",
      +        "source",
      +        "suppressed",
      +        "urls",
      +        "userid",
      +        "value"
      +      ],
      +      "type": "string"
      +    },
      +    "minItems": 1,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / output / description
      Previous value: -"Properties of the event object to return. Pass 'extend' for all, 'count' for the number of matches only, or a comma-separated list of property names. Default when omitted: eventid, name, severity, clock, value, r_eventid. Properties: acknowledged, c_eventid, cause_eventid (6.4+), cep_ruleid (8.0+), clock, correlationid, eventid, flags (8.0+), name, ns, object, objectid, opdata, r_eventid, severity, source, suppressed, urls, userid, value."New value: +"Properties of the event object to return. Pass 'extend' for all, 'count' for the number of matches only, or a list of property names. Default when omitted: eventid, name, severity, clock, value, r_eventid. Properties: acknowledged, c_eventid, cause_eventid (6.4+), cep_ruleid (8.0+), clock, correlationid, eventid, flags (8.0+), name, ns, object, objectid, opdata, r_eventid, severity, source, suppressed, urls, userid, value."
    • changedInput schema / properties / search / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "propertyNames": {
      +      "enum": [
      +        "name"
      +      ]
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / sortfield / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "eventid",
      +      "objectid",
      +      "clock"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "enum": [
      +        "eventid",
      +        "objectid",
      +        "clock"
      +      ],
      +      "type": "string"
      +    },
      +    "minItems": 1,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / sortfield / description
      Previous value: -"Sort by one or more of: eventid, objectid, clock (comma-separated for several; pair with 'sortorder'). No other property is sortable."New value: +"Sort by one or more of: eventid, objectid, clock (a list for several; pair with 'sortorder'). No other property is sortable. When omitted, the result is sorted by eventid with the newest first."
    • changedInput schema / properties / sortorder / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "ASC",
      +      "DESC"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "enum": [
      +        "ASC",
      +        "DESC"
      +      ],
      +      "type": "string"
      +    },
      +    "minItems": 1,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / sortorder / description
      Previous value: -"Sort order: 'ASC' (ascending) or 'DESC' (descending)."New value: +"Sort order: 'ASC' (ascending) or 'DESC' (descending). 'DESC' while 'sortfield' is omitted (newest first); 'ASC' alone returns the oldest first."
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "event_getOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv1.41.0

TDQS

A4.4/5.0
Behavior4/5

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

With readOnlyHint=true and openWorldHint=false already covering the safety profile, the description still adds real behavior: default newest-first ordering and the consequence that "limit" therefore keeps the latest rather than the earliest events. It stops short of describing result volume or pagination behavior, so it is not exhaustive.

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

Conciseness4/5

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

Front-loaded with purpose, then routing, then filtering hints, then the ordering caveat — a logical progression with no filler sentences. It runs slightly long by restating enum values that the schema covers, which keeps it out of the top band.

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

Completeness5/5

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

For a 23-parameter read-only listing tool with no required parameters and no output schema, the description covers selection, alternatives, ordering, and the main filter families. The remaining detail (per-parameter format, default output properties) is fully carried by the schema, so an agent has everything needed to choose and call it.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already defines source, object, value, time bounds, and severity_min completely; the description mostly restates those enumerations. It earns a little credit for the practical note about limit interacting with the default ordering, but adds no syntax or format detail beyond the schema.

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

Purpose5/5

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

States a precise verb and resource ("Retrieve events generated by triggers, discovery rules, or autoregistration") and frames the content as "the full audit trail of state changes." That framing is what separates it from the sibling problem-oriented tools without the agent needing to open a schema.

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

Usage Guidelines5/5

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

Explicitly names the alternative ("For active/current problems only, prefer problem.get instead") and gives both selecting conditions: complete history including resolved events, or correlating PROBLEM and OK events. When-to-use and when-to-defer are both stated.

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