Skip to main content
Glama

update_device_settings

Update scalar top-level fields of a ZONT device, such as name or note. Use specialized settings tools for heating circuits, modes, sensors, and curves, because this method ignores nested config sections.

Instructions

Изменить СКАЛЯРНЫЕ поля устройства (метод API update_device).

Параметры: device_id: идентификатор устройства. device_settings: плоский словарь скалярных полей, например: {"name": "Новое имя", "individual_device_note": "заметка"}

ВАЖНО (обратный анализ веб-приложения, 2026-10-25): update_device применяет ТОЛЬКО скалярные поля верхнего уровня. Секции z3k_config (контуры, режимы, датчики, кривые) этим методом НЕ записываются — сервер отвечает ok, но молча игнорирует их. Для секций используйте специализированные инструменты группы «Настройки» (update_heating_circuit_settings и другие) — они пишут через 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>",
      "device_settings": "<device_settings>"
    },
    "name": "update_device_settings"
  }
}

Input Schema

NameRequiredDescriptionDefault
device_idYes
device_settingsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.2

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations supplied, the description carries the whole burden and does well: it reveals that the server returns ok while silently discarding unsupported fields, and that the sibling tools verify application by re-reading. It does not mention permissions, authentication, or side effects beyond the scalar-field write, so it is not a full behavioral specification.

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 structure is good and front-loaded: purpose first, then parameters, then the critical caveat. The prose is efficient, though the parenthetical lists in the warning overlap somewhat with the parameter section and could be trimmed.

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 two-parameter mutation tool with no annotations, the definition covers what is mutated, what is silently ignored, and where to go instead. Since an output schema exists, the success-return shape need not be explained, but permission requirements remain unstated.

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 0%, so the description must compensate, and it does: device_id is identified as the device identifier and device_settings is defined as a flat dictionary of scalar top-level fields, with a concrete JSON example. It does not describe how additionalProperties/nested values behave, so it stops short of full coverage.

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?

The description names a specific verb and resource ("Изменить СКАЛЯРНЫЕ поля устройства", API method update_device) and immediately sets the boundary against the config-section tools. An agent can distinguish it from update_heating_circuit_settings and the rest of the Settings group without opening any schema.

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

Usage Guidelines5/5

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

It states explicitly when to use this tool (top-level scalar fields only) and when not to (z3k_config sections, circuits, modes, sensors, curves), and names the alternative tools plus the condition that selects them. The silent-ignore failure mode is spelled out as a reason to switch.

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