Skip to main content
Glama

List available services

services_list_services
Read-onlyIdempotent

List all Home Assistant services and their fields, optionally filtered by domain, to check what a domain supports before calling a service.

Instructions

List all services Home Assistant currently has registered, optionally filtered by domain.

Calls ha.list_services() (HTTP GET /api/services) and filters the result client-side by domain when given.

Use when: discovering which services and fields a domain supports before calling services_call_service. Returns: list of dicts, one per domain, each with its available services and their fields.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainNoService domain filter, e.g. 'light'. Omit to list every domain.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.25.1
    • addedInput schema / properties / domain / description
      Added value: +"Service domain filter, e.g. 'light'. Omit to list every domain."
  2. First observedv0.3.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive, and closed-world behavior. The description adds useful implementation detail: it calls ha.list_services() via HTTP GET /api/services and filters client-side, which tells the agent how freshness and filtering work. It does not cover auth or rate limits.

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?

Front-loads the purpose and then adds implementation, usage, and return shape in labeled sentences. It is tight and scannable, though the explicit return description is mildly redundant given the existing output schema.

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

Completeness5/5

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

Complete for a simple list tool: purpose, usage context, mechanism, and return format are all covered. Annotations and the output schema supply safety and structure, leaving no critical gap for correct invocation.

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 domain parameter and its omission behavior are already documented. The description adds that filtering is performed client-side, a semantic detail beyond the schema that clarifies what the parameter actually does.

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 ('List') and resource ('services'), including scope ('all services Home Assistant currently has registered') and optional domain filtering. It distinguishes itself from sibling services_call_service by framing this as discovery before calling a service.

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?

Explicitly says 'Use when: discovering which services and fields a domain supports before calling services_call_service.' This names the alternative tool and the condition that selects it, giving the agent clear routing guidance.

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

Deploy Server

Other Tools