Skip to main content
Glama

update_sensor_settings

Modify ZONT sensor thresholds, notifications, and calibration, then verify the changes by rereading the device configuration.

Instructions

Изменить настройки датчика (пороги, уведомления, калибровка).

Параметры: device_id: идентификатор устройства. sensor_type: раздел конфигурации: wired_temperature_sensors, analog_temperature_sensors, radiosensors или analog_inputs. sensor_id: идентификатор датчика в этом разделе. settings: поля для изменения, например: {"upper_threshold": 30, "lower_threshold": 10, "calibration_shift": -0.5}

Инструмент проверяет применение перечитыванием конфигурации (запись выполняется методом save_z3k_config — целиком весь конфиг, как это делает официальное веб-приложение).

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>",
      "sensor_type": "<sensor_type>",
      "sensor_id": "<sensor_id>",
      "settings": "<settings>"
    },
    "name": "update_sensor_settings"
  }
}

Input Schema

NameRequiredDescriptionDefault
settingsYes
device_idYes
sensor_idYes
sensor_typeYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.2

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose a critical side effect: the write goes through save_z3k_config and rewrites the entire configuration, mirroring the official web app. It also notes the tool verifies the write by re-reading the config. Missing only auth/permission requirements and what happens when a value is rejected.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded one-line purpose followed by a compact parameter block and a short behavioral note; the JSON example does real work by showing the shape of the nested settings object. No filler sentences.

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 4-required-param mutation tool with a nested free-form object, no annotations and an output schema (so return values need not be explained), the definition covers intent, parameter meaning, the enum-like section list, and the whole-config-rewrite side effect. Remaining gaps are error behavior and permission requirements, which are minor against an otherwise complete picture.

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 largely does: every parameter is explained, including the four section values for sensor_type that the bare schema (plain string, no enum) would not convey, plus a concrete settings example naming upper_threshold, lower_threshold and calibration_shift. It stops short of enumerating the full set of permissible settings keys, so 5 is not warranted for a free-form additionalProperties object.

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?

States a specific Russian verb+resource ('Изменить настройки датчика') and immediately enumerates the setting families covered (thresholds, notifications, calibration). Combined with the parameter breakdown, an agent can separate this from sibling mutators like update_device_settings or update_heating_circuit_settings by the target resource alone.

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 context is implied rather than stated: the sensor_type section list (wired_temperature_sensors, analog_temperature_sensors, radiosensors, analog_inputs) tells the agent where a sensor lives, but there is no explicit when-to-use/when-not-to-use guidance and no mention of prerequisites or alternatives among the sibling update_* tools.

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