Skip to main content
Glama

ha_service

Call any Home Assistant service to control smart home devices. Specify domain, service, and data to trigger actions like turning on switches or setting temperatures.

Instructions

Call any Home Assistant service (e.g. switch/turn_on, climate/set_temperature).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesService data payload (must include entity_id)
domainYesService domain (e.g. 'switch', 'climate', 'scene')
serviceYesService name (e.g. 'turn_on', 'set_temperature')
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It only says 'call any service' without explaining potential side effects (e.g., turning devices on/off), error behavior, or permissions. Since this tool can trigger arbitrary actions, the lack of safety or consequence context is a significant gap.

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?

The description is a single, front-loaded sentence that clearly communicates the tool's purpose. There is zero wasted text, making it exceptionally concise.

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?

Given no annotations and no output schema, the description must provide substantial context. While the core purpose is clear, it lacks usage guidelines, behavioral transparency, and return-value information. In the context of sibling tools, it also does not clarify when to use this generic service caller versus the specialized ha_* tools.

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 the schema already documents all three parameters. The description adds a bit of value by giving example domain/service pairs (switch/turn_on, climate/set_temperature), but it does not enhance understanding of the 'data' payload beyond what the schema states (must include entity_id). Baseline 3 is appropriate.

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?

The description states a specific verb (call) and resource (Home Assistant service) with relevant examples (switch/turn_on, climate/set_temperature). It clearly distinguishes itself from specialized siblings like ha_light_on and ha_light_off by being the generic catch-all for any service.

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?

No guidance is given on when to use this tool versus alternatives. The phrase 'any service' implies broad usage, but it does not explicitly say to prefer specialized tools like ha_light_on for their respective domains, nor does it mention any exclusions or prerequisites. An agent would have to infer usage from sibling names.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kcdjmaxx/HomarUScc'

If you have feedback or need assistance with the MCP directory API, please join our Discord server