MCP Tools Reference

This document provides a complete reference for all 17 MCP tools available in the Loxone MCP Server.

Overview

The Loxone MCP server implements a clean separation between tools (for actions that modify state) and resources (for read-only data access). This follows the MCP specification and provides better caching and organization.

Tools by Category

Device Control (2 tools)

control_device

Controls a specific device by UUID.

Parameters:

Valid Actions: on, off, toggle, up, down, stop

Example:

{
  "device_id": "0cd88f1e-0156-7a9f-ffff403fb0c34b9e",
  "action": "on"
}

control_multiple_devices

Controls multiple devices simultaneously.

Parameters:

Example:

{
  "devices": ["uuid1", "uuid2", "uuid3"],
  "action": "off"
}

Lighting Control (3 tools)

control_lights_unified

Unified lighting control with scope-based targeting.

Parameters:

Example:

{
  "scope": "room",
  "target": "Living Room",
  "action": "dim",
  "brightness": 50
}

control_room_lights (Legacy)

Controls all lights in a specific room.

Parameters:

control_all_lights (Legacy)

Controls all lights in the entire system.

Parameters:

Blinds/Rolladen Control (4 tools)

control_rolladen_unified

Unified rolladen/blinds control with scope-based targeting.

Parameters:

Example:

{
  "scope": "room",
  "target": "Bedroom",
  "action": "position",
  "position": 75
}

discover_rolladen_capabilities

Discovers all rolladen/blinds capabilities and devices in the system.

Parameters: None

Returns: Information about available rolladen devices and their capabilities

control_room_rolladen (Legacy)

Controls all rolladen/blinds in a specific room.

Parameters:

control_all_rolladen (Legacy)

Controls all rolladen/blinds in the entire system.

Parameters:

Climate Control (2 tools)

set_room_temperature

Sets the target temperature for a room’s climate controller.

Parameters:

Example:

{
  "room_name": "Living Room",
  "temperature": 22.5
}

set_room_mode

Controls heating/cooling mode for a room’s climate controller.

Parameters:

Audio Control (2 tools)

control_audio_zone

Controls an audio zone (play, stop, volume control).

Parameters:

Example:

{
  "zone_name": "Living Room",
  "action": "volume",
  "value": 75
}

set_audio_volume

Sets volume for an audio zone.

Parameters:

Security Control (2 tools)

arm_alarm

Arms the alarm system for security monitoring.

Parameters:

Example:

{
  "mode": "away"
}

disarm_alarm

Disarms the alarm system.

Parameters: None

Workflow Management (2 tools)

create_workflow

Creates a new automation workflow by chaining multiple tools together.

Parameters:

Example:

{
  "name": "Morning Routine",
  "description": "Turn on lights and open blinds",
  "steps": [
    {"type": "tool", "name": "control_all_lights", "args": {"action": "on"}},
    {"type": "tool", "name": "control_all_rolladen", "args": {"action": "up"}}
  ]
}

execute_workflow_demo

Executes a demonstration workflow to show automation capabilities.

Parameters:

Resources for Read-Only Data

The following operations are now handled by resources instead of tools:

Operation Resource URI
List rooms loxone://rooms
Get room devices loxone://rooms/{room}/devices
Get room overview loxone://rooms/{room}/overview
List all devices loxone://devices/all
Get devices by category loxone://devices/category/{category}
Get system capabilities loxone://system/capabilities
Get system categories loxone://system/categories
Get audio zones loxone://audio/zones
Get audio sources loxone://audio/sources
Get door/window sensors loxone://sensors/door-window
Get temperature sensors loxone://sensors/temperature
Get weather data loxone://weather/current
Get energy consumption loxone://energy/consumption
Get alarm status loxone://security/status
Get climate data loxone://climate/overview
Get predefined workflows loxone://workflows/predefined
Get workflow examples loxone://workflows/examples

See resources.md for detailed resource documentation.

Error Handling

All tools follow consistent error handling:

Rate Limiting

Tools are subject to rate limiting based on user role:

Migration Notes

This server has been updated to follow MCP best practices by separating tools and resources:

This improves performance through intelligent caching and provides a cleaner API structure that follows the MCP specification.