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

home-assistant-agent-mcp

by Hemanthkolli

ha_call_service

Control Home Assistant devices by calling services for lights, climate, media players, switches, and other entities with a domain, service, and optional data payload.

Instructions

Call any Home Assistant service to control lights, climate, media players, switches, etc.

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": {
      "domain": "<domain>",
      "service": "<service>"
    },
    "name": "ha_call_service"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNoService payload (entity_id, temperature, etc.)
domainYese.g. light, climate, switch, automation
serviceYese.g. turn_on, set_temperature

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it discloses nothing about mutation risk, irreversibility, permission/auth needs, or what happens when the domain/service pair is invalid. The word 'control' hints at state change but the definition never confirms that calling a service mutates state and may be destructive.

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?

A single front-loaded sentence with the verb-resource pair first and examples trailing; no wasted clauses. The trailing 'etc.' is the only soft spot, leaving the scope open-ended without cost to length.

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?

For a generic escape-hatch tool with a free-form nested data object, no output schema, and zero annotations, the description should at minimum explain the mutation/safety profile and what a successful call returns or errors on. None of that is present, so an agent must guess at risk and response shape before invoking an arbitrarily powerful dispatcher.

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 description coverage is 100%, so domain, service, and the nested data payload are already documented with their own examples; baseline 3 applies. The description's domain examples (light, climate, switch) merely duplicate what the schema's 'domain' description already lists, adding no new meaning about service-name format or payload shaping.

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?

States a specific verb and resource: calling a Home Assistant service, with concrete example domains (lights, climate, media players, switches). It is clearly an action-dispatch tool, distinguishable from the entity/automation/dashboard CRUD siblings by its 'control' framing, though it never explicitly names an alternative.

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?

The description is pure purpose statement with no when-to-use, when-not-to-use, or alternative guidance. An agent gets no signal on when to reach for this generic dispatcher versus ha_notify, ha_toggle_automation, or ha_get_entity, nor any prerequisite such as needing an existing entity_id before acting.

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