Skip to main content
Glama

tuya_set_color

Set the color of Tuya RGB lights by device ID or name using HSV values. Specify hue, saturation, and value to achieve your desired lighting color.

Instructions

Set the color of a Tuya RGB light by device_id or name (e.g. 'Living Room Light') using HSV values. hue: 0-360, saturation: 0-255, value: 0-255

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hueYes
valueYes
device_idYes
saturationYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries the full behavioral disclosure burden, but it only states the action and value ranges. It does not mention side effects (e.g., whether the light is turned on), required permissions, error responses, or any other operational consequences, leaving the agent without important safety context.

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?

The description is two concise sentences with no filler. It front-loads the main action and then succinctly provides parameter ranges, making it easy to parse quickly.

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?

This is a mutating tool with no annotations, and the description lacks critical operational details such as expected output, error cases, or whether the action is idempotent. Even though an output schema exists, the description does not explain what the agent should expect in return, leaving the context incomplete.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate by explaining parameters. It provides useful ranges for hue, saturation, and value, but does not clarify device_id beyond an ambiguous reference to 'name', and it fails to specify that device_id is a unique identifier string. The 'name' mention is misleading given the schema only accepts device_id.

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 clearly states the action ('Set the color') and target resource ('Tuya RGB light'), distinguishing it from sibling tools like set_brightness and set_color_temperature. However, the mention of 'by device_id or name' is ambiguous because the schema only includes device_id, creating slight confusion about the intended input.

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?

The description implies this tool is for colored lights using HSV values, which differentiates it from brightness or color temperature tools. However, it does not explicitly state when to use this tool versus alternatives, nor does it provide exclusions or prerequisites.

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/juanmartinsantos/mcp-server-tuya'

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