Skip to main content
Glama

get_events

Retrieve a ZONT device event log for a chosen period (default 24 hours), optionally filtered by event type, to diagnose faults, mode changes, alarms, connectivity, or power issues.

Instructions

Получить журнал событий устройства за указанный период.

Параметры: device_id: идентификатор устройства. hours: глубина журнала в часах (по умолчанию 24). event_types: список типов событий для фильтрации. Если не указан — все события. Возможные типы: "boiler_error", "mode_change", "alarm", "connectivity", "power", "sensor", "guard", "temperature_alert".

Журнал событий содержит аварии котла, смены режимов, срабатывания охраны, пропадания питания и связи.

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": {
      "device_id": "<device_id>"
    },
    "name": "get_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
hoursNo
device_idYes
event_typesNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.2

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose what the log actually contains and that an omitted filter means 'all events', but says nothing about result volume, ordering, retention limits, or whether the window is capped — real gaps for a log-query tool.

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 purpose sentence, then a labeled parameter block, then a one-sentence content summary — easy to scan and clearly structured. Slightly repetitive in restating the event categories after already enumerating the filter values.

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?

For a three-parameter read tool with an output schema that already documents the response shape, this is close to sufficient: purpose, parameters, and filter vocabulary are all covered. It stops short of operational detail such as maximum window size or result limits, which an agent might still need.

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

Parameters5/5

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

Schema coverage is 0% and the description fully compensates: it defines device_id, explains hours as journal depth with a 24h default, and enumerates all eight valid event_types values ("boiler_error", "mode_change", "alarm", "connectivity", "power", "sensor", "guard", "temperature_alert") plus the null-filter behavior — information the schema (a bare array of strings) does not carry.

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?

"Получить журнал событий устройства за указанный период" gives a specific verb (get), resource (event log) and scope (per-device, time-bounded). It is clear what the tool returns, though it never contrasts itself with narrower siblings such as get_boiler_errors or get_temperature_history, which return subsets of the same journal.

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 rather than stated: the closing sentence listing what the journal contains (boiler alarms, mode changes, guard triggers, power/connectivity loss) hints at when to reach for it. There is no explicit when-to-use/when-not, nor any pointer to alternative tools for a narrower event class.

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