withings_trends
Analyze health data trends by computing averages, min/max values, and period-over-period changes for body composition, sleep, and activity metrics from cached Withings data.
Instructions
Analyse trends in cached health data.
Computes averages, min/max, and changes over time from the local cache. Auto-syncs if the cache is stale (no sync today).
Args: data_type: What to analyse. Options: "body", "sleep", "activity". period: Aggregation period. Options: "weekly", "monthly", "quarterly". Default: "monthly". start_date: Start date as "YYYY-MM-DD" or "12m" for relative. Default: last 12 months. end_date: End date as "YYYY-MM-DD". Default: today. compare: Compare two periods. Format: "last_30d vs previous_30d", "2026-03 vs 2026-02", "2026-Q1 vs 2025-Q4". When set, period/start_date/end_date are ignored.
Returns aggregated averages with change indicators. For body data: weight, fat%, muscle trends. For sleep: duration, score, HR trends. For activity: steps, distance, calorie trends. Not for raw data -- use withings_get_body/sleep/activity instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data_type | No | body | |
| period | No | monthly | |
| start_date | No | ||
| end_date | No | ||
| compare | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |