Skip to main content
Glama

set_guard_zone

Arm or disarm a specified security zone on a ZONT device using the device ID, zone ID, and an enable flag. Use it to change whether that zone is guarded.

Instructions

Поставить охранную зону на охрану или снять с охраны.

Параметры: device_id: идентификатор устройства. zone_id: идентификатор охранной зоны (из get_guard_zones). enable: True — поставить на охрану, False — снять с охраны.

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>",
      "zone_id": "<zone_id>",
      "enable": "<enable>"
    },
    "name": "set_guard_zone"
  }
}

Input Schema

NameRequiredDescriptionDefault
enableYes
zone_idYes
device_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.2

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It implies a state-changing operation but does not mention required permissions, whether the change is immediate or reversible, what happens for an unknown zone_id, or how errors surface. For a mutation tool with zero annotation coverage this is a significant gap.

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 action is front-loaded in one sentence, followed by a compact parameter list that is easy to scan. The device_id line adds no information beyond the parameter name, but overall there is little waste.

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 not be explained, and all three required parameters are given meaning. What is missing is behavioral context (permissions, effects, failure modes) for an otherwise simple toggle tool, which keeps it short of full completeness.

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 is the only source of parameter meaning, and it delivers: enable is explicitly mapped to arm (True) vs disarm (False), and zone_id is sourced from get_guard_zones. The only weak point is device_id, which is restated as 'device identifier' without further detail.

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 states a concrete verb+resource pair: arm or disarm a guard zone (поставить/снять с охраны). It is clearly distinct from sibling setters like set_relay or set_target_temperature, but it does not explicitly contrast itself with alternatives; the only sibling relation is a pointer to get_guard_zones for the zone_id.

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 through the workflow hint: zone_id comes from get_guard_zones, which tells the agent to list zones first. There is no explicit when-to-use vs when-not statement, no note on prerequisites (e.g. device online, zone existing), and no exclusions.

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