Skip to main content
Glama

change_web_element

Toggle a custom ZONT web control (button or switch) by device and element ID, setting its on/off state or numeric value to adjust heating elements.

Instructions

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

Параметры: device_id: идентификатор устройства. element_id: идентификатор элемента (из get_custom_controls). state: целочисленное состояние (0 — выключено, 1 — включено; значение 2 используется приложением при передаче value). value: необязательное числовое значение элемента.

Элементы и их коды состояний настраиваются в веб-кабинете; перед вызовом сверьтесь с get_custom_controls.

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>",
      "state": "<state>"
    },
    "name": "change_web_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateYes
valueNo
device_idYes
element_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.2

TDQS

A3.7/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 burden. It does disclose useful behavior beyond the schema: state 0 = off, 1 = on, and that value 2 is emitted by the application when a value is transmitted, plus that element codes are user-configured. It says nothing about persistence, reversibility, required permissions, or failure modes of this mutation, which is a meaningful gap for a write 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?

Purpose is front-loaded in one line, followed by a compact parameter block that is easy to scan. The parenthetical about state 2 is slightly wordy but earns its place by clarifying a non-obvious code.

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

Completeness3/5

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

An output schema exists, so return values need not be described, and parameter semantics are well covered. However, for a mutation tool with zero annotations, the description should also convey the effect of the change and its reversibility, which it omits.

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 compensate, and it does: all four parameters are explained, including where element_id comes from and the meaning of each state code. The only thin spot is 'value', described only as an optional numeric element value without saying how it interacts with state.

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 opens with a specific verb and resource: 'Переключить пользовательский элемент управления (кнопку/переключатель)', which tells an agent this sets the state of a user-defined control. It is distinct from generic siblings like set_relay or send_custom_command by naming the 'web cabinet' custom-control domain, though it never explicitly contrasts itself with those siblings.

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

Usage Guidelines4/5

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

It gives an explicit precondition: consult get_custom_controls first to obtain element_id and to verify state codes configured in the web cabinet. That is clear when-to-use context, but there is no when-not guidance or statement about which alternative to pick for non-custom controls.

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