Skip to main content
Glama

set_io_port_value

Sets an arbitrary value on a ZONT device input/output port for nonstandard port types, such as temperature or auto-ignition values.

Instructions

Установить произвольное значение входа/выхода устройства.

Параметры: device_id: идентификатор устройства. portname: имя порта из конфигурации устройства. port_type: тип порта: "bool", "temperature", "auto-ignition" и др. value: значение в виде строки (будет преобразовано в нужный тип). Для bool: "true"/"false". Для temperature: "22.5". Для auto-ignition: '{"state": "enabled"}' или '{"state": "disabled"}'.

Используй set_relay для простых булевых портов. Этот инструмент — для портов с нестандартными типами значений.

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>",
      "portname": "<portname>",
      "port_type": "<port_type>",
      "value": "<value>"
    },
    "name": "set_io_port_value"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYes
portnameYes
device_idYes
port_typeYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.2

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full load. It does disclose the important behavioral trait that the string value is coerced to the port's native type, with concrete per-type examples. It says nothing about write consequences, whether the device must be online, what happens on invalid input, or failure modes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in one sentence, then a scannable parameter block, then the routing note. Given 0% schema coverage the per-parameter detail is not padding; every line carries information the schema does not.

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 four-required-parameter mutation tool with no annotations and no schema descriptions, the definition covers parameter meaning, value formats, and the sibling alternative; return values are covered by the existing output schema. It omits error/validation behavior and any precondition such as target device reachability.

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 documentation for all four required parameters, and it documents each one with name, meaning, and value-format examples for bool, temperature, and auto-ignition. It falls short of a 5 because port_type's list ends in 'и др.' with no enumeration, and the conversion rules for unlisted types are unspecified.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence states a specific verb and resource: write an arbitrary value to a device I/O port. The closing sentence explicitly scopes it against set_relay, so an agent can distinguish the two without opening either schema.

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 names the alternative ('use set_relay for simple boolean ports') and the condition that selects this tool (ports with non-standard value types). The one gap is that 'bool' still appears in the port_type list, which slightly muddies the routing rule for boolean ports.

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