Skip to main content
Glama

state

Retrieves a device's current activity—awake or asleep, foreground app, media title and playback status, volume, and where it can report status—so AI agents can inspect what a home device is doing.

Instructions

What a device is doing now: awake or asleep, foreground app, what is playing (title, playing/paused) and the volume, where the device can report them.

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": {
      "device": "<device>"
    },
    "name": "state"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/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. It implicitly frames the tool as a passive read ('what a device is doing now') and lists the reported facets, but it never explicitly confirms read-only semantics, says nothing about failure modes for an offline device, and the trailing clause 'where the device can report them' is too vague to convey behavior.

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

Conciseness3/5

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

One compact sentence with the core purpose front-loaded, which is good. The final clause 'and where the device can report them' is muddy and ambiguous, diluting an otherwise tight enumeration.

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?

An output schema exists, so return values need not be spelled out, and the description covers the observable scope adequately for a simple read tool. What is missing is the device identifier format and any statement of read-only behavior, both of which an agent needs before calling.

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

Parameters2/5

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

Schema coverage is 0% — the single required 'device' parameter has only a title, with no description of accepted identifier formats. The description says 'a device' but adds no guidance on whether this is a name, ID, or address, so it fails to compensate for the schema gap.

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 names a specific resource (a device's current activity) and enumerates the observable facets: awake/asleep, foreground app, media title and play state, volume. It reads clearly as a read/observation tool and is distinguishable from siblings like act and observe, though it never states the verb explicitly ('reports' or 'returns').

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?

The word 'now' implies this is a point-in-time snapshot query, which is implicit when-to-use guidance, but the description never contrasts it with observe, devices, or act, nor does it state any preconditions such as the device needing to be reachable.

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

Deploy Server

Other Tools