Skip to main content
Glama

Relay OFF

myio_relay_off
Idempotent

Switches a relay output to OFF by relay ID and returns the state read back from the controller to confirm the change.

Instructions

Turn OFF 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_off"
  }
}

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 non-read-only, idempotent, non-destructive behavior. The description adds that the reply contains the state read back from the controller, which is meaningful because there is no output schema, and it clarifies that turning off an already-off relay is harmless.

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 with the action front-loaded, then id sourcing, then reply behavior. No filler or repetition.

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 no output schema, the definition covers the action, how to find the id, and what the response shows. It would be stronger with a note on what happens if the relay id is out of range or the controller is unreachable.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so both parameters are already documented, including the default controller name. The description restates the 1..RQ id range and points to discovery tools, which adds only marginal value beyond 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?

States a specific verb and resource: 'Turn OFF a relay output'. This clearly separates it from myio_relay_on, myio_relay_toggle and myio_group_off, though it doesn't explicitly name the alternative for a state-toggle case.

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?

Adds useful context by routing the agent to myio_info / myio_list_devices to discover relay ids. It gives no guidance on when to prefer this over myio_relay_toggle or myio_group_off, and no prerequisites are stated.

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