Skip to main content
Glama

Turn off an entity

entities_turn_off
Idempotent

Turn off any Home Assistant entity by calling its domain's turn_off action with an entity ID. Use it to switch off controllable devices and get the updated states.

Instructions

Turn off an entity by calling its domain's turn_off action.

Calls <domain>.turn_off with {"entity_id": entity_id} over HTTP.

Use when: turning off any controllable entity regardless of domain. Not for: flipping state without knowing the target — use entities_toggle. Returns: the list of changed states from Home Assistant.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
entity_idYesFull entity ID to turn off, e.g. 'light.kitchen'.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.25.1
    • addedInput schema / properties / entity_id / description
      Added value: +"Full entity ID to turn off, e.g. 'light.kitchen'."
  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 readOnlyHint=false, idempotentHint=true, destructiveHint=false, and openWorldHint=false. The description adds value beyond them by disclosing the call mechanism (domain turn_off action over HTTP) and the return shape (list of changed states). It does not discuss auth requirements or error behavior, but the annotation profile is rich, so this is a solid addition.

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-loads the action, then mechanism, then usage boundaries and return value in short, scannable sections. Every sentence earns its place with no filler.

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?

For a single-parameter state-change tool with rich annotations and an output schema, the description covers what it does, how to choose it, and what it returns. Nothing an agent needs to invoke it correctly is missing.

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% with a single documented parameter, so the schema carries the meaning. The description restates entity_id but adds no format, constraint, or domain-specific detail beyond what the schema provides. Baseline 3 is correct here.

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 ('turn off an entity') and explains the underlying mechanism (calls <domain>.turn_off with entity_id over HTTP). It also distinguishes itself from the sibling entities_toggle, so an agent can select it without opening either 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?

Explicit 'Use when' and 'Not for' clauses, naming the alternative (entities_toggle) and the condition that selects it (not knowing the target state). 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