Skip to main content
Glama
Smart House MCP Server

Smart House MCP Server

get_state

Retrieves the current state of a smart-home device or group using an ID, name, room and type, or group name.

Instructions

Get the current state of a device or group of devices. Accepts device id, name, room+type, or group name.

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": {
      "target": "<target>"
    },
    "name": "get_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYesDevice identifier — id, name, group, or 'room type' (e.g. 'bedroom lights', 'Kitchen Light')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, yet it never explicitly declares this as a read-only operation or explains what the returned 'state' contains. With no output schema, the agent gains no behavioral context about the response shape or failure modes for invalid identifiers.

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?

Two short sentences with the core action front-loaded and no filler. The second sentence is somewhat redundant with the parameter's own schema description, which keeps it from a 5.

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?

For a one-parameter read tool this is close to adequate, but with no annotations and no output schema, the description should say more about what state values come back and how errors are surfaced. As written, an agent can call it but cannot anticipate the result.

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%, and the single target parameter already documents the accepted id/name/group/'room type' forms with an example. The description's second sentence largely restates the schema rather than adding new syntax or constraint details, so the baseline 3 is appropriate.

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 opens with a concrete verb and resource: "Get the current state of a device or group of devices." It also states the accepted target forms, so the agent knows exactly what it operates on. It stops short of distinguishing itself from siblings such as list_devices, which also enumerate device-related information.

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?

Usage is only implied: 'get' plus 'current state' signals a read operation for querying a device's status. There is no explicit when-to-use statement, no mention of when to prefer list_devices instead, and no note on prerequisites or behavior for unknown targets.

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