Skip to main content
Glama

set_power_state

Turn a Kasa smart plug, bulb, strip, or switch on or off by device ID or IP address. Use it to control power state directly from Claude or other MCP-compatible apps.

Instructions

Turn a Kasa device on or off

Input Schema

NameRequiredDescriptionDefault
hostNoDevice IP address
stateYestrue = on, false = off
timeoutNoOperation timeout in milliseconds (default: 30000)
deviceIdNoDevice ID from discovery

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description bears the full behavioral burden and discloses almost nothing: it does not say the operation mutates device state, that the device must be reachable on the network, what happens on timeout, or whether failures are surfaced as errors. Only the implicit "turn on/off" semantics convey that it is a write.

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?

A single short sentence with zero filler, and the action and target are front-loaded. It is efficient, though the brevity comes at the cost of the guidance noted in other dimensions.

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 four-parameter mutation tool with no annotations and no output schema, the definition is minimal but sufficient to understand the action. The unresolved choice between deviceId and host addressing, plus absent failure/timeout behavior, leaves real gaps an agent would hit in practice.

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% and every parameter (state, host, deviceId, timeout) carries its own description, so the schema does the explanatory work. The description adds no extra meaning such as how host and deviceId interact or what the default timeout implies for slow devices; 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+resource pair ("Turn a Kasa device on or off"), which is enough for an agent to distinguish it from set_brightness and set_color_temperature, since those mutate other attributes. It stops short of explicitly stating it is the power/binary-state sibling, so differentiation relies on inference from the verb.

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?

No when-to-use guidance is given: nothing says whether the device must already be discovered, whether this is a prerequisite for set_brightness/set_color_temperature, or which of the two addressing modes to prefer. The schema's anyOf (state+deviceId or state+host) is an important selection decision the description never mentions.

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