Skip to main content
Glama
tim661811
by tim661811

Run a HomeyScript script

homey_script_run
Destructive

Execute a script on Homey and get its return value. Debug scripts by viewing errors and line numbers, and return intermediate values to check.

Instructions

Runs a script on the Homey now and reports what it returned. A script that throws is reported here as a normal answer with the error and the line it happened on, so this is also how a script gets debugged. This server cannot see log() output: it goes to the HomeyScript app console and no route here reads it. What comes back is the return value, so return whatever needs checking rather than logging it. While a script is being written, return an object with the intermediate values in it; trim it to the real answer once it works. It really runs: anything the script does to the house, it does.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scriptYesThe script id, or its exact name.
Install Server

TDQS

A4/5.0
Behavior4/5

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

The description discloses that the script executes (implying potential side effects) and that the return value is reported. It also transparently notes that log() output is not visible to the server, which is a behavioral detail. The annotation destructiveHint: true aligns with the destructive nature of running arbitrary code, so no contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is verbose and rambling, repeating the concept of returning values multiple times and using informal phrasing (e.g., 'so this is also how a script gets debugged', 'return whatever needs checking rather than logging it'). It could be condensed into a few clear sentences without losing meaning.

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?

Given the simplicity of the tool, the description covers the essential aspects: what it does, what it returns, and how to handle debugging. It does not explicitly mention error handling beyond noting errors are reported with the line, but that is sufficient for a basic understanding.

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

Parameters5/5

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

The sole parameter 'script' has a clear description in the schema ('The script id, or its exact name.'). The tool description does not need to add further meaning, and the schema coverage is 100%. The parameter is well-defined and unambiguous.

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?

The description clearly states that the tool runs a script and reports the returned value. It uses a specific verb (run) and resource (script), distinguishing it from other script-related tools like delete or get. However, it does not explicitly mention alternatives or when to use this over others.

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 provides practical guidance on how to use the tool, such as returning values instead of relying on log output, and suggests returning intermediate objects during development. It implicitly indicates that this tool is for executing scripts and obtaining results, which helps the agent decide when to invoke it.

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