← Examples

Ask how you slept last night

The night lasted 6h 19m. The stage breakdown was ordinary; 21 short wake events were not.

My Fitbit Data my_fitbit_data.get_sleep_detail

Captured April 2026

The sleep record

Fitbit returns sleep stages and efficiency, not just a score. That is enough to compare the night’s deep, REM, light, and awake time and identify the part that was unusual.

The prompt

How did I sleep last night?

The response

How did I sleep last night?

Executing my_fitbit_data.get_sleep_detail

You got 6h 19m of sleep last night, with 89% efficiency — solid by most standards. Stage breakdown:

  • Deep: 71 min (19%) — right in the healthy range
  • REM: 52 min (14%) — a bit light, ideal is closer to 20–25%
  • Light: 4h 15m (67%)
  • Awake: 48 min (11%)

One thing to note: 21 short wake events totaling about 25 minutes. That’s on the higher side and suggests fragmented sleep — possibly noise, temperature, or stress. Otherwise a decent night.

The wake events

The stage times are compared with healthy ranges. Of those measurements, the 21 short wake events are the only unusual one. The response suggests several possible causes without pretending to know which applied.