durely insights MCP for Garmin
v0.5.2Your full Garmin history, kept locally, analysed down to the second, via the official Personal API.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
garmin_status Garmin connection status
Check that the Garmin Personal API connection works and report its configuration. Reports: where the API key comes from, whether a token could be obtained and when it expires, the API key's expiry (if GARMIN_API_KEY_EXPIRES is set), the time zone used for calendar dates, and the server version. Use this first when another garmin_* tool fails with an authentication error, or when the user asks whether their Garmin connection is set up.
| Parameter | Type | Description |
|---|---|---|
response_format | string | 'markdown' for readable text (default), 'json' for complete structured data |
garmin_get_profile Get Garmin profile and zones
Get the user's Garmin profile settings, heart rate zones per sport, and fitness age. Returns: units and locale, time zone, preferred training days, HR zone floors per sport (with the max HR / LTHR / resting HR used to compute them), and the latest fitness age. Use this before interpreting heart rate data (to know the user's zones), or when the user asks about their zones, max HR, lactate threshold or fitness age.
| Parameter | Type | Description |
|---|---|---|
response_format | string | 'markdown' for readable text (default), 'json' for complete structured data |
garmin_list_activities List Garmin activities
Search the user's Garmin activities (all history, from the local cache), newest first by default. Returns one page of compact summaries plus the total number of matches: id, date, type, name, duration, distance, pace/speed, HR, power, elevation, training effect, training load, TSS/IF and VO2max where available, plus time in HR/power zones (JSON mode). Examples: - "My runs this month" -> activity_type="running", start_date="2026-10-01" - "Longest rides ever" -> activity_type="cycling", sort_by="distance" - "Zwift sessions" -> activity_type="virtual_ride" - "Triathlon bike legs" -> inc…
| Parameter | Type | Description |
|---|---|---|
activity_type | string | Garmin activity type or parent type. Parent types include their subtypes: running (trail_running, treadmill_running, track_running, virtual_run), cycling (road_biking, virtual_ride, indoor_cycling, mo… |
end_date | string | Only activities on or before this local date, yyyy-MM-dd |
include_multisport_legs | boolean | false (default): multisport activities appear once, as the parent. true: show their individual legs (swim/bike/run/transitions) instead of the parent, e.g. so triathlon bike legs count as cycling volu… |
limit | integer | Maximum activities to return (1-100) |
max_distance_km | number | Maximum distance in km |
max_duration_min | number | Maximum duration in minutes |
min_distance_km | number | Minimum distance in km |
min_duration_min | number | Minimum duration in minutes |
offset | integer | Number of activities to skip, for pagination |
response_format | string | 'markdown' for readable text (default), 'json' for complete structured data |
search | string | Text to match in the activity name (case-insensitive) |
sort_by | string | Sort field |
sort_order | string | desc = newest/largest first |
start_date | string | Only activities on or after this local date, yyyy-MM-dd |
garmin_get_activity Get Garmin activity details
Get full details for one Garmin activity by ID. Returns: name, description, type, start time and time zone, device, summary metrics (duration, distance, speeds, HR min/avg/max, power avg/max/NP/20-min, FTP, cadence, stride, calories, training effect + message, training load, TSS, IF, temperature, intensity minutes), split summaries (e.g. run/walk/stand intervals), the structured workout if one was followed, and multisport parent/child IDs. Get IDs from garmin_list_activities. Example: "Tell me about yesterday's run" -> list activities for that date, then call this with its id.
| Parameter | Type | Description |
|---|---|---|
activity_id * | integer | Garmin activity ID from garmin_list_activities, e.g. 12345678901 |
response_format | string | 'markdown' for readable text (default), 'json' for complete structured data |
garmin_get_activity_laps Get activity laps
Get the laps (and sessions, swim lengths and Garmin's physiological metrics) of one activity, from its original FIT file. Returns per lap: start offset, duration (elapsed and timer), distance, pace/speed, avg/max HR, avg/max/normalized power, cadence, ascent/descent, intensity (active/rest/warmup/cooldown) and lap trigger; for swims, stroke and lengths. Also: device, multisport sessions, and FIT-only metrics when the device recorded them (VO2max, recovery time, lactate threshold HR/power). Use it for interval sessions, splits and pacing. Downloads the FIT file on first use (one request), the…
| Parameter | Type | Description |
|---|---|---|
activity_id * | integer | Garmin activity ID from garmin_list_activities |
lap_offset | integer | Skip this many laps (for activities with very many laps) |
response_format | string | 'markdown' for readable text (default), 'json' for complete structured data |
garmin_get_activity_streams Get activity time series
Get second-by-second data from one activity's FIT file, downsampled to fit in context. Returns per field min/avg/max over the window, plus columnar series: t (seconds from the start of the activity, or of the leg for a multisport leg) and one array per field. Units: heart_rate bpm, power W, speed m/s, cadence steps/min (running) or rpm (cycling) or strokes/min, altitude m, distance m (cumulative), temperature °C, respiration_rate breaths/min, performance_condition (Garmin's -20..+20 score), vertical_oscillation mm, stance_time ms. Cadence averages leave out zeros. Defaults to heart_rate, po…
| Parameter | Type | Description |
|---|---|---|
activity_id * | integer | Garmin activity ID from garmin_list_activities |
end_s | number | Window end, seconds from the start |
fields | array | Fields to return: heart_rate, power, speed, cadence, altitude, distance, temperature, respiration_rate, performance_condition, vertical_oscillation, stance_time, position, or a dev_* field |
max_points | integer | Upper bound on points returned |
resolution_s | integer | Seconds per point (minimum) |
response_format | string | 'json' (default) for the full series, 'markdown' for stats and a short preview table |
start_s | number | Window start, seconds from the start |
garmin_download_activity_fit Export activity FIT file
Save the original FIT file of an activity to the server's exports folder and return its path, e.g. to import it into another tool (Intervals.icu, Golden Cheetah, a spreadsheet converter). The file is exactly what the device recorded. Saved as <data dir>/exports/<activity_id>.fit; an existing export is kept, not overwritten. For a multisport leg, exports the whole multisport file.
| Parameter | Type | Description |
|---|---|---|
activity_id * | integer | Garmin activity ID from garmin_list_activities |
garmin_get_daily_health Daily health and recovery
Get day-by-day wellness and recovery data, from the local cache (all history). Per day: steps (+ goal), floors, resting/min/max heart rate, stress (average, max, % of the day at rest/low/medium/high), Body Battery (min, max, charged, drained), intensity minutes (moderate, vigorous), calories (total, active), respiration, hydration, plus that night's sleep (duration, score) and HRV (last-night average, status). group_by="week" (Monday-based) or "month" aggregates: averages per day, minimums/maximums for min_hr/max_hr/stress_max, and totals plus per-day averages for steps and intensity minutes…
| Parameter | Type | Description |
|---|---|---|
end_date | string | Defaults to today |
group_by | string | |
response_format | string | 'markdown' for readable text (default), 'json' for complete structured data |
start_date | string | Local calendar date, yyyy-MM-dd |
garmin_get_sleep Sleep
Get nightly sleep from the local cache: bed and wake time, total sleep, deep/light/REM/awake time, naps, sleep score with quality and Garmin's feedback, awake count, average respiration and sleep stress. JSON mode adds the sleep score's components (duration, stress, deep/light/REM %, restlessness, awake count) with Garmin's rating each. A night belongs to the date you woke up. Defaults to the last 14 nights, at most 92 per call.
| Parameter | Type | Description |
|---|---|---|
end_date | string | Defaults to today |
response_format | string | 'markdown' for readable text (default), 'json' for complete structured data |
start_date | string | Local calendar date, yyyy-MM-dd |
garmin_get_hrv Heart rate variability
Get nightly HRV (heart rate variability, in ms) from the local cache: last-night average, highest 5-minute value, 7-day average, the personal baseline range (balanced low/high) and Garmin's status (BALANCED, UNBALANCED, LOW, POOR). With readings_date, also returns that night's 5-minute HRV readings (fetched from Garmin if older than the synced detail window). Defaults to the last 28 nights, at most 366 per call. HRV needs a compatible watch worn overnight; history starts when that began.
| Parameter | Type | Description |
|---|---|---|
end_date | string | Defaults to today |
readings_date | string | Night (wake-up date) to include 5-minute readings for |
response_format | string | 'markdown' for readable text (default), 'json' for complete structured data |
start_date | string | Local calendar date, yyyy-MM-dd |
garmin_get_intraday Intraday health data
Get one day's health data through the day, averaged into intervals: heart rate (bpm), Body Battery (0-100), overnight HRV readings (ms) and SpO2 (pulse ox, %). Returns per metric: min/avg/max, the day's summary values (e.g. resting HR, Body Battery charged/drained, SpO2 averages), and a columnar series (local times "HH:MM" + values). Synced for the last 150 days; older days are fetched from Garmin on demand. Garmin itself keeps intraday heart rate and HRV readings for only about 4–5 months (Body Battery longer), so older days may have just the day summary. Defaults to today, all four metri…
| Parameter | Type | Description |
|---|---|---|
date | string | Defaults to today |
interval_min | integer | Minutes per point |
metrics | array | |
response_format | string | 'markdown' for readable text (default), 'json' for complete structured data |
garmin_get_body_composition Weight and body composition
Get weigh-ins from the local cache: weight (kg), BMI, body fat %, body water %, muscle and bone mass (kg), visceral fat, and where each came from (scale, manual, linked app). Includes the change over the period and the weight goal if one is set. Only days with a weigh-in appear. Defaults to the last 365 days.
| Parameter | Type | Description |
|---|---|---|
end_date | string | Defaults to today |
response_format | string | 'markdown' for readable text (default), 'json' for complete structured data |
start_date | string | Local calendar date, yyyy-MM-dd |
garmin_get_nutrition Nutrition and hydration
Get food logged in Garmin Connect (or a linked app such as MyFitnessPal) per day: calories, carbs, protein and fat against the day's goals, and meals; plus hydration (ml) from the daily summary. Food logs are fetched from Garmin on demand and cached. Defaults to the last 7 days, at most 31 per call.
| Parameter | Type | Description |
|---|---|---|
end_date | string | Defaults to today |
response_format | string | 'markdown' for readable text (default), 'json' for complete structured data |
start_date | string | Local calendar date, yyyy-MM-dd |
garmin_get_womens_health Menstrual cycle
Get menstrual cycle tracking from Garmin Connect for a date: cycle day, current phase and days until the next, period and cycle length, predicted next cycle, fertile window and ovulation date, plus that day's logged symptoms and notes (day view). Fetched live from Garmin. Returns a clear "not tracked" message when cycle tracking isn't set up. Defaults to today.
| Parameter | Type | Description |
|---|---|---|
date | string | Defaults to today |
response_format | string | 'markdown' for readable text (default), 'json' for complete structured data |
garmin_analyze_activity Analyze an activity
Compute training metrics for one activity from its second-by-second FIT data: - time in heart rate zones (the user's Garmin zones for that sport) and, with an FTP, in power zones (Coggan) - power: average, normalized power (NP), variability index, intensity factor and TSS (needs FTP) - aerobic decoupling: drift of power or pace per heartbeat between the first and second half (<5% is good for steady efforts of 45+ min) - first vs second half (negative/positive split) - best efforts: power over 5 s–60 min, heart rate over 1–60 min, fastest 400 m–marathon (running), 5–90 km (cycling), 100…
| Parameter | Type | Description |
|---|---|---|
activity_id * | integer | Garmin activity ID from garmin_list_activities |
ftp_w | integer | Functional threshold power in watts, for power zones, IF and TSS |
response_format | string | 'markdown' for readable text (default), 'json' for complete structured data |
garmin_training_summary Training summary
Summarize training per week or month: sessions, hours, distance, elevation and training load, per sport; intensity distribution (share of time in low = HR zones 1–2, moderate = zone 3, high = zones 4–5, with a rough pattern: polarized, pyramidal, threshold-heavy); and the load trend at the end of each period: fitness (CTL, 42-day), fatigue (ATL, 7-day), form (TSB = CTL − ATL) and the acute:chronic ratio (ACWR; above ~1.5 is a commonly cited risk zone). Load is Garmin's training load per activity; activities without it (older devices, some third-party uploads) get an estimate from averag…
| Parameter | Type | Description |
|---|---|---|
end_date | string | Defaults to today |
group_by | string | |
response_format | string | 'markdown' for readable text (default), 'json' for complete structured data |
sport | string | Only this sport (parent type) or activity type |
start_date | string | Local calendar date, yyyy-MM-dd |
garmin_recovery_trends Recovery trends
Relate training load to recovery markers, day by day: resting HR, overnight HRV, sleep score and duration, Body Battery max and stress, each against the user's own rolling 28-day baseline. Returns: a status (last 7 days vs the previous 28: HRV, resting HR, sleep, load; plus current fitness/fatigue/form), days flagged for low HRV, elevated resting HR or poor sleep, weekly averages, and correlations such as "previous day's load vs next morning's HRV" with their strength. Correlation is not causation, and short periods give noisy results. Defaults to the last 8 weeks; at most 180 days.
| Parameter | Type | Description |
|---|---|---|
end_date | string | Defaults to today |
response_format | string | 'markdown' for readable text (default), 'json' for complete structured data |
start_date | string | Local calendar date, yyyy-MM-dd |
garmin_compare_activities Compare activities
Compare 2–6 activities side by side: date, type, duration, distance, pace/speed, heart rate, power (avg/NP), elevation, training effect and load, cadence, and efficiency factor (speed or NP per heartbeat; higher means more output for the same heart rate, a classic way to track aerobic progress on similar sessions). With deep=true, also analyzes each one's FIT data (downloads files if needed): aerobic decoupling, time in low/moderate/high HR zones and best efforts. Example: "Am I getting fitter on my Tuesday interval run?" → list those runs, then compare them.
| Parameter | Type | Description |
|---|---|---|
activity_ids * | array | |
deep | boolean | Also run FIT-based analysis for each activity |
response_format | string | 'markdown' for readable text (default), 'json' for complete structured data |
garmin_query Query the Garmin cache with SQL
Run one read-only SQLite query against the local Garmin cache, for analyses the other tools don't cover (custom aggregations, correlations, records, comparisons across years). Views (one row per item; use these first): - activities(id, parent_id, is_multisport_parent, type_key, sport, name, start_local, start_date, duration_s, moving_s, distance_m, elevation_gain_m, avg_speed_mps, avg_hr, max_hr, avg_power_w, norm_power_w, calories, aerobic_te, anaerobic_te, training_load, tss, vo2max) sport = Garmin parent type (running, cycling, swimming, walking, ...); type_key = exact type (road_biking,…
| Parameter | Type | Description |
|---|---|---|
sql * | string | A single SELECT or WITH query |
max_rows | integer | |
response_format | string |
garmin_sync Sync Garmin data
Start downloading Garmin data into the local cache. Runs in the background and returns immediately; follow progress with garmin_sync_status. You rarely need this: other tools sync automatically on first use and when the cache is over an hour old. Use it to: - fetch the latest data right now (e.g. "I just finished a run"), - extend history further back (from="2019-01-01"), - re-download everything (mode="full"), e.g. after editing many activities in Garmin Connect. Domains (default: all except fit_files): activities, daily_summaries, sleep, hrv, weight, body_battery, hrv_readings, heart…
| Parameter | Type | Description |
|---|---|---|
domains | array | Only sync these domains. Defaults to all except "fit_files". |
from | string | Extend history back to this date (yyyy-MM-dd). History starts at your first activity by default; an earlier date fetches older wellness data. A later date has no effect: history is never narrowed. |
mode | string | auto: new data plus any history still missing. full: forget what's cached and re-download. |
garmin_sync_status Garmin sync status
Show what's in the local Garmin cache and the progress of the current or last sync. Returns: the running/last sync (progress, errors), and per data domain the date range covered, number of days, whether all history is in, and the last successful sync.
| Parameter | Type | Description |
|---|---|---|
response_format | string | 'markdown' for readable text (default), 'json' for complete structured data |