garmin_sync_healthkit
Copy weigh-ins bridged from Apple Health into Garmin Connect, skipping duplicates by timestamp and refusing implausible values. Preview first with a dry run.
Instructions
Copy weigh-ins bridged from Apple Health into Garmin Connect.
Use this when the measurement came from a scale that is NOT bound to Mi Fitness but whose app writes to Apple Health. Not every app does: 蚂蚁阿福 writes nothing at all, which is what the README's Step 0 check exists for. Requires the one-time iPhone Shortcut described in the README's "Apple Health bridge" section; the file it appends to is the only input.
The same guarantees as garmin_sync_weight: every weighing becomes its own
entry with the time it was taken (a morning and an evening weighing are two
measurements, not one), a weighing Garmin already holds — same moment within
three minutes — is skipped so re-runs write nothing, implausible weights are
refused rather than written, writes are paced, and each write is confirmed by
reading the day back. The only lines folded together are the scale's double
upload, a weight-only row followed seconds later by the full one. verified: false entries raise the same timezone-mismatch warning.
THIS WRITES TO YOUR GARMIN ACCOUNT unless dry_run is true. Call with
dry_run=true first when the user has not seen the numbers yet.
Args: days: How far back to look, in days. Defaults to 30, capped at 90. dry_run: Report what would be written without writing anything.
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": "garmin_sync_healthkit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| dry_run | No |