Skip to main content
Glama
diverdown1964

Home Assistant MCP Server

list_services

Discover all available services in your Home Assistant smart home system to control devices like lights, switches, and sensors.

Instructions

List all available Home Assistant services

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler for the 'list_services' tool. It calls haClient.getServices() to fetch the services from Home Assistant API and returns the result as a JSON-formatted text content block.
    case "list_services": {
      const services = await haClient.getServices();
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(services, null, 2),
          },
        ],
      };
    }
  • src/index.ts:153-160 (registration)
    Registration of the 'list_services' tool in the ListTools response, including name, description, and empty input schema (no parameters required).
    {
      name: "list_services",
      description: "List all available Home Assistant services",
      inputSchema: {
        type: "object",
        properties: {},
      },
    },
  • Helper method in HomeAssistantClient class that fetches the list of available services from the Home Assistant API endpoint '/api/services'.
    async getServices() {
      return this.fetch("services");
    }
  • Input schema for the 'list_services' tool, which requires no parameters (empty properties).
    inputSchema: {
      type: "object",
      properties: {},
    },
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states the action ('List') but doesn't describe what 'list' entails—such as whether it returns a filtered subset, includes metadata, requires authentication, or has rate limits. This leaves significant gaps for a tool that presumably returns data.

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, efficient sentence that front-loads the core action without any wasted words. It's appropriately sized for a simple tool with no parameters, making it easy to parse quickly.

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

Completeness3/5

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

Given the tool's simplicity (0 parameters, no output schema, no annotations), the description is minimally adequate but incomplete. It states what the tool does but lacks details on behavior, output format, or context relative to siblings, which could hinder an agent's ability to use it effectively without additional inference.

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?

The input schema has 0 parameters with 100% coverage, so the schema fully documents the lack of inputs. The description adds no parameter information, which is appropriate here, but it doesn't compensate for any gaps since there are none. A baseline of 4 is given as the description doesn't need to cover parameters.

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 clearly states the verb ('List') and resource ('all available Home Assistant services'), making the purpose immediately understandable. However, it doesn't explicitly differentiate from sibling tools like 'list_entities' or 'get_entity_state', which would require a more specific scope comparison.

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 provides no guidance on when to use this tool versus alternatives like 'list_entities' or 'call_service'. It lacks context about prerequisites, timing, or any exclusions, leaving the agent to infer usage based on tool names alone.

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/diverdown1964/HomeAssistant-MCP'

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