Skip to main content
Glama

PWM level

myio_pwm_set
Idempotent

Set a FET/PWM output level using a raw value (0–255) or percentage (0–100) for legacy hardware IDs 101–116.

Instructions

Set a FET/PWM output level: level (raw 0..255) or percent (0..100). Legacy hardware only (ids 101..116).

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_pwm_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesFET id (101..116)
levelNo
serverNocontroller name (default Ground floor)
percentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.2

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare it is a non-read-only, idempotent, non-destructive, closed-world write, so safety is covered. The description adds useful behavior the annotations do not: the hardware restriction and the fact that level and percent are alternative ways to express the same setting. It does not address what happens if both are supplied, if neither is supplied (only id is required), or whether the value persists across restarts.

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?

One sentence, front-loaded with the verb and resource, then the value-mode choice, then the hardware constraint. No filler and nothing redundant with the structured fields beyond the useful range restatement.

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

Completeness3/5

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

For a simple idempotent setter with no output schema this is close to sufficient, but the schema requires only id, leaving two valid-but-undefined calls: id alone (neither level nor percent) and id with both level and percent. A short clause on precedence or the minimum viable payload would close the gap.

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 50%: id and server are documented, level and percent are not. The description compensates by restating the ranges and, more importantly, framing them as mutually exclusive alternatives ('level (raw 0..255) or percent (0..100)'), a relationship the schema cannot express with a flat properties list.

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?

Names a specific verb and resource (set a FET/PWM output level) and scopes it with 'Legacy hardware only (ids 101..116)', which separates it from the sibling pwm_on/off/toggle family by implying this is the level-setting variant. It stops short of naming a sibling alternative explicitly, but the operation is unambiguous.

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?

The 'Legacy hardware only (ids 101..116)' clause is a useful eligibility constraint, but it does not say when to pick this over myio_pwm_on/myio_pwm_off or what tool applies to non-legacy hardware. Usage context is implied rather than 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