Skip to main content
Glama

automation

Generate openHAB automation rules from natural language, discover temporal patterns, simulate rule chains, and validate JavaScript syntax.

Instructions

Automation generation and testing. action: generate_rule (from NL), discover_patterns (temporal correlation), shadow_run (dry-run preview), simulate (predict outcome + rule chains), validate_rule (JS syntax check).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes
intentNoNatural language rule intent (used by: generate_rule)
itemNameNoUsed by: simulate, discover_patterns
correlatedItemNameNoUsed by: discover_patterns
commandNoUsed by: simulate
commandsNoUsed by: shadow_run
scriptNoJS to validate (used by: validate_rule)
Behavior2/5

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

No annotations are provided, so the description must fully disclose behavioral traits. It mentions 'shadow_run (dry-run preview)' hinting at non-destructive behavior, but does not state side effects, authorization needs, rate limits, or error conditions for other actions. The description is insufficient for an agent to understand the full behavioral implications.

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 a single sentence that front-loads the tool's purpose and then lists all actions with concise summaries. Every part is essential, no waste. Ideal length for scanning.

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

Completeness3/5

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

The tool has 7 parameters, 5 actions, and no output schema. The description covers the actions adequately but lacks information about return values, error handling, or required permissions. It is functionally complete for what each action does but misses behavioral and output context.

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 86%, high, so baseline is 3. The description adds no parameter meaning beyond listing actions; the schema itself documents parameter usage with 'Used by:' notes. Thus the description does not elevate parameter understanding beyond the schema.

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 'Automation generation and testing' and enumerates five specific actions (generate_rule, discover_patterns, shadow_run, simulate, validate_rule). It provides a verb+resource mapping for each, making the tool's purpose distinct from sibling tools like manage_rule or query_rules. However, it does not explicitly contrast with siblings.

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

Usage Guidelines3/5

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

Each action is briefly described (e.g., 'from NL', 'temporal correlation', 'dry-run preview', 'predict outcome + rule chains', 'JS syntax check'), which implies usage context. However, no explicit guidance on when to use this tool versus alternatives (e.g., manage_rule), nor any exclusion criteria or prerequisites.

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

Install Server

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/deswong/Openhab-MCP'

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