fitbit_sync
Downloads Fitbit health data and stores it in a local SQLite cache for offline queries. Run this tool before using other Fitbit data tools to ensure the cache is up-to-date.
Instructions
Sync Fitbit health data to the local cache.
Fetches data from the Fitbit API and stores it in SQLite for fast offline queries. Run this before using other fitbit_get_* tools.
Syncs incrementally: only fetches data newer than the most recent entry in each table. First sync fetches the specified number of days.
Args: data_types: What to sync. Options: "all", "heart_rate", "activity", "exercises", "sleep", "weight", "spo2", "hrv", "azm", "breathing_rate", "skin_temperature", "cardio_fitness", "food_log". Comma-separated for multiple, e.g. "sleep,hrv". Default: "all". days: Days of history for first sync (default: 30). Ignored on subsequent syncs (uses last synced date).
Returns summary of records synced per data type. Not for querying data - use fitbit_get_heart_rate, fitbit_get_activity, fitbit_get_sleep, etc. instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data_types | No | all | |
| days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |