Skip to main content
Glama
Smart House MCP Server

Smart House MCP Server

set_color

Sets a smart-home device or group to a specified hex color and turns it on automatically, enabling precise color changes by target.

Instructions

Set the color of a device or group using a hex color code. Turns device on automatically.

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>",
      "color": "<color>"
    },
    "name": "set_color"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorYesHex color code (e.g. '#ff0000' for red, '#00ff00' for green)
targetYesDevice/group identifier

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden, and it does add one genuinely useful behavioral fact: the device is turned on automatically as a side effect. It says nothing about permission requirements, whether the same color applies to every member of a group, error behavior for invalid hex, or whether the change is persisted.

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?

Two short sentences, the core action front-loaded and the auto-power-on side effect appended where it will be read. No filler or redundant restatement of the name.

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 simple two-parameter setter with fully documented schema and no output schema, the description covers the action, input format, and the notable side effect. The main remaining gap is that nothing is said about invalid input handling or whether group targets behave atomically, but that is minor for this complexity level.

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 description coverage is 100%, so both parameters are already documented, including an example hex format. The description only adds that 'target' can be a device or a group, which is marginal but real added meaning. Baseline 3 applies.

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 gives a specific verb and resource ("Set the color of a device or group") plus the accepted format (hex code), which distinguishes it in practice from siblings like set_color_temp and set_brightness. It stops short of naming or contrasting any sibling explicitly, so it lands at 4 rather than 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 only implied: an agent can infer this is the tool for arbitrary hex colors rather than color temperature or brightness, and that target may be a device or group. There is no explicit statement of when to prefer this over set_color_temp or control_device, and no exclusions or preconditions.

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