Skip to main content
Glama

Configure / query Modbus

myio_modbus_set
Destructive

Configure Modbus panel blocks, fields, writers, bus settings, names, and presets, or run raw/scan diagnostics for myIO controllers.

Instructions

Modbus panel table (Opta 4.16+; the panel saves 8 s after the last change, or save=true now). action: block (panel, index 0..7, slave 1..247, func 1..4, start, count 1..125, period_s, enabled), field (panel, index 0..31, block, offset, dtype 1 u16 / 2 i16 / 3 u32 / 4 i32 / 5 f32 / 6 u64 / 7 i64 / 8 f64 / 9 bit / 10 bool, order 0 ABCD / 1 CDAB / 2 BADC / 3 DCBA, bit, scale -9..9, sf_offset (255 none), target usens, enabled, invert), writer (panel, index 0..15, slave, func 5/6/16, reg, dtype, order, source_pca, off, on, period_s, enabled, invert), delete (panel, table 0 block / 1 field / 2 writer, index), bus (panel, baud code 0 9600 / 1 19200 / 2 38400 / 3 57600 / 4 115200, frame 0 8N1 / 1 8E1 / 2 8O1 / 3 8N2, timeout_ms, retries, gap_ms), name (panel, field_index or writer_index or none for the panel, name), preset (panel, preset id e.g. SDM630), reload (panel), clear (panel - admin), raw (panel, slave, func, reg, count: one request, result shown) and scan (panel, from, to, func, reg: which slave addresses answer). Editor/admin level.

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": {
      "action": "<action>",
      "panel": "<panel>"
    },
    "name": "myio_modbus_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
onNo
toNo
bitNo
offNo
regNo
baudNo
fromNo
funcNo
nameNo
saveNo
blockNo
countNo
dtypeNo
frameNo
indexNo
orderNo
panelYes
scaleNo
slaveNo
startNo
tableNo
actionYes
gap_msNo
invertNo
offsetNo
presetNo
serverNocontroller name (default Ground floor)
targetNo
enabledNo
retriesNo
period_sNo
sf_offsetNo
source_pcaNo
timeout_msNo
field_indexNo
writer_indexNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.2

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the deferred-commit behavior ('the panel saves 8 s after the last change, or save=true now'), the editor/admin access level, and that 'raw' issues a single request with the result shown. Those are genuinely valuable traits an agent could not infer from destructiveHint/readOnlyHint alone. It does not spell out the consequence of 'clear' or 'delete' beyond their names, and 'result shown' leaves the response surface vague.

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

Conciseness3/5

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

Every token earns its place given 36 parameters, and the save-timing caveat is front-loaded. But the body is one long run-on parenthetical chain with no line breaks, action grouping, or sentence separation, which makes it slow to parse and easy to mis-scope a parameter to the wrong action.

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?

For a 36-parameter destructive tool with no output schema, the action coverage is solid, but key context is missing: the panel/server relationship is never explained, 'reload' and 'preset' outcomes are undefined, and 'result shown' for raw/scan does not say where or in what form results appear. These matter because the agent must decide whether an action mutates config or returns data.

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?

With schema description coverage at 3%, the description carries the burden and largely succeeds: it decodes the dtype codes 1-10, order codes 0-3, baud and frame codes, table codes for delete, sf_offset 255 as 'none', and maps which parameters belong to which action. Gaps remain for a few fields — notably how 'panel' relates to 'server' and what 'target' (usens) means in context — but the overall decoding is far beyond the bare schema.

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 'Modbus panel table' and enumerates the concrete sub-operations (block, field, writer, delete, bus, name, preset, reload, clear, raw, scan), so an agent knows this is the Modbus configuration/query surface. It distinguishes itself from the read-only sibling myio_modbus only implicitly via the 'set' name and the admin/edit framing, not by explicit contrast.

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?

The per-action parameter lists effectively tell the agent which action to pick for a given intent (e.g. 'raw' for one request, 'scan' for which slaves answer), which is real usage guidance. However, there is no explicit statement of when to use this tool versus myio_modbus for reading, and no warning about when 'clear' should be avoided beyond the 'admin' tag.

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

Deploy Server

Other Tools