Skip to main content
Glama

Hass-MCP

call_service_tool

Execute Home Assistant services via the Hass-MCP server. Specify domain, service, and optional data to control or automate smart home devices and workflows.

Instructions

Call any Home Assistant service (low-level API access)

Args: domain: The domain of the service (e.g., 'light', 'switch', 'automation') service: The service to call (e.g., 'turn_on', 'turn_off', 'toggle') data: Optional data to pass to the service (e.g., {'entity_id': 'light.living_room'})

Returns: The response from Home Assistant (usually empty for successful calls)

Examples: domain='light', service='turn_on', data={'entity_id': 'light.x', 'brightness': 255} domain='automation', service='reload' domain='fan', service='set_percentage', data={'entity_id': 'fan.x', 'percentage': 50}

Input Schema

NameRequiredDescriptionDefault
dataNo
domainYes
serviceYes

Input Schema (JSON Schema)

{ "properties": { "data": { "anyOf": [ { "type": "object" }, { "type": "null" } ], "default": null, "title": "Data" }, "domain": { "title": "Domain", "type": "string" }, "service": { "title": "Service", "type": "string" } }, "required": [ "domain", "service" ], "title": "call_service_toolArguments", "type": "object" }

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/voska/hass-mcp'

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