Skip to main content
Glama

send_custom_command

Send a configured command to a ZONT device by device ID and command ID to control heating modes, relays, and other available actions.

Instructions

Отправить пользовательскую команду устройству.

Параметры: device_id: идентификатор устройства. command_id: идентификатор команды из настроек (z3k_config.custom_controls[].commands[].id).

Пользовательские команды настраиваются в веб-интерфейсе ZONT в разделе «Элементы управления». Они могут активировать любое доступное действие: включить режим отопления, управлять реле и т.д.

Внимание: команда отправляется только если устройство на связи. Метод возвращает ok независимо от результата доставки.

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

Input Schema

NameRequiredDescriptionDefault
device_idYes
command_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.2

TDQS

A3.8/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 meaningful behavior: the command is only delivered when the device is online, and the method returns ok regardless of actual delivery outcome — a critical caveat that prevents an agent from trusting success. It does not cover error conditions or whether the return value can be used to confirm execution, but the delivery caveat is the key non-obvious trait.

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 is front-loaded, followed by a parameter block and a behavioral warning — a sensible structure. The explanation of what custom commands are is slightly verbose but earns its place by clarifying scope.

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 the main risks: what it does, the ID provenance, and the misleading success signal. An output schema exists so return-shape detail is unnecessary, though how to obtain a valid command_id remains unaddressed.

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 command_id is tied to a concrete config path (z3k_config.custom_controls[].commands[].id), which meaningfully helps an agent source a valid value. It still doesn't point at a sibling tool for discovering command IDs or state format constraints.

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 names a specific verb and resource ("Отправить пользовательскую команду устройству") and explains that custom commands are user-configured actions in the ZONT web UI that can trigger heating modes, relays, etc. This makes the purpose concrete. It stops short of explicitly distinguishing itself from siblings like set_relay or run_scenario, which perform related actions.

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 implied: it applies when a pre-configured custom command ID exists in the device settings. There is no explicit statement of when to prefer this over set_relay/run_scenario, nor any exclusion or prerequisite guidance on obtaining a valid command_id.

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