Skip to main content
Glama

Create or change a timer

myio_set_timer
DestructiveIdempotent

Create or update a myIO smart home timer for a set time or sunrise/sunset offset. Define weekdays or a one-day date, plus the event and target, to automate devices.

Instructions

Create (omit id; an identical existing timer is not duplicated) or change (id) a timer. Time: hour 0..23 + minute 0..59, or sunrise / sunset = "after" | "before" with hour/minute as the offset (max 4 h). Optional month (1..12) and day (1..31) for a one-day timer. days: weekday names ["Mon","Fri"] (omit = every day). event: code or name - 1 load scene (all), 2 relay ON, 3 relay OFF, 4 FET ON, 5 FET OFF, 6 group ON, 7 group OFF, 15 PCA ON, 16 PCA OFF, 8..14/17 load scene parts, 18 SG-Ready mode. param: the target id (relay/FET/group/PCA id, scene slot, SG mode 1..4). 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": {
      "event": "<event>",
      "param": "<param>"
    },
    "name": "myio_set_timer"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
dayNo
daysNo
hourNo
eventYes
monthNo
paramYes
minuteNo
serverNocontroller name (default Ground floor)
sunsetNo
sunriseNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.2

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered. The description adds real behavioral value beyond that: the non-duplication rule for identical timers, the 4-hour cap on sunrise/sunset offsets, and the 'Editor level' permission requirement. It does not explain what an existing timer loses when changed or whether unspecified fields are reset, which is the main remaining gap for a destructive mutation.

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?

Front-loaded with the create/change distinction, then parameter semantics in the order an agent needs them; every clause adds information the schema lacks. The semicolon-compressed phrasing and the dangling fragment 'Editor level.' make it denser to parse than necessary, but there is no filler.

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 an 11-parameter destructive mutation with 9% schema coverage and no output schema, the description is unusually complete on inputs, permission level, and idempotency. It is still silent on partial-update behavior when id is supplied and on how hour/minute interact when sunrise/sunset is also given.

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

Parameters5/5

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

Schema description coverage is only 9%, so the description carries essentially the full burden and does so: hour/minute ranges, sunrise/sunset with after/before offset semantics and the 4h cap, month/day for one-day timers, days as weekday-name arrays with omit-equals-every-day, the complete event code table (1-18), and param's meaning per event type. Only 'server' is left to the schema's own short description, which is adequate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a precise verb+resource pair and immediately distinguishes the two modes: create by omitting id, change by supplying id. The unique non-duplication rule for creates makes the tool's identity unmistakable and separable from myio_delete_timer.

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 clearly states the condition that selects each mode (omit id vs. supply id) and signals the required privilege with 'Editor level.' It does not name an alternative for removal (myio_delete_timer) or state when a timer should not be created, so exclusions are left to inference.

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