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

tuya_configure

Configure Tuya Smart Home API credentials, cloud region, and device IDs to enable controlling Tuya devices through an MCP server.

Instructions

Configure Tuya Smart Home credentials. Get these from the Tuya IoT Platform (iot.tuya.com).

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": {
      "clientId": "<clientId>",
      "clientSecret": "<clientSecret>",
      "region": "<region>",
      "deviceIds": "<deviceIds>"
    },
    "name": "tuya_configure"
  }
}

Input Schema

NameRequiredDescriptionDefault
regionYesTuya cloud region
clientIdYesTuya API client ID
deviceIdsYesArray of Tuya device IDs to control
clientSecretYesTuya API client secret

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden, and it omits key behavior: it doesn't say whether this persists/overwrites existing credentials, whether it validates them, or what happens on failure. It adds only the helpful note that credentials come from iot.tuya.com.

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?

Two short sentences, front-loaded with the action, with no wasted wording. The second sentence adds genuine value by pointing to the credential source.

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 config/mutation tool with no annotations and no output schema, the description covers the credential-source gap but leaves persistence, overwrite, and validation behavior unaddressed. Adequate but with clear gaps.

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 all four parameters (clientId, clientSecret, region, deviceIds) are already documented in the schema. The description adds no field-level meaning beyond confirming the credential source; 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?

States a specific verb and resource: configures Tuya Smart Home credentials. This is clearly distinct from the control-oriented siblings (tuya_all_on, tuya_set_switch, etc.), though it doesn't name them explicitly.

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: the fact that it configures credentials suggests it should be run during setup before control tools, but the description never says when to run it, whether it must precede other tuya_* calls, or whether it can be re-run.

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