sync_data
Synchronizes Mi Fitness health data into a local SQLite database for AI querying and analysis, supporting date-range, hourly, background, and full or incremental sync.
Instructions
Synchronize Mi Fitness data
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sync_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | No | End date (YYYY-MM-DD or ISO 8601) | |
| end_time | No | Window end timestamp (epoch seconds) | |
| background | No | ||
| data_types | No | ||
| hours_back | No | Fetch only the last N hours for time-series metrics | |
| start_date | No | Start date (YYYY-MM-DD or ISO 8601) | |
| start_time | No | Window start timestamp (epoch seconds) | |
| force_full_sync | No |