Skip to main content
Glama

Get zone

zones_get_zone
Read-onlyIdempotent

Fetch a Home Assistant zone entity's full state and attributes by entity_id, auto-prefixing 'zone.' if missing, when complete zone details are needed.

Instructions

Get one zone entity's full state and attributes.

Prefixes entity_id with zone. if missing, then fetches it with ha.get_state.

Use when: you need every attribute of a single zone rather than the slimmed list from zones_list_zones. Returns: the full HA state object for the zone (entity_id, state, attributes). Errors: {"error": "<message>", "entity_id": ...} if the zone entity does not exist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
entity_idYesZone entity_id, e.g. 'zone.office'; a bare id like 'office' is prefixed with 'zone.' automatically.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.25.1
    • addedInput schema / properties / entity_id / description
      Added value: +"Zone entity_id, e.g. 'zone.office'; a bare id like 'office' is prefixed with 'zone.' automatically."
  2. First observedv0.3.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered. The description adds useful behavior beyond that: automatic 'zone.' prefixing, the underlying ha.get_state call, and the error shape when the entity is missing.

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?

Front-loaded purpose sentence, then tight labeled lines for behavior, usage, returns, and errors. Every line carries distinct information with no waste.

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

Completeness5/5

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

With an output schema present, the description needn't detail the return payload, and its brief 'Returns' note suffices. Error behavior, prefixing, and usage context are all covered for a simple single-parameter read.

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 coverage is 100% and the single parameter is fully documented, including the bare-id prefixing rule. The description restates that prefixing behavior but adds no new syntax or format detail, so the baseline 3 for high coverage applies.

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

Purpose5/5

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

States a specific verb+resource ('Get one zone entity's full state and attributes') and contrasts it with the sibling 'zones_list_zones'. An agent can distinguish it from other zone tools without opening a schema.

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

Usage Guidelines5/5

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

Explicitly says 'Use when: you need every attribute of a single zone rather than the slimmed list from zones_list_zones', naming the alternative and the condition that selects it. Nothing is left to inference.

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