f2159d3ca5
Add an update_wellness MCP tool that writes nutrition macros, hydration, vitals,
sleep, and subjective ratings to Intervals.icu via PUT /athlete/{id}/wellness/{date}.
Only provided fields are sent; pass -1 to clear a numeric field and locked=True to
stop device/app syncs from overwriting the values. Sleep is taken in hours and
stored as seconds (with -1 passing through as the clear sentinel).
Also surface computed Form (TSB = CTL - ATL) in wellness output, and prefer an
explicit `date` field over the record `id` for the Date label.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NGzHtDvJur9U7ysgRKRUTN
22 lines
317 B
Plaintext
22 lines
317 B
Plaintext
Wellness Data:
|
|
Date: 2025-05-24
|
|
|
|
Training Metrics:
|
|
- Fitness (CTL): 70.87253
|
|
- Fatigue (ATL): 91.97159
|
|
- Form (TSB): -21.1
|
|
- Ramp Rate: 6.997368
|
|
- CTL Load: 299
|
|
- ATL Load: 299
|
|
|
|
Sport-Specific Info:
|
|
- Ride: eFTP = 282.85992
|
|
|
|
Vital Signs:
|
|
- Weight: 78 kg
|
|
- Resting HR: 50 bpm
|
|
|
|
Activity:
|
|
- Steps: 2303
|
|
|
|
Status: Unlocked |