Skip to main content
Glama
Hubitat MCP Server

Hubitat MCP Server

by MvdMunnik26

hubitat_set_variable

Update a named Hubitat hub variable with a new value to let MCP-compatible apps change hub state for automations, dashboards, or monitoring.

Instructions

Set the value of a hub variable

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "variableName": "<variableName>",
      "value": "<value>"
    },
    "name": "hubitat_set_variable"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYesThe new value for the variable
variableNameYesThe name of the hub variable

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states that the tool sets a variable's value but does not describe what happens if the variable does not exist, whether it creates one, permission requirements, or whether the change is reversible. For a mutation tool with zero annotation coverage, this is a significant gap.

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, efficient sentence with no unnecessary wording. The core action is front-loaded, though the extreme brevity leaves little room for structural elements like conditions or caveats.

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 is simple (two required parameters, no output schema), and the schema is fully described. However, as a mutation operation with no annotations, the description is incomplete regarding behavioral context such as error handling or side effects. It is adequate but leaves clear gaps.

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 both parameters are already documented in the input schema. The description adds no additional meaning about parameter formats or constraints beyond what the schema provides, which is appropriate for a baseline score of 3.

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 states a specific verb ('Set') and resource ('hub variable'), making the operation clear. It does not explicitly contrast with sibling tools like hubitat_get_variable or hubitat_set_mode, but the resource name provides implicit differentiation.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives such as hubitat_get_variable or hubitat_set_mode, nor are there any prerequisites or conditions for use. The purpose is implied by the verb 'Set', but no explicit when-to-use or when-not-to-use guidance is provided.

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