Skip to main content
Glama

alexa_set_thermostat

Idempotent

Set an Alexa-connected thermostat's mode and temperature setpoint, with range validation and user confirmation before changes apply.

Instructions

Set an Alexa-connected thermostat: change the temperature setpoint (heat-to / cool-to) and/or the mode (HEAT, COOL, AUTO, OFF, ECO). In AUTO mode pass lower (heat to) and/or upper (cool to) — the one you omit is kept from the current setting; in HEAT or COOL mode pass temperature. Reads the thermostat first and refuses a setpoint outside its allowed range. Units default to the thermostat’s own scale. 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
modeNoNew thermostat mode.
lowerNoAUTO mode: heat-to setpoint (lower bound).
scaleNoUnits of the temperatures given. Defaults to the thermostat’s scale.
upperNoAUTO mode: cool-to setpoint (upper bound).
targetYesThermostat name (or id) from alexa_list_smart_home.
temperatureNoSingle setpoint for HEAT or COOL mode.
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.6/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: it reads the thermostat first, refuses out-of-range setpoints, defaults units to the device scale, and requires user confirmation via either elicitation or a preview+confirmToken two-step flow. This is exactly the kind of interaction semantics annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false) cannot convey, and nothing conflicts with them.

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?

One dense, front-loaded paragraph ordered by importance: what it does, then per-mode parameter rules, then safety behavior, then confirmation. Every clause is load-bearing; it is slightly long for a single block but has no filler sentences.

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 7-parameter mutation tool with no output schema, it covers the mutation model, unit defaults, validation/refusal behavior, and the full two-phase confirmation contract including token handling. Nothing an agent needs to invoke it correctly, including the easy-to-mishandle confirmToken, is left unstated.

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%, but the description still adds real semantic value the schema does not: in AUTO the omitted bound is retained from the current setting, and HEAT/COOL consume the single temperature rather than the bounds. That clause alone raises it above the baseline-3 case for fully documented schemas.

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 ('Set an Alexa-connected thermostat') and enumerates exactly what is controllable: setpoint (heat-to/cool-to) and mode. An agent can distinguish this from sibling all-purpose tools like alexa_control_smart_home without opening either schema.

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

Usage Guidelines4/5

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

Gives mode-conditional usage rules ('in AUTO mode pass lower/upper', 'in HEAT or COOL mode pass temperature') and explains the confirmation prerequisite. It stops short of naming alternative tools or stating when not to use this one versus alexa_control_smart_home, so it is clear context rather than full routing guidance.

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