Skip to main content
Glama
tim661811
by tim661811

Check a flow before building it

homey_flow_validate
Read-onlyIdempotent

Validate a Homey flow before saving: verifies every card, argument, device, zone, and token reference, catching issues that would otherwise show as NO CARD or Unavailable.

Instructions

Checks a flow against this Homey without writing anything and without running anything: every card exists and is the right kind, every argument is named and typed correctly, every device and zone it names is still here, and every [[token]] reference names a value this Homey actually publishes, whether that is a device capability, a logic variable or a tag from an app. Worth calling first, because the Homey itself accepts almost anything. A flow naming a card that does not exist saves and shows as "NO CARD"; a token written with a colon instead of a pipe, or naming a tag that was never published, saves and shows as "Unavailable". Neither reports an error. The one thing it cannot judge is whether the flow does what the owner meant.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesWhat the flow is called.
actionsNoWhat the flow does.
triggerYesThe card that starts the flow. A flow cannot exist without one: the Homey stores the trigger in a NOT NULL column and rejects the flow otherwise. Use homey:manager:flow:programmatic_trigger for a flow that is only ever started by something else.
conditionsNoCards that decide whether the actions run. Omit for a flow that always runs.
Install Server

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so safety is covered. The description adds meaningful behavioral detail: it lists specific checks, notes that invalid flows silently save with 'NO CARD' or 'Unavailable', and admits its limitation ('cannot judge whether the flow does what the owner meant'). This enriches the annotation baseline 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.

Conciseness4/5

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

The description is a single dense sentence, front-loaded with purpose and covering essential behavioral details. It is efficient with no filler. It could be slightly better structured (e.g., breaking into two sentences), but it is well within acceptable conciseness for the content provided.

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 complexity of the tool (nested objects, multiple flow parts) and the lack of an output schema, the description adequately covers what it does, why it is valuable, and its limitation. It does not describe the return value format, but that is not critical since the description explains what validation catches. The reasoning about the Homey's lenient acceptance provides sufficient context for correct usage.

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 description coverage is 100%, so the baseline is 3. The description does not add parameter-specific semantics beyond the schema; it focuses on the validation behavior. It does implicitly explain the structure (trigger, actions, conditions) through the checks, but not enough to raise the score above the baseline.

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 it 'checks a flow against this Homey without writing anything and without running anything' and enumerates specific validations: card existence/type, argument names/types, device/zone existence, and token references. This distinguishes it from flow creation/update tools by emphasizing it is a non-mutating validation step.

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?

Explicitly says 'Worth calling first, because the Homey itself accepts almost anything', providing clear when-to-use guidance. It implies using it before saving a flow, but does not explicitly name alternative tools or when not to use it. The sibling list includes flow_create/update, so context is strong but not stated.

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