Skip to main content
Glama
solaegis

Hubitat MCP Server

by solaegis

Set device color (hex)

hubitat_set_color
Idempotent

Set a Hubitat ColorControl device's color using a hex value like #FF00AA or FF00AA. Converts the hex to the URL-encoded format Hubitat's Maker API expects, ensuring correct color configuration without manual JSON encoding.

Instructions

Set a ColorControl device color from a hex string. Builds the URL-encoded JSON map Maker API expects (including Hubitat's hex extension). Nobody constructs this by hand correctly.

Use when: setting bulb color from #RRGGBB or RRGGBB. Do NOT use when: only changing level or on/off.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hexYesHex color, e.g. FF00AA or #FF00AA
device_idYesMaker API device ID

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
hexYes
deviceNo
device_idYes
Behavior4/5

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

With annotations already covering readOnlyHint=false, destructiveHint=false, and idempotentHint=true, the safety profile is established. The description adds the valuable insight that it builds the URL-encoded JSON map with Hubitat's hex extension — a non-obvious behavioral/internal detail, and warns 'Nobody constructs this by hand correctly,' justifying why the tool exists. This exceeds the annotation baseline.

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?

Four tight sentences with zero waste. Action first, implementation detail second, usage guidance third, exclusion last. Every sentence earns its place.

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 2-param tool with 100% schema coverage, an output schema, and solid annotations, the description is nearly complete. It covers purpose, usage boundaries, and internal implementation nuance. It could mention response format, but the output schema likely compensates, so only a minor gap remains.

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%, covering both device_id and hex with clear descriptions. The description adds the color-format details (#RRGGBB or RRGGBB) and the hex-extension JSON construction context, which enriches understanding beyond the schema. Baseline 3 is appropriate since the schema handles parameter documentation well.

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 states a specific verb+resource: "Set a ColorControl device color from a hex string." It clearly distinguishes from siblings (hubitat_send_command handles generic commands, this handles color specifically) and even calls out the unique hex-extension formatting.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use: 'Use when: setting bulb color from #RRGGBB or RRGGBB' and explicit when-not: 'Do NOT use when: only changing level or on/off.' This gives the agent clear decision boundaries and implies alternatives for level/on-off changes.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/solaegis/hubitat-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server