Skip to main content
Glama
kinbeg

mcp-kr-controller

by kinbeg

set_relays_by_mask

Control up to 16 relays at once by providing a 16-bit mask. Each bit represents a relay, with 1 to activate and 0 to deactivate, enabling bulk state changes.

Instructions

按 16 位掩码批量设置继电器状态。掩码中 1=吸合, 0=断开,一次性设置所有回路。例如 mask=0x000F = 吸合第1-4路、断开第5-16路。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maskYes16 位掩码 (0-65535)。bit0=第1路, bit1=第2路, …, bit15=第16路。1=操作, 0=保持原状。
addressNo设备地址/机器号 (1-254),即机器地址。可通过 scan_devices 自动发现,或用 list_devices 查看已注册设备。255为广播地址。
Behavior2/5

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

No annotations are provided, so the description must explain behavior. It attempts to detail the mask mapping but gives an incorrect interpretation: the schema says 0=保持原状 (maintain state) while the description claims 0=断开 (de-energize). This misrepresents the tool's actual behavior, potentially leading to unintended relay states. It also fails to mention the address parameter's role.

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?

The description is very brief, one sentence plus an example, and gets to the point quickly. No excessive wording. The example is helpful in principle, though inaccurate.

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

Completeness2/5

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

The tool has no output schema and no annotations, so the description should cover more. It explains the mask concept but omits the address parameter, the effects of broadcast (255), and any prerequisites. The contradictory bit semantics also make it incomplete for safe usage. Given the complexity of relay control and the number of siblings, a more thorough description is needed.

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

Parameters2/5

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

Schema coverage is 100%, so a baseline of 3 is warranted. However, the description adds incorrect semantics for the mask parameter ('1=吸合, 0=断开') that contradicts the schema's '1=操作, 0=保持原状'. The example mask=0x000F is thus misleading. The address parameter is not mentioned in the description at all.

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 '按 16 位掩码批量设置继电器状态' (batch set relay states by 16-bit mask), clearly identifying the verb and resource. However, the bit semantics described ('0=断开') contradict the schema's '0=保持原状', making the purpose somewhat misleading.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool vs alternatives. It doesn't mention that this is for multi-relay control, nor contrasts with single-relay tools like connect_relay or all_relays_on. Lacks any 'use this when' context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kinbeg/mcp-kr-controller'

If you have feedback or need assistance with the MCP directory API, please join our Discord server