Docs

MCP tool · Sleep sessions

Rate nights good or bad

Rates your own nights as good or bad (the session ids come from get_insights).

rate_sleep_sessions

Send session_id (one) or session_ids (several) with one rating. Each id gets its own result { session_id, ok, status }: status rated, not_found (not one of your nights) or deleted.

Input

One arguments object with these fields.

Arguments object
  • rating enum<string> required

    good or bad

    Possible values: good bad

  • session_id string (uuid)

    One night: a session_id from get_insights.

  • session_ids string[] (uuid) min items 1max items 200

    Several nights: session_ids from get_insights.

Output

Result JSON
  • results object[] required

Example arguments

{
  "rating": "good",
  "session_id": "<uuid>",
  "session_ids": [
    "<uuid>"
  ]
}
JSON
Over HTTP: POST /v1/sleep-sessions/ratings