Skip to main content
Glama

alexa_set_device_mode

Idempotent

Change a mode setting on an Alexa smart-home device (e.g., thermostat fan mode) with a confirmation step to prevent accidental changes.

Instructions

Change a mode setting on an Alexa smart-home device: a thermostat’s fan mode (e.g. "Circulate"), a robot vacuum’s mode, a light effect, and similar. setting picks the mode control by name (e.g. "Fan Mode") when the device has several; mode is the value by name or id, as alexa_list_device_modes shows them. Garage doors are not changed here: use alexa_garage_door. Asks the user to confirm first: a confirmation prompt where the client supports one; otherwise the first call returns a preview and a confirmToken, and only a repeat call with that token proceeds (see MCP_CONFIRM_MODE).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYesThe new value, by name ("Circulate") or value ("3").
targetYesDevice name (or id) from alexa_list_smart_home.
settingNoWhich mode control, by name ("Fan Mode") or instance. Optional when the device has one.
confirmTokenNoONLY for the two-step confirmation fallback (a client without MCP elicitation). The confirmToken from this same tool's phase-1 "confirmation-required" response, passed back ONLY after the user has seen that preview and explicitly approved it in chat — never on the first call, never invented, never reused. Call again with the same arguments. Ignored when the client supports elicitation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say non-readonly, non-destructive, idempotent, open-world; the description goes well beyond by disclosing the two-phase confirmation behavior: a client-side confirmation prompt where supported, otherwise a preview response carrying a confirmToken that must be echoed on a repeat call. It also clarifies the token must never be invented or reused, which is exactly the kind of behavioral detail annotations cannot convey.

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?

Front-loads the what and the examples, then the alternative tool, then the confirmation caveat - a sensible ordering. It is dense and slightly long, but nearly every clause carries operational weight (the confirmToken sentence is partly redundant with the schema description).

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

Completeness5/5

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

For a mutation tool with no output schema and an unusual two-call confirmation path, the description supplies everything an agent needs: valid value sources, sibling routing, and the exact token round-trip contract. Nothing material is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: `setting` disambiguates which mode control when a device has several, and `mode` accepts a name or an id as surfaced by alexa_list_device_modes. The confirmToken lifecycle is also explained beyond the schema's warning text.

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?

States a specific verb+resource (change a mode setting on an Alexa smart-home device) and immediately enumerates concrete instances: thermostat fan mode, robot vacuum mode, light effect. It also names the siblings it is NOT (alexa_garage_door, and implicitly alexa_list_device_modes for value lookup), so an agent can separate it from alexa_control_smart_home or alexa_set_thermostat without opening schemas.

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 (changing a mode-type setting), explicit when-not (garage doors - go to alexa_garage_door), and names the dependency tool for valid values (alexa_list_device_modes). The guidance is actionable and leaves nothing to inference about routing.

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