Skip to main content
Glama
stream-deck-mcp
by sohumsuthar

tuya_set_temperature

Set a Tuya smart light's color temperature to warm or cool using its device ID and a 0–100 percentage (0=warmest, 100=coolest).

Instructions

Set the color temperature of a Tuya smart light (0=warm/2700K, 100=cool/6500K)

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": {
      "deviceId": "<deviceId>",
      "temperature": "<temperature>"
    },
    "name": "tuya_set_temperature"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceIdYesTuya device ID
temperatureYesColor temperature percentage (0=warmest, 100=coolest)

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 for a mutating tool. It discloses the value scale and Kelvin equivalents but says nothing about whether the light must be powered on, whether unsupported devices error, whether the change is persistent, or what the response looks like.

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?

A single front-loaded sentence with the action first and the scale semantics in parentheses. Nothing is wasted and the key detail arrives before any filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter setter with no output schema and no annotations, the description is minimally sufficient to invoke correctly. It stops short of covering device preconditions and failure modes that an agent would want before calling a mutation on hardware.

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 both deviceId and the 0-100 temperature range, making 3 the baseline. The description adds the concrete Kelvin anchors (2700K/6500K), a modest enrichment beyond the schema's qualitative "warmest/coolest" wording.

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 ("Set") and resource ("color temperature of a Tuya smart light"), which is unambiguous on its own. It does not distinguish itself from siblings like tuya_set_brightness or tuya_set_switch, leaving the agent to infer the boundary from tool names alone.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no mention of alternatives such as tuya_set_brightness, and no stated preconditions. The agent must infer that this applies only to color-temperature-capable Tuya lights from the description's wording.

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