Skip to main content
Glama
Smart House MCP Server

Smart House MCP Server

control_device

Send any command with flexible parameters to smart-home devices across vendors. Control AC temperature, TV volume, curtains, and fans through one standardized tool.

Instructions

Generic device control — send any command with arbitrary params. Use for AC (set_temperature, set_mode), TV (set_volume, set_channel, set_source), curtains (set_position), fans (set_speed), etc.

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": {
      "target": "<target>",
      "command": "<command>"
    },
    "name": "control_device"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsNoCommand parameters as key-value pairs
targetYesDevice/group identifier
commandYesCommand name: set_temperature, set_mode, set_fan_speed, set_speed, set_position, set_volume, set_channel, set_source

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it only says "send any command with arbitrary params." It does not state what happens with an unknown or invalid command, whether params are validated against device type, whether the operation is idempotent or requires the device to be online, or whether a read-back is needed to confirm success. For a generic write tool accepting free-form payloads, that is a significant disclosure gap.

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 sentence plus a compact parenthetical of device/command examples; there is no filler or repetition. The example list is long but each item carries information about valid commands, so it earns its space. Slightly tighter grouping could shave it, but it reads cleanly.

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?

With no annotations and no output schema, the description is the only source of behavioral information, and it omits what a successful call returns, how failures surface, and whether a follow-up get_state is expected to verify the change. The free-form nested params object makes this omission more costly than for a fixed-signature tool. The device/command examples help, but the operational picture remains incomplete.

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%, so the schema already documents target, command, and params, giving a baseline of 3. The description adds genuine mapping value by associating command names with device types (set_position for curtains, set_volume for TV), but it says nothing about the string-keyed params payloads themselves (e.g., units, ranges, value types for set_temperature or set_position), which is where errors are most likely.

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 names a specific verb+resource ("Generic device control") and enumerates the command families per device type (AC set_temperature/set_mode, TV set_volume/set_channel/set_source, curtains set_position, fans set_speed). This separates it from the narrow siblings like turn_on, set_brightness, and set_color, which do one thing. It doesn't explicitly name those siblings as the preferred path for simple operations, which keeps it from a 5.

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?

Usage is shown by example (use this for AC/TV/curtains/fans commands), which implies the tool is the catch-all for commands not covered by dedicated siblings. There is no explicit when-not guidance: nothing says to prefer turn_on/turn_off/set_brightness/set_color when those fit, and scene tools (run_scene) are never mentioned. The agent must infer the boundary itself.

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