Skip to main content
Glama
home-assistant-agent-mcp

home-assistant-agent-mcp

by Hemanthkolli

ha_rename_entity

Set or clear an entity's own name in the Home Assistant entity registry so you can label sensors and controls; pass null or an empty string to clear a custom name.

Instructions

Set or clear an entity's own name in the entity registry. Note: for device-based entities the displayed name is usually ' ', so to rename a room's thermostat, rename the device (ha_update_device) or the area (ha_update_area) instead, and clear the entity name. Pass null, "" or "null" to clear the 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": {
      "entity_id": "<entity_id>",
      "name": "<name>"
    },
    "name": "ha_rename_entity"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesNew entity name, e.g. 'Temperature'. null, "" or "null" clears it (falls back to the device name).
entity_idYese.g. sensor.office_room_thermostat_office_temperature

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.5/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden, and it discloses the key behavioral trait: displayed names compose device name plus entity name, and clearing falls back to the device name. It does not mention permission requirements or error behavior for invalid entity IDs, which keeps it short of a 5.

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?

Three sentences, front-loaded with the core action, with the important caveat stated before the clearing rule. The final sentence duplicates the clearing semantics already present in the schema's name description, which is minor waste but aids standalone readability.

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

Completeness4/5

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

For a two-parameter mutation with no output schema and no annotations, the description covers the action, the naming model, and the clearing behavior adequately. Only auth expectations and invalid-entity handling are unaddressed, which is a small gap for this complexity level.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema by explaining why a name change may appear not to take effect (device-name composition) and by repeating the explicit clearing sentinel values. That contextualizes both parameters rather than merely restating them.

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 and resource with scope: 'Set or clear an entity's own name in the entity registry.' The phrase 'own name' immediately distinguishes it from sibling operations like ha_update_device and ha_update_area, which are named explicitly.

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?

Gives an explicit when-not rule with the alternative: for device-based entities the displayed name is '<device name> <entity name>', so rename the device (ha_update_device) or the area (ha_update_area) and clear the entity name instead. The agent is routed to the right tool without opening schemas.

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