Skip to main content
Glama

Write a universal sensor

myio_set_usens
Idempotent

Pushes an external real-unit value into a universal sensor slot so thermostats, flow, MQTT and logs treat it as any sensor; the slot must be enabled and the value is read back.

Instructions

4.x: push a value into a universal sensor slot (id 0..SENQ) from outside, e.g. a temperature from another system: value in real units (21.5 °C -> stored as 215). Thermostats, Flow, MQTT and logs see it like any sensor. The slot must be enabled; the reply reads it 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>",
      "value": "<value>"
    },
    "name": "myio_set_usens"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesusens id (0..SENQ)
valueYesvalue in real units (one decimal is kept)
serverNocontroller name (default Ground floor)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.2

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations it discloses the storage transform (21.5 °C stored as 215), a precondition (slot must be enabled), and a post-condition (the reply reads the value back). It also explains the downstream effect that Thermostats, Flow, MQTT and logs treat it like any sensor, which no structured field conveys.

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?

Three tight sentences, front-loaded with the action and the slot range, then scaling and prerequisites. The leading '4.x:' version tag and the terse final clause 'the reply reads it back' are slightly cryptic but cost little.

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 a mutating, idempotent, non-destructive write with no output schema, the description covers input units, preconditions, and confirmation behavior. It does not say what error occurs when the slot is disabled, but nothing an agent needs to call it correctly is missing.

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

Parameters3/5

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

Schema coverage is 100% and the schema already documents id range, real-unit value, and the default server. The description's scaling example reinforces the value semantics but adds little beyond the schema's own 'one decimal is kept' note, and it says nothing extra about the server parameter.

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 uses a specific verb and resource: 'push a value into a universal sensor slot (id 0..SENQ) from outside'. The resource is unambiguous enough to separate it from device-specific setters like myio_set_thermostat, but it never names an alternative, so differentiation is left implicit.

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 clear context for use: injecting an externally sourced value, with a concrete example ('a temperature from another system'). It also states the precondition that 'the slot must be enabled'. It does not state when NOT to use it or which sibling to prefer for other cases.

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