Skip to main content
Glama

device.state

Reads the current state and attributes of a single entity by its ID, letting AI agents check device status before deciding on control actions.

Instructions

Read current state and attributes of one entity.

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

Input Schema

NameRequiredDescriptionDefault
entity_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.4/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. It hints that the read is of 'current' (live) state, but says nothing about permission requirements, behavior when the entity is missing or unreachable, whether any side effects occur, or what the returned state/attributes look like. For a mutation-free but undefined-entity tool with zero annotation coverage, this is a substantial 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?

One front-loaded sentence with no filler or redundancy. It is efficient, though the terseness edges toward under-specification rather than disciplined brevity.

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

Completeness2/5

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

With one required parameter, no output schema, and no annotations, the description should clarify what 'state and attributes' contains, what an entity is in this system, and failure behavior. It leaves all of that unstated, so the agent cannot predict the response shape or handle errors confidently.

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 description coverage is 0% and the single parameter entity_id has no documentation in the schema. The description only echoes the word 'entity' and adds no identifier format, source, or accepted-value guidance, so the agent gets no help resolving what entity_id should contain.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

It gives a verb ('Read') and a resource ('current state and attributes of one entity'), which is better than restating the name. But 'entity' is never defined and nothing distinguishes it from siblings like device.list or device.set beyond the vague 'one entity' phrasing, so an agent must infer what an entity is and why this differs from listing.

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 when-to-use or when-not-to-use guidance and no alternatives are named. Only a weak implied signal exists: 'one entity' suggests a single-item read versus a list, and 'Read' versus the sibling device.set suggests non-mutating use. That is inference, not guidance.

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