Skip to main content
Glama

run_scenario

Execute a scenario configured in the ZONT web cabinet on a specific device to apply its saved chain of actions and automate heating control.

Instructions

Запустить сценарий (цепочку действий, настроенную в веб-кабинете).

Параметры: device_id: идентификатор устройства. scenario_id: идентификатор сценария (из get_config → custom_controls или раздела «Сценарии» кабинета).

Сценарий выполняет ровно те действия, которые настроены в кабинете.

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

Input Schema

NameRequiredDescriptionDefault
device_idYes
scenario_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.2

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does add the important trait that the scenario executes exactly the actions configured in the cabinet — i.e. effects are externally defined and not visible to the caller. It does not disclose that this may mutate device state (heating, relays), whether it is reversible, what happens if the device is offline, or any permission requirement.

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?

Front-loaded with the purpose, then a clean parameter list, then a short behavioral caveat. Every line is doing work; the only mild redundancy is restating the 'configured in the cabinet' idea in the first and last sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 not be explained, and both parameters are covered. What is missing for a potentially state-changing tool with zero annotations is failure behavior (unknown scenario, offline device) and confirmation that the call is not read-only, which an agent would need before invoking it blindly.

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 does: both required parameters are explained, and scenario_id gets provenance guidance (get_config → custom_controls / cabinet Scenarios section) that the bare integer schema cannot convey. device_id is only glossed as 'идентификатор устройства', leaving its origin less clear than scenario_id's.

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?

States a specific verb and resource ('Запустить сценарий') and immediately defines a scenario as a chain of actions configured in the web cabinet, so the agent knows this replays a stored routine rather than issuing a single command. It stops short of naming a sibling to contrast with (e.g. send_custom_command), so it is clear but not fully differentiated.

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?

Offers one concrete prerequisite: scenario_id comes from get_config → custom_controls or the cabinet's Scenarios section, which is genuinely useful routing. However it never says when to prefer this over send_custom_command or get_custom_controls, nor any exclusion conditions or device-state requirements, so usage is implied rather than stated.

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