Skip to main content
Glama

Relay toggle

myio_relay_toggle

Toggle a myIO relay output to invert its current on or off state and return the state read back from the controller. Use it for switching devices by relay ID.

Instructions

Toggle (invert) a relay output. id = relay id 1..RQ (see myio_info / myio_list_devices). The reply shows the state read back from the controller.

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": {
      "id": "<id>"
    },
    "name": "myio_relay_toggle"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesrelay id (1..RQ)
serverNocontroller name (default Ground floor)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.2

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, and destructiveHint=false. The description adds value beyond them by stating that the reply contains the state read back from the controller, which tells the agent it gets verification of the resulting state after a non-idempotent mutation.

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?

Three short sentences, front-loaded with the action, followed by input discovery and return behavior. The 'id = relay id 1..RQ' clause partially duplicates the schema, which is the only wasted space.

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?

With no output schema, the description usefully explains what the reply contains. Both parameters are documented in the schema and the mutation semantics are covered by annotations, so what remains missing is only the on/off-vs-toggle routing guidance.

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 100%, so the baseline is 3. The description still adds meaning by pointing to myio_info / myio_list_devices as the way to obtain valid relay ids, which the schema does not say, though the '1..RQ' range itself merely repeats the 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 gives a specific verb plus resource: 'Toggle (invert) a relay output.' The parenthetical 'invert' clarifies the semantics relative to the sibling on/off tools, though it never names those alternatives explicitly.

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 pointer to myio_info / myio_list_devices helps an agent discover valid relay ids, which is genuine usage guidance for inputs. However, there is no guidance on when to toggle versus using myio_relay_on / myio_relay_off, nor any stated preconditions or exclusions.

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