Skip to main content
Glama

get_device_state

Retrieves a device's current state, including sensor temperatures, boiler status, coolant pressure, signal level, supply voltage, and boiler errors for ZONT heating diagnostics.

Instructions

Получить текущее состояние устройства: температуры датчиков, состояние котла, давление теплоносителя, уровень сигнала, напряжение питания, ошибки котла.

Параметры: device_id: идентификатор устройства (из get_devices).

Поле io['z3k-state'] содержит текущие показания всех объектов z3k_config (ключ — идентификатор объекта: датчик, контур, адаптер котла, реле). Состояние котла берётся из z3k-state по идентификатору адаптера шины.

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

Input Schema

NameRequiredDescriptionDefault
device_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.2

TDQS

A3.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the full behavioral burden. It discloses a non-obvious data-layout detail — that io['z3k-state'] holds current readings for all z3k_config objects keyed by object id, and that boiler state is resolved via the bus adapter id — which is real added context. It is silent, however, on failure modes for offline devices, data freshness, and whether it is a pure read, leaving meaningful gaps.

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 purpose and returned data are front-loaded in the first sentence, and the parameter note follows in a clearly delimited block. The trailing sentences on io['z3k-state'] internal structure are implementation-flavored and slightly dense, but they carry usable information rather than filler.

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 single-parameter read tool with an output schema present and no annotations, the definition covers what it returns, where the argument comes from, and how the underlying state map is keyed. Missing are only edge-case behaviors such as how unavailable devices are represented, which the output schema may partly cover.

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% for the single integer parameter, so the schema alone gives no meaning. The description compensates by stating that device_id identifies the device and must be obtained from get_devices, which is exactly the information an agent needs to supply a valid value. It adds no format or range detail, so it stops short of a 5.

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+resource ('Получить текущее состояние устройства') and immediately enumerates the concrete data returned: sensor temperatures, boiler state, coolant pressure, signal level, supply voltage, boiler errors. That makes the scope distinguishable from generic siblings like get_sensors or get_system_summary, though it does not explicitly name which sibling to prefer when the agent only wants boiler faults (get_boiler_errors).

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 is only implied: it tells the agent that device_id comes 'from get_devices', which is a genuine prerequisite pointer, but there is no statement of when to call this versus get_sensors, get_boiler_errors or get_config, and no exclusion or condition is given. The routing signal is partial rather than explicit.

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