Skip to main content
Glama
@nks-hub/zabbix-mcp

@nks-hub/zabbix-mcp

by nks-hub

Get Item History

zabbix_get_item_history
Read-onlyIdempotent

Reads raw Zabbix item history over a specified time range with pagination, auto-resolving the history type from the item's value type unless overridden.

Instructions

Read raw history for a Zabbix item over a time range. Supports pagination. historyType is OPTIONAL — when omitted the server auto-resolves it from the item's value_type via item.get. Pass historyType explicitly only if you need to override (rare).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "itemId": "<itemId>"
    },
    "name": "zabbix_get_item_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (default: 1)
tillNoEnd time (ISO date/time or unix timestamp)
sinceNoStart time (ISO date/time or unix timestamp)
itemIdYesItem ID
pageSizeNoItems per page (default: 50, max: 500)
historyTypeNoHistory storage type. Optional: omit to auto-resolve from item value_type. Explicit values: float (0), string (1), log (2), uint (3), text (4), binary (5).

Output Schema

NameRequiredDescriptionDefault
dataYesArray of history rows (clock, value, ...)
queryNo
lastSeenNo
paginationYes
resolvedHistoryTypeNoHistory type used for the query (echoed when auto-resolved from item value_type)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.3

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds useful non-obvious behavior: pagination is supported and the server performs a hidden item.get lookup when historyType is omitted, which is an extra backend call an agent should know about. It does not mention result volume or rate limits.

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?

Three short sentences, front-loaded with the core action and effect. The historyType sentence slightly duplicates the enum's schema description, but the parenthetical 'rare' justification makes it more than filler.

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?

With an output schema present, return values need no explanation, and the description covers the read scope, time range, pagination, and the one tricky optional parameter. It omits what happens when since/till are not supplied, which is the main remaining ambiguity for a 6-parameter tool.

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 coverage is 100%, so the schema already documents all six parameters, establishing a baseline of 3. The description adds a little beyond that by framing historyType as an override-only escape hatch ('rare'), which is decision guidance the schema wording does not convey, though it restates the auto-resolve behavior already in the schema.

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 gives a specific verb and resource ('Read raw history for a Zabbix item') plus a scope qualifier ('over a time range'), which is clearly distinct from the list-oriented siblings such as zabbix_list_items. It stops short of naming a sibling or explicitly contrasting with one, so it lands just under a 5.

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?

It gives good guidance for one parameter choice (omit historyType, override only rarely), which implies the normal usage path. However, it never states when to use this history tool versus the item/event listing siblings, nor any prerequisites such as item existence or time-range limits.

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