Skip to main content
Glama

Set a protection pair

myio_set_protection
DestructiveIdempotent

Defines or clears output protection pairs so two IDs never activate together, with optional pair index and priority; use 0/0 to clear the pair.

Instructions

Define or clear a protection pair (index 0..PQ-1, or omit index: an identical existing pair is reused, otherwise the first free one): up and down = output ids that may never be on together (relay 1.., PCA 2001..); 0/0 clears the pair. priority = the first (UP) element wins when both are requested. A pair makes a shutter for myio_shutters. Editor level.

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": {
      "up": "<up>",
      "down": "<down>"
    },
    "name": "myio_set_protection"
  }
}

Input Schema

NameRequiredDescriptionDefault
upYes
downYes
indexNo
serverNocontroller name (default Ground floor)
priorityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.2

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations (destructive, idempotent, non-read-only) the description adds real behavioral detail: what destruction means (0/0 clears the pair), the reuse/first-free allocation rule when index is omitted, and the side effect that a pair materialises as a shutter in myio_shutters. It does not describe the response or what happens to existing pairs when an index is reused with conflicting outputs.

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?

A single front-loaded paragraph that leads with the action and then layers index, up/down, clearing and priority. The nested parentheticals make it dense to parse, but every clause carries information an agent needs.

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 destructive, editor-level mutation with no output schema, the definition covers allocation behavior, clearing, priority resolution and a cross-tool effect. The remaining unknowns (return payload, conflict handling) are minor for this class of tool.

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 only 20% and the schema documents only 'server', so the description carries the burden and largely does: it defines up/down with valid id ranges (relay 1.., PCA 2001..), explains index (range plus omission semantics) and priority ('the first (UP) element wins'). Only 'server' is left to 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 opens with a specific verb+resource: 'Define or clear a protection pair', and immediately constrains what the pair means ('output ids that may never be on together'). That is precise enough for an agent to distinguish it from the many myio_*_set configuration siblings, though it never explicitly names a competing tool.

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

Usage Guidelines4/5

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

It gives concrete selection rules: pass an explicit index 0..PQ-1, omit index to reuse an identical existing pair or take the first free one, and use 0/0 to clear. It also states the prerequisite ('Editor level'). What it never states is when an agent should call this versus leaving protection alone, or any 'do not use for X' exclusion.

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