Skip to main content
Glama

Relay ON

myio_relay_on
Idempotent

Turns on a specified relay output by ID on a myIO controller, optionally naming the controller, and confirms the resulting state read back from the device.

Instructions

Turn ON 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_on"
  }
}

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

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the mutation and safety profile are covered structurally. The description adds information the annotations do not: the reply is a state read back from the controller, which tells the agent it can verify the result without a follow-up read. It does not cover failure behavior (e.g. what happens if the relay id is out of range).

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?

Three short sentences, zero filler, with the action stated first and the id-resolution hint immediately after. Nothing could be removed without losing information.

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 simple two-parameter actuator with full schema coverage and a safety-covering annotation set, this is nearly complete: it names the action, the id domain, the discovery path, and the return semantics. The only gap is the absence of any error or out-of-range behavior, which is minor given the tool's simplicity.

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 and the schema already documents both id and server. The description nonetheless adds value by restating the 1..RQ bound and, more importantly, naming the discovery tools (myio_info / myio_list_devices) the agent needs to obtain a valid id, which is not in the schema.

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 description states a specific verb and resource ('Turn ON a relay output'), and the polarity verb plus 'relay' cleanly separates it from myio_relay_off, myio_relay_toggle, and the non-relay variants myio_pca_on / myio_pwm_on / myio_group_on. An agent can route to it without opening any schema.

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?

It gives a genuine pointer for resolving valid ids ('see myio_info / myio_list_devices'), which is real usage guidance. However, it never states when to prefer this over myio_relay_toggle or myio_group_on, and no preconditions (e.g. device reachable, relay exists) are mentioned, so usage is only implied.

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