Docs

MCP tool · Sleep configuration

Assign user to device zones

Assigns a user onto specific zone(s) of a device (e.g. "put me back on zone_b"). device_id and zone ids come from list_devices.

assign_zone

If a requested zone is occupied, push_away_behavior decides what happens to the occupant: switch_zone_first moves them to a free zone when possible (else away); only_away always marks them away.

Input

One arguments object with these fields.

Arguments object
  • device_id string required

    Device id (the "id" field from list_devices, NOT the serial)

  • zone_ids string[] required min items 1

    Zone ids to assign the user to, e.g. ["zone_a"] or ["zone_a","zone_b"]. zone_a is on the right for someone standing at the foot of the bed facing it (the sleeper's left when lying in it); zone_b is the other side.

  • user_id string (uuid)

    Target user id (from list_devices shared_with). Defaults to the authenticated user. Anyone on a bed may move themselves; acting on another user needs the owner or admin role on a shared bed.

  • push_away_behavior enum<string> default switch_zone_first

    How to handle a user already occupying a requested zone. Default: switch_zone_first.

    Possible values: only_away switch_zone_first

Output

Result JSON
  • success boolean required

Example arguments

{
  "device_id": "<string>",
  "zone_ids": [
    "<string>"
  ],
  "user_id": "<uuid>",
  "push_away_behavior": "switch_zone_first"
}
JSON
Over HTTP: POST /v1/sleep-configuration/assign