Skip to main content
Glama

ha.call_service

Invoke any Home Assistant service by domain and service with optional data to run advanced automations and custom device actions.

Instructions

Call any Home Assistant service (escape hatch for advanced automation).

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
dataNo
domainYes
serviceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.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 supplied, so the description carries the full disclosure burden, and it discloses almost nothing: no indication that this performs mutations with real-world effects, no permission or authentication requirements, no statement about whether the call blocks or what it returns. The only hint of its power is the "advanced automation" phrasing.

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 short sentence with the core action front-loaded and no wasteful wording. The brevity is achieved by omission rather than by tight editing, but structurally it is clean.

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 three-parameter tool with a free-form nested object, no annotations, and no output schema, the description is far too thin. Critical facts an agent needs before invoking an arbitrary service call — payload format, side effects, and expected response — are entirely absent.

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

Parameters2/5

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

Schema coverage is 0% and the description adds no meaning to any of the three parameters. An agent must guess that domain and service form a dotted service identifier and, more importantly, has no guidance on the shape of the nested `data` object that carries the actual call payload.

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?

The description states a specific verb and resource ("Call any Home Assistant service") and the parenthetical "escape hatch for advanced automation" signals it is the generic fallback rather than a curated wrapper, which helps separate it from siblings like device.set. It stops short of naming any sibling explicitly, so differentiation is suggested rather than guaranteed.

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

Usage Guidelines3/5

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

"Escape hatch for advanced automation" implies this is for cases the higher-level tools do not cover, which is usable guidance. However, it never states when NOT to use it or which specific tool to prefer for routine device control, leaving the agent to infer the boundary.

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