Skip to main content
Glama

get_web_element_history

Retrieve the state history for a ZONT button or switch over a specified time range, optionally thinning data points to limit results.

Instructions

Получить историю состояний пользовательского элемента управления (кнопки/переключателя).

Параметры: device_id: идентификатор устройства. element_id: идентификатор элемента управления. hours: глубина истории в часах (по умолчанию 24). max_points: прореживание ряда (0 — без ограничения; по умолчанию 500).

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>",
      "element_id": "<element_id>"
    },
    "name": "get_web_element_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
hoursNo
device_idYes
element_idYes
max_pointsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.2

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It usefully explains that hours sets the look-back window (default 24) and that max_points thins the series (0 = unlimited, default 500), which is real behavioral context beyond the schema. However, it says nothing about permissions, result ordering, or how many points are returned for a given window, and no safety/read behavior is stated in prose.

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 front-loaded with a one-line purpose followed by a compact parameter list, and every line carries information. The labeled parameter block is slightly redundant with the schema but is justified by the 0% schema coverage.

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 four parameters, two of them optional and tuning-related, the description covers purpose and every parameter, and an output schema exists so return values need no explanation. The main gap is the absence of any routing guidance relative to the many sibling history and state tools, which matters in this toolset.

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 description coverage is 0%, so the description must supply all parameter meaning — and it does, documenting all four parameters including the two required identifiers and the two optional tuning knobs with their defaults and the special meaning of max_points=0. That is a substantial gain over bare integer titles. It does not explain units or expected value ranges for device_id/element_id or what happens with hours=0.

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 names a specific verb and resource: retrieving the state history of a user-defined control element (button/switch). Specifying 'кнопки/переключателя' separates it from the sibling history tools for boilers, heating circuits, radio sensors, and temperature, so an agent can identify it without opening the schema. It stops short of explicitly naming which sibling to use for other history types.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to use this tool rather than get_device_state, get_custom_controls, or the other *_history siblings; usage is only implied by the resource name and the 'history depth in hours' parameter. Nothing states prerequisites such as whether the element must already exist or be a custom control, and no exclusions are given.

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