Skip to main content
Glama
tim661811
by tim661811

Set a Homey logic variable

homey_variable_set
DestructiveIdempotent

Update an existing Homey logic variable with a value of the correct type (string, number, or boolean). Flows read these variables, so the change can alter what the house does next.

Instructions

Writes a new value to an existing Homey logic variable. A variable is one of exactly three types: string, number or boolean, and the new value has to match the type the variable already has. Flows read these variables, so changing one can change what the house does next. This tool never creates a variable; use homey_home_overview to see which ones exist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYesThe new value, matching the variable type.
variableYesLogic variable id or name.
Install Server

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnly=false, and the description adds valuable context: the type-matching constraint, the side effect on flows ('changing one can change what the house does next'), and the fact that it operates on existing variables only. This goes beyond the annotations and provides meaningful behavioral disclosure without contradiction.

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?

The description is concise and front-loaded. The first sentence states the primary purpose, followed by necessary context (type rules, side effects, and non-creation). Each sentence earns its place, with no redundant or filler content. It maintains a clear, efficient structure.

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

Completeness4/5

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

For a simple tool with two parameters and no output schema, the description covers the essential aspects: the operation, type constraints, side effects, and the relationship to other tools. It could potentially mention error handling on type mismatch, but that is implied by the explicit type rule. Overall, it's adequately complete for the tool's complexity.

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 both parameters are documented. The description adds crucial semantic detail: the value must match the variable's existing type, and the variable must already exist. This clarifies the 'value' parameter beyond the schema's generic description and provides a constraint that affects usage.

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?

The description clearly states the tool's action ('Writes a new value to an existing Homey logic variable'), specifies the resource (logic variable), and emphasizes the 'existing' constraint, which differentiates it from homey_variable_create. It also explicitly states it never creates a variable, providing clear distinction from sibling tools.

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?

The description gives clear context on when to use this tool (to change an existing variable) and when not to use it (it never creates variables), and points users to homey_home_overview to discover existing variables. However, it does not explicitly name the alternative creation tool (e.g., homey_variable_create), so it's not fully explicit about alternatives.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tim661811/homey-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server