Skip to main content
Glama

update_weather_curve

Updates an existing weather-dependent heating curve for a heating circuit by setting outdoor-to-flow temperature points; optionally selects the curve and renames it.

Instructions

Задать погодозависимую кривую (ПЗА) контура отопления.

Параметры: device_id: идентификатор устройства. circuit_id: идентификатор контура (из get_config → heating_circuits), кривая привязывается к нему полем pza. points: список пар [уличная_температура, температура_подачи] в °C, например: [[20, 30], [0, 55], [-40, 70]]. curve_id: идентификатор существующей кривой из get_config → pzas. Если не указан — берётся кривая, уже привязанная к контуру. name: необязательное новое название кривой.

Хранилище и кодирование (раскрыто анализом веб-приложения 2026-10-25): кривые лежат в разделе pzas, обе оси кодируются формулой g2dk(t) = round(10×t + 2730); пример: +20 °C → 2930, −40 °C → 2330. Инструмент сам приводит °C к кодированному виду и обратно.

Создание новой кривой не поддерживается (идентификаторы назначает сервер); можно менять существующую — включите ПЗА в веб-кабинете, после чего кривая появится в конфигурации.

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>",
      "circuit_id": "<circuit_id>",
      "points": "<points>"
    },
    "name": "update_weather_curve"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
pointsYes
curve_idNo
device_idYes
circuit_idYes

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?

No annotations are supplied, so the description carries the full burden, and it does substantial work: it discloses that curve creation is unsupported (the server assigns IDs), that the curve is bound to the circuit via the pza field, and how values are stored and encoded. It omits permission requirements and confirmations of reversibility, keeping it just short of full disclosure.

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 the purpose and then uses a clean labeled parameter block, so it is easy to scan. The storage/encoding section (g2dk formula, encoded examples) is arguably surplus detail since the tool converts values automatically, though it is set off in its own paragraph.

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?

An output schema exists, so return values need no explanation, and the description covers the mutation's prerequisites and its main limitation (no creation). The remaining gap is that it does not say what happens to the existing curve when points are updated or how failures are reported.

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 description coverage is 0%, yet all five parameters are explained: device_id and circuit_id are identified, points is defined as [outdoor temp, supply temp] pairs in °C with a worked example, curve_id specifies its source and its default behavior when omitted, and name is marked optional. This fully compensates for the missing schema annotations.

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: set the weather-dependent curve (ПЗА) for a heating circuit, which is unambiguous. It references get_config for obtaining circuit and curve IDs, but does not explicitly contrast itself with sibling mutators such as update_heating_circuit_settings.

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 states where the required IDs come from (get_config → heating_circuits and get_config → pzas) and gives a concrete prerequisite: PZA must first be enabled in the web cabinet so the curve appears in the configuration. The main gap is the absence of explicit when-not-to-use guidance or named alternatives among the many update_* siblings.

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