Skip to main content
Glama

Switch or dim any output

myio_output

Control myIO outputs by ID—relays, FETs, groups, and PCA dimmers—using on, off, toggle, or level/percent dimming, then read back the resulting state.

Instructions

One tool for every output type, by id: relay (1..RQ), FET (101..116), group (501..), PCA dimmer (2001..). action: on | off | toggle | level (level needs level 0..255 or percent 0..100; PCA/FET only). ON on a dimmer = its configured MAX, OFF = MIN. Reads the state back.

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>",
      "action": "<action>"
    },
    "name": "myio_output"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYeselement id
levelNoraw level 0..255 (action=level)
actionYes
serverNocontroller name (default Ground floor)
percentNolevel in percent (action=level, when level is not given)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.2

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare the safety profile (not read-only, not idempotent, not destructive, closed-world), so the description's added value is behavioral: ON on a dimmer maps to its configured MAX and OFF to its configured MIN, and the tool reads the state back after acting, confirming the mutation. The PCA/FET-only restriction on `level` also discloses where an otherwise valid-looking call would be rejected. It stops short of permission/auth requirements or error behavior for out-of-range ids.

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?

Dense, front-loaded and free of filler — the id taxonomy comes first, then action semantics, then the MAX/MIN caveat and the read-back. The telegraphic phrasing is efficient for an expert agent but borders on cryptic in places (e.g. 'by id', '1..RQ').

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter mutation tool with no output schema, the description covers the decisions that matter: valid id ranges per device class, all four actions, the level/percent requirement and its device restriction, dimmer ON/OFF mapping, and that state is read back. Little an agent needs to invoke it correctly is absent.

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 80% schema coverage the baseline is 3, and the description earns above it by attaching device-type meaning to the `id` parameter (relay 1..RQ, FET 101..116, group 501.., PCA 2001..), which the schema only calls 'element id'. It also explains the precedence between `level` and `percent`; the `server` parameter is left to its schema description.

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 states a concrete resource (every output type, addressed by id) and enumerates the exact id ranges for relay, FET, group and PCA dimmer, backed by a clear action set (on/off/toggle/level). An agent can immediately tell this is the output-control tool. It does not, however, differentiate itself from siblings such as myio_group_on/myio_group_toggle or myio_dali_set, whose domains overlap with the group and dimmer ranges it claims.

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 supplies in-tool routing rules — level requires `level` or `percent` and is only valid on PCA/FET — which tells the agent which action to pick for a given device. What is missing is when to choose this tool over the sibling group_* or *_set tools, and there is no statement of prerequisites such as controller reachability. Usage is implied by the id ranges rather than stated as a selection rule.

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