Skip to main content
Glama
mhajder

Zabbix MCP Server

by mhajder

hostgroup_get

Read-onlyIdempotent

Retrieves Zabbix host groups with filters for IDs, names, and pagination. Supports grouping hosts to apply templates, permissions, and maintenance windows collectively.

Instructions

Get host groups from Zabbix.

Retrieves host groups with optional filtering. Host groups are used to organize and manage hosts collectively, applying templates, permissions, and maintenance windows to multiple hosts at once.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of results to return. Default is 100.
offsetNoNumber of matching records to skip. Use with 'limit' to page through results; check 'has_more' and 'total' in the response.
outputNoOutput format.extend
searchNoSearch.
hostidsNoHost IDs.
groupidsNoGroup IDs.
sortfieldNoField to sort by. A deterministic sort is required for paging to be consistent.groupid
sortorderNoSort direction - 'ASC' or 'DESC'.ASC
count_outputNoIf true, returns only the count of matched objects as an integer.
select_hostsNoIf true, include the hosts in each group in the response (selectHosts=extend).
group_name_containsNoShortcut to search for groups by name (constructs search={'name': group_name_contains}).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed5 schema fields changedv0.6.0
    • changedInput schema / properties / offset / description
      Previous value: -"Number of results to skip (for pagination). Requires sortfield to be set."New value: +"Number of matching records to skip. Use with 'limit' to page through results; check 'has_more' and 'total' in the response."
    • removedInput schema / properties / sortfield / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / sortfield / default
      Previous value: -nullNew value: +"groupid"
    • changedInput schema / properties / sortfield / description
      Previous value: -"Field to sort by."New value: +"Field to sort by. A deterministic sort is required for paging to be consistent."
    • addedInput schema / properties / sortfield / type
      Added value: +"string"
  2. First observedv0.5.3

TDQS

A3.7/5.0
Behavior3/5

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

The annotations already characterize the tool as read-only, idempotent, and non-destructive, and the description aligns with that by saying it 'retrieves' host groups. The description adds a generic 'optional filtering' trait and domain context, but does not disclose details like pagination behavior or response shape. No contradiction exists, but the behavioral transparency is mostly carried by the annotations.

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?

The description is short, front-loaded with the core action, and quickly communicates the main behavior. There is minor redundancy between 'Get host groups from Zabbix' and 'Retrieves host groups with optional filtering,' but the sentence adds the filtering scope, and the third sentence gives useful domain context. Overall, it stays concise and digestible.

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

Completeness4/5

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

The description is sufficient for a list-oriented read tool when combined with rich annotations, a fully documented parameter schema, and an output schema. It explains why host groups matter in Zabbix and notes optional filtering, which is enough context for an agent to understand the operation. It lacks explicit sibling routing, but that gap is already captured in the usage-guidelines dimension.

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 every parameter is already documented with meaningful descriptions. The tool description only says 'optional filtering' without referencing specific parameters like limit, search, or groupids, so it adds little semantic value beyond the schema. A baseline score of 3 is appropriate because the schema carries the parameter explanation burden.

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?

The description clearly states a specific verb and resource: it retrieves host groups from Zabbix. It also adds that the retrieval supports optional filtering, which clarifies the scope of the operation. This makes the tool easy to distinguish from mutation tools like hostgroup_create, hostgroup_update, and hostgroup_delete.

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

Usage Guidelines3/5

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

Usage is implied by the description: an agent should call this tool when it needs host groups, especially for organizing or managing Zabbix hosts collectively. However, no explicit alternatives or when-not-to-use guidance is provided, so the agent gets only weak support in choosing this over sibling tools like host_get or hostgroup_update.

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

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/mhajder/zabbix-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server