PB-Runner: Running Coach
Server Details
Running coach: your AI reads your runs and recovery, and writes sessions to your watch or phone.
- Status
- Healthy
- Uptime
- 100.0% over the last 24 hours
- OAuth
- Requires browser extension
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-06-18
- URL
- ChatGPT
- PB-Runner Running Coach
- Claude
- PB-Runner Running Coach
TDQS
Scored across 35 tools
The athlete-facing and coach-facing surfaces are deliberately mirrored (get_run vs coach_get_run, propose_planned_sessions vs coach_propose_planned_sessions), and several read tools overlap in output (profile includes PBs/VO2max; goal_progress includes predictions). The detailed descriptions and coach_ prefix clarify most boundaries, but misselection is still plausible around notes, PBs/predictions, and coach-vs-self reads.
Names are consistently snake_case and mostly follow verb_noun. Minor inconsistency exists because human-coach tools put coach_ before the verb while self tools are verb-first, and 'coach note' vs 'athlete note' overloads the coach terminology, but the pattern remains readable.
35 tools is heavy for a running-coach server, inflated by parallel self/coach read variants and propose/commit pairs plus many specialized data endpoints. Each tool has some role, but the surface is larger than a well-scoped set.
Core athlete workflows are covered: runs, run detail/streams, trends, summaries, profile updates, planned sessions, notes, recovery, goal progress, predictions, and coach roster/authoring. Notable gaps remain: no delete/clear operations, and a coach cannot read a consented athlete's schedule outside the current-week overview before upserting future sessions; coach goal/progress views are also indirect.
Publisher details
- Operator
- PB-Runner
- Operator website
- https://pb-runner.com/
- Vendor relationship
- Not provided
- Documentation
- Not provided
- Privacy policy
- Not provided
- Trust center
- Not provided
- Restrictions
- Not provided
Available Tools
35 toolscoach_commit_athlete_noteAInspect
COACH TOOL — commit a previously proposed athlete note. Call ONLY after the coach confirms the draft from coach_propose_athlete_note; pass its confirmation_token. The consent grant is re-resolved at commit time (a revoke in between fails closed). Shared notes are access-logged; private notes are not.
Inputs: confirmation_token (required).
coach_commit_planned_sessionsADestructiveInspect
COACH TOOL — commit a previously proposed athlete schedule. Call ONLY after the coach confirms the draft from coach_propose_planned_sessions; pass its confirmation_token. The consent grant is re-resolved at commit time (a revoke in between fails closed). Upserts one session per date with coach provenance and returns the resulting schedule.
Inputs: confirmation_token (required).
coach_get_athlete_notesARead-onlyInspect
COACH TOOL — all notes on a consented athlete you can see: shared notes (coach_shared feedback + the athlete's own athlete_shared self-reports) plus YOUR OWN coach_private reference notes. Another coach's private notes are never returned. Newest first. Notes may anchor to a schedule date or a run (target_run_hk_uuid).
Inputs: athlete_id (required).
coach_get_athlete_overviewARead-onlyInspect
COACH TOOL — pre-shaped planning context for ONE consented athlete: their full athlete profile (age, HR, goal, PBs, performance_profile incl. VDOT training paces — use these to set target paces when authoring sessions), their 10 most recent runs (same per-run summary shape as get_runs), and the current week's schedule. The recovery block (sleep/HRV/resting-HR/load context) is included ONLY when the grant carries the 'recovery' scope — otherwise it is null with recovery_reason 'recovery_scope_not_granted', and the profile's resting_hr_bpm and vo2_max_ml_kg_min read { value: null, source: null } (they are recovery-derived); respect that boundary, never infer around it. The consent grant is resolved per call (fail-closed). Read this before planning an athlete's week. Wire values are raw metric — present in the ATHLETE's units (profile.units).
Inputs: athlete_id (required).
coach_get_runARead-onlyInspect
COACH TOOL — full single-run detail for a consented athlete's run: identical payload to get_run (summary + per-km splits, segment_summary rep-by-rep breakdown on interval runs, best_efforts, hr_zones, GAP, decoupling). Same conventions as get_run (null ≠ zero; recovery_segment_count 0 means work-only by design). splits[] is empty on any manually-logged run, and may be empty on an imported one — but an import is NOT splitless by rule: where the source supplied no kilometre markers and no usable route clock, splits are derived from the run's own speed series, so most imported runs do carry them. An empty splits[] is expected rather than missing data; the rest of the summary (metrics, best_efforts, elevation) is unaffected. A run may end with one row carrying coverage:"uncovered": the source's samples stop before the run did, so that distance has no split data and no pace. Never estimate or quote a pace for it; the run-level splits_coverage block says how much is covered. The run carries distance_provenance ('recorded' | 'corrected' | 'manual') with the same semantics as get_run — corrected/manual runs never set personal bests and never feed Race Fitness; a manual run's metrics read not_recorded. Clocks: the run's duration_s/pace_s_per_km are MOVING time (pauses excluded). Each split carries clock — wall means its duration_s includes any pause inside that kilometre, so a paused run's split can read far slower than the run's pace without being a bad kilometre; do not compare a wall split against the run pace, or sum wall splits to the run's duration, without allowing for pauses. A split with pace_s_per_km: null and split_quality: "implausible_pace" is a clock artefact, not a fast kilometre. best_efforts and time_bests are WALL-CLOCK windows — the fastest contiguous stretch of the run with any pause inside it counted — so on a paused run a best-effort rung can legitimately read slower than a rep in segment_summary or a run-level pace timed on the moving clock; that is the pause, not a contradiction. Never restate a best effort as a moving-time pace. Garmin (Connect IQ) runs send no pause events, so their split moving time may be priced from pauses INFERRED from gaps in the watch's own sample stream and used only when those gaps reconcile against the run's own two clocks — on such a run a split reading clock: "moving" was priced that way, while one still reading wall means the inference did not apply — the run had no pause to find, or the gap evidence did not reconcile. A run may also carry clock_contradiction — {excess_s, span_s, duration_s}, present only when that run's pause-excluded moving time exceeds its own wall clock (ended_at − started_at) by more than 60 s, which means NEITHER clock on that run can be trusted: the run is still stored and still listed, but it is excluded from every aggregate, every personal best, every race prediction and the training-load model, and its best_efforts and time_bests are null. Do not restate that run's pace or duration as a fact. A Garmin (Connect IQ) run may carry sample_coverage: when truncated is true, the watch's sample series ends unexplained_tail_s before the run did; run-level HR is the watch's own figure when run_hr_source is watch; charts and per-km HR inside the tail are absent, not zero. series_samples: 0 means the watch sent no sample series at all for that run (not a lost tail): truncated and unexplained_tail_s then describe the whole run, not a missing ending.
Inputs: run_id (required), athlete_id (required).
coach_get_runsARead-onlyInspect
COACH TOOL — a consented athlete's runs, newest first: the SAME payload and filters as get_runs (type, distance band in metres, category, name, n 1-50), over EVERY run the athlete has — scheduled and unscheduled alike (the grant covers the corpus). Same data conventions as get_runs: null is never zero, 'limited' gets at most a passing mention, report figures directly in the athlete's units. Runs carry distance_provenance ('recorded' | 'corrected' | 'manual') with the same semantics as get_runs — corrected/manual runs never set personal bests and never feed Race Fitness; on a manual run every metric reads not_recorded and recording_profile is not meaningful.
Inputs: athlete_id (required), n, name, type, +3 more.
coach_get_run_streamsARead-onlyInspect
COACH TOOL — time-resolved streams for a consented athlete's run: identical payload to get_run_streams (per-stream insights incl. drift, downsampled [tSec, value] arrays, 600-point cap, narrative). Use coach_get_run for the shaped summary FIRST; reach for streams only when you need where pace cracked / HR climbed / cadence decayed within one run. A run imported from a non-Apple device may return only a coarse heart-rate line with pace/cadence/power null — that's the full extent of what the source exported, not broken sampling.
Inputs: run_id (required), athlete_id (required), metrics, resolution.
coach_list_athletesARead-onlyInspect
COACH TOOL — only works for accounts with coaching enabled (a provisioned coach). Your athlete roster: every athlete who has granted you coaching access via a consent grant — your name for them (the name field), consent scopes ('training' always; 'recovery' optional), write permission, when they connected, and their most recent run. Roster identity only — no adherence or triage rollups here; derive those from coach_get_runs / coach_get_athlete_overview per athlete. Use this FIRST to discover the athlete_id every other coach_* tool requires. If coaching isn't enabled for the account this (and every coach tool) returns a clean 'coaching_not_enabled' error — just tell the user coaching isn't enabled for their account.
Inputs: no named parameters.
coach_propose_athlete_noteARead-onlyInspect
COACH TOOL — stage a note on a consented athlete (does NOT write). visibility 'coach_private' = your own reference, never visible to the athlete or their AI (allowed on any active grant); 'coach_shared' = feedback the athlete sees in their app and their AI reads (requires the grant's write permission). Anchor it with target_type: 'athlete' (general), 'planned_session' (+ target_date YYYY-MM-DD), or 'workout' (+ target_run_hk_uuid from coach_get_runs). body ≤ 2000 chars. Returns a draft + confirmation_token; show the draft to the coach and call coach_commit_athlete_note ONLY after they confirm.
Inputs: body (required), athlete_id (required), visibility (required), target_type (required), +2 more.
coach_propose_planned_sessionsARead-onlyInspect
COACH TOOL — stage planned training sessions for a consented ATHLETE's schedule (does NOT write). Requires the grant's write permission + training scope. Sessions take the exact same shape as propose_planned_sessions (date, session_type easy|tempo|intervals|long|race|rest, targets, note, interval_spec — see that tool for the full composition rules); one session per date, up to 60. Returns a draft rendered in the ATHLETE's units, rejected entries with reasons, and a confirmation_token. Show the draft to the coach and call coach_commit_planned_sessions ONLY after they confirm. Committed sessions land on the athlete's app/watch with coach provenance — the athlete (and their AI) see them badged as coach-authored.
Inputs: sessions (required), athlete_id (required).
commit_coach_noteADestructiveInspect
Commit a previously proposed coach note. Call ONLY after the athlete confirms the draft from propose_coach_note. Pass its confirmation_token. Archives the prior week as its one-line summary and appends the calibration-log delta.
Inputs: confirmation_token (required).
commit_manual_runAInspect
Commit a previously proposed manual run. Call ONLY after the user has explicitly confirmed the echoed interpretation. Pass its confirmation_token.
Inputs: confirmation_token (required).
commit_planned_sessionsADestructiveIdempotentInspect
Commit a previously proposed schedule. Call ONLY after the user has confirmed the draft from propose_planned_sessions — and if that draft carried pace_warnings in coaching_context, only after you have shown them to the user and they confirmed (or you restaged). Pass its confirmation_token. Upserts one session per date (replacing any existing plan for those dates) and returns the resulting schedule.
Inputs: confirmation_token (required).
commit_profile_updateADestructiveIdempotentInspect
Commit a previously proposed profile change. Call ONLY after the user has confirmed the diff from propose_profile_update. Pass the confirmation_token from that call. Returns the updated profile and warnings: an accepted value the user should double-check (e.g. a max HR set below their highest recorded heart rate, which is now used for their zones) is named there with the reason — tell the user plainly.
Inputs: confirmation_token (required).
compare_runsARead-onlyInspect
Summarize and compare filtered sets of the user's runs. Pass a (and optionally b) as a filter: { type (just_a_run|easy|tempo|long|race|intervals|trail; omit = all types), min_distance_m, max_distance_m, preset (this_week = calendar week Mon→now | last_7_days = rolling | this_month | last_30_days | this_year) or from/to ISO timestamps supplied together (omit both = all time) }. type all = every type; an untyped run (e.g. a Garmin Connect run) matches by its run_category. With a only: returns that set's count, date range, and per-metric {avg, min, max} for pace_s_per_km, heart_rate_bpm, cadence_spm, elevation_gain_m, distance_m — for pace, min = fastest; for distance, max = longest. With a and b: also returns delta (b.avg - a.avg) per metric. Aggregate only — use get_runs for individual runs, get_progression for the trend. Runs under 1 km are excluded as noise. Walk-paced runs (moving pace slower than 9:00/km, or under 130 steps/min slower than 7:00/km, never interval sessions or runs at 150 steps/min or more) are left out and counted in walk_paced_excluded, absent when none. A null metric was not recorded; never treat it as zero. Copies of the same run from two apps are counted once; duplicates_collapsed says how many were folded. A row whose own span is over 12 hours is never folded, so a duplicated ultra beyond that still counts as stored.
Inputs: a (required), b.
compare_to_baselineARead-onlyInspect
Compare one run to a baseline set of the user's runs: today's pace/HR/cadence vs the baseline averages + delta + how many runs matched. By default the baseline is the user's recent runs of the SAME TYPE and SIMILAR DISTANCE (±20% of this run; last n, default 5, the subject excluded) — a like-for-like comparator. An untyped subject uses its run_category. Override with baseline: { type: a specific tag, or "all" for every type; min_distance_m; max_distance_m — an explicit band overrides the ±20% default }. Absent metrics are excluded from the average, never counted as zero. Runs under 1 km are excluded from the baseline. Walk-paced runs are left out of the baseline. today may carry a clock_contradiction block: the subject run is never quarantined, because it is the run you were asked about, but when its own two clocks contradict each other its pace is priced on a duration its wall clock cannot support and every delta here is meaningless — say that rather than read the comparison.
Inputs: run_id (required), n, baseline.
get_athlete_profileARead-onlyInspect
The user's athlete profile: age, sex, max HR, resting HR, goal, target race + date, training phase, units. ALSO returns the structured goal pair goal_time_s + goal_distance_key (a target finish time in seconds at one of 1k|1mi|5k|10k|half|marathon, both null when no time goal is set) — this is what drives the in-app goal-convergence view; settable (and clearable, both-null) via propose_profile_update. ALSO returns goal_source ('ai' | 'athlete' | null): who set the structured goal. If goal_source is 'athlete', the USER set this goal themselves in the app — do NOT overwrite or clear it unless they explicitly ask you to. max_hr_bpm, resting_hr_bpm and vo2_max_ml_kg_min each carry {value, source} where source is "manual" (the user's set value is in use) or "auto" (derived from their data); a null value means not known — never invent one. max_hr_bpm is the value in use: the user's set value when there is one (it wins, even below their highest recorded heart rate), otherwise the highest heart rate on any recorded run of 1 km or more. manual_max_hr_bpm is the value the user set (null if none), and observed_max_hr is the peak with its provenance {value_bpm, run_id, date, source_app} (null when no run has heart rate; run_id/date/source_app null if the run can't be named) — use them to show the user where their max HR comes from, and treat a lone old peak far above their recent maxima with suspicion (a sensor spike is possible). resting_hr_bpm uses recent readings from their watch or Apple Health (the median of the 14 most recent days with a reading) and vo2_max_ml_kg_min the latest reading, whenever one exists (both track up and down); a value the user sets is used only when there is no reading. Use this context to ground coaching (HR zones from max HR, effort vs goal, etc.). Present figures in the user's units (units field). Useful to read at the start of a coaching session to ground your advice in the user's goals and physiology; fields with source 'auto' or a null value may be worth confirming or setting with the user via propose_profile_update (which can also set VO2max and personal bests by hand). ALSO returns personal_bests — the best-of(manual, auto) distance bests, each tagged source 'manual' (the user entered it) or 'auto' (computed from their runs); these anchor VDOT / Critical Speed / race predictions. ALSO returns performance_profile — the derived fitness fingerprint computed from the user's best efforts: vdot (Daniels VDOT, the single race-fitness number — the app shows this to the user as 'Race Fitness'; prefer that label when talking to them); training_paces — the Daniels E/M/T/I/R paces (easy range, marathon, threshold, interval, repetition) in raw metric s/km, the runner lingua franca for prescribing sessions — use these to set target_pace_s_per_km when authoring guided sessions; threshold_s_per_km — the threshold (tempo) pace, which IS the VDOT T-pace; and critical_speed — a Critical Speed + D' two-parameter fit over the best-efforts ladder (cs_m_per_s, cs_pace_s_per_km, d_prime_m = the finite work capacity above CS in metres), the more physiologically precise sustainable-boundary estimate WHEN enough effort-spread exists. CS is RELATED TO BUT DISTINCT FROM the VDOT threshold pace (CS ≈ the 30–45 min boundary, T-pace ≈ 60-min pace) — do not conflate them. EVERY performance_profile value is a model ESTIMATE, never lab-grade — present it as such, and lean on provenance: training_paces derive from VDOT (anchored on the effort nearest 5 km); critical_speed.from lists the exact (distance, time) efforts the fit used, n_points is how many fed it, and reason is non-null when the fit was NOT surfaced (insufficient_efforts | insufficient_spread_for_confident_fit | efforts_too_clustered | implausible_fit) — when reason is set, cs_m_per_s is null, so fall back to the VDOT threshold pace and say so (insufficient_spread_for_confident_fit means only 2 efforts fed the fit — invite one more effort at a different distance). A null vdot/training_paces means no usable best effort yet (never zero). The easy range's slow bound is the raw 59%-VO₂max anchor (intentionally a touch slower than clipped printed Daniels tables). Present performance_profile paces in the user's units: metric s/km as-is; imperial multiply pace_s_per_km by 1.609344 for s/mile.
Inputs: no named parameters.
get_calibration_logARead-onlyInspect
The append-only history of every time a working pace changed (e.g. threshold 4:25 -> 4:20 -> 4:15), oldest first — the athlete's progression arc, functional for you and motivating for them. Optional metric (e.g. 'threshold') and since (YYYY-MM-DD) filters.
Inputs: since, metric.
get_coach_noteARead-onlyInspect
The persistent coaching note for this athlete — current working paces (calibration), this week's guidance, watch-fors, last week's one-line summary, and the single carry-forward question. Read this at the START of a coaching session and ALWAYS before planning a new week. as_of tells you how stale it is (the note is refreshed only when the athlete plans a new week — there is no automatic cron). Display strings are already in the athlete's units — present them verbatim, do NOT re-convert. Returns {note:null, reason:'no_active_note'} when the athlete has no note yet.
Inputs: no named parameters.
get_goal_progressARead-onlyInspect
The exact progress picture the runner sees on their Profile: their structured goal (time_s + distance + race date + days_to_race), current-fitness race predictions for 5k/10k/half (+ the goal distance when distinct) each with confidence and source provenance, the weekly goal-trajectory series (predicted time at the goal distance, oldest-first — is it converging on the goal?), the easy-run efficiency trend (GAP pace at a reference HR, lower = fitter; walk-paced runs excluded), and a 12-week schedule-adherence rollup (sessions scheduled vs completed + points earned/possible). Use it whenever the conversation touches goals, progress, fitness trend or training consistency — these are the same numbers the app shows, so you and the app never tell different stories. When relevant, explain confidence ('solid'/'moderate'/'extrapolated' = how far the source effort's distance sits from the target; marathon never above 'moderate') and aging (source effort >45 days old — suggest a tune-up effort to refresh the estimate). Each prediction carries delta_4w_s — the change vs the same prediction made 4 weeks ago (negative = faster now = improving; null when no 4-weeks-ago prediction exists). goal and goal_series are null when no structured goal is set; predictions may be empty without a recent hard effort; efficiency is null without a max HR or qualifying easy runs. Wire values are raw metric — present in the user's units. An athlete whose history is all non-Apple-device imports (e.g. Garmin) will legitimately show no auto-detected efforts and empty predictions — those runs carry no per-second speed data to mine; that is a source export limit, not absent fitness, so offer manual PB entry (propose_profile_update -> personal_bests) which drives Race Fitness, training paces and predictions just as well.
Inputs: no named parameters.
get_helpARead-onlyInspect
Answers how PB-Runner works and troubleshoots problems — grounded in the app's real behaviour, so you help instead of guessing. Reach for this whenever the user asks a how-to ('how do I make a custom interval session', 'how do I connect my AI'), a why-is-something-missing ('why does my Garmin run have no map / no heart rate'), or a something-isn't-working question ('my runs aren't syncing', 'a run didn't show up', permissions, setup). Do NOT answer these from memory and do NOT invent menu paths or screen names — call get_help and ground your answer ONLY in the returned body (and the matching platform section). This is distinct from the data tools: get_runs/get_run/etc. answer questions ABOUT the user's runs; get_help answers questions about the APP and how to use or fix it. iOS and Android differ (Android is phone-only: no Apple Health, no watch, no importing from other apps on the phone; older Garmin history comes in from a CSV export on the website, see garmin-csv-import — it records in the app and syncs directly): pass platform 'ios' or 'android' to get the right steps, and if you don't know which device the user is on, ASK before giving device-specific steps (when platform is omitted and the sections differ, the response carries a platform_note reminding you). Pass topic (one of: how-syncing-works, apple-watch-run-metrics, iphone-only-recording, garmin-thin-data, split-data-missing, splits-inside-a-block, strava-two-way, other-apps-sync, garmin-connect-iq, garmin-watch-manual, garmin-csv-import, run-not-showing, duplicate-runs, import-history-troubleshooting, watch-run-no-map-or-hr, permissions, data-ownership-export, subscription-and-pricing, connect-your-ai, openclaw, custom-ai-workouts, coach-access, play-todays-run-sync, guided-run-on-watch, session-targets-on-screen, schedule-training-plans, races-join-alerts-results, notifications-push-setup, subjective-how-it-felt, account-deletion, manual-run-entry, treadmill-runs, max-heart-rate) when you know the topic, or query (free text) to search; pass neither to get the index of all topics. A close-but-imperfect topic still resolves. When a query is ambiguous the result includes also_maybe pointers — read those before answering. If the returned content doesn't resolve the user's issue, use the support pointer rather than speculating.
Inputs: query, topic, platform.
get_personal_bestsARead-onlyInspect
The user's personal bests. distance_bests = the best-of(manual, auto) for each distance (1k/1mi/5k/10k/half/marathon): the faster of the fastest rolling effort across all runs and any hand-entered PB the user set; each carries a source ("manual" | "auto") and a best ({time_s, date, run_id}) — run_id is null when a manual PB won. time_bests = furthest distance in 20min/60min (auto only). A best of null means neither a run nor a manual entry covers that distance — never report it as zero. Report times and distances directly in the user's units. An athlete whose history is all non-Apple-device imports (e.g. Garmin) will legitimately show no auto-detected efforts — those runs carry no per-second speed data to mine; that is a source export limit, not absent fitness, so offer manual PB entry (propose_profile_update -> personal_bests) which drives Race Fitness, training paces and predictions just as well.
Inputs: no named parameters.
get_planned_scheduleARead-onlyInspect
The user's planned training sessions in a date range (default: the current Mon–Sun week). Each: date, session_type (easy|tempo|intervals|long|race|rest), optional target_distance_m / target_duration_s / target_pace_s_per_km / note / interval_spec (a structured spec may attach to any non-rest type). Read this before revising a plan. Optional from/to are YYYY-MM-DD. Each session also carries its completion state so you can coach on adherence: completed_at (the time of the session's first tick, not the run's time; null = not ticked, which does not prove the runner did not run, so check get_runs for a run on that date before calling a session missed), tick_count (POINTS earned, 1-3 = the sum of three independent checks), completion_source ('auto' from a synced run, or 'manual' if the user set it), and match_quality { checks { activity (a qualifying run happened — always true when completed), distance (ran >=90% of the planned distance or duration), pace (within 10% of target pace in the session's intended direction — easy/long not-too-fast, tempo/intervals/race not-too-slow) }, distance_ratio (achieved fraction of target), pace_ratio (run vs target pace; >1 slower, <1 faster), pace_basis ('gap'|'pace'), type_match (false when the run's type differed from the plan) }. A target that was not set auto-passes its check. Manual completion records the Activity point only. Rest days never complete. Use this to see what was done versus planned, and which dimension fell short. Each session also carries authored_by ('ai' = an AI like you wrote it; 'coach' = the athlete's human coach prescribed it on the coach portal or via their own AI; 'athlete' = self-authored; null = written before provenance existed) and matched_run_hk_uuid (the run that satisfied a completed session, for linking). RESPECT coach-authored sessions: when authored_by is 'coach', do not overwrite, move or re-plan that session unless the athlete explicitly asks you to — flag the conflict and let the athlete decide. Each session may carry notes_annotation {count, latest_line} — human notes anchored to that date (see get_shared_notes). Each session also carries display_label — the label the athlete sees for it in the app (e.g. 'Cruise intervals'); use it when naming the session back to them.
Inputs: to, from.
get_progressionARead-onlyInspect
A time-ordered (oldest-first) per-run series of one metric so you can read the trend. metric: pace|heart_rate|cadence|distance|elevation_gain|gap_s_per_km|decoupling (decoupling = pa_hr_pct) or a raw metric key (running_power_w|running_speed_mps|ground_contact_time_s|stride_length_m|vertical_oscillation_m|heart_rate_bpm). Optional type filter (just_a_run|easy|tempo|long|race|intervals|trail, or all) and timeframe ({preset} = this_week (calendar week, Mon→now)|last_7_days (rolling)|this_month|last_30_days|this_year, or {from,to} supplied together). An unknown metric or type is refused with the valid list. A null value in the series = not recorded for that run; never treat it as zero. A point with walk_paced: true is a walk, not a slow run. Copies of the same run from two apps are counted once; duplicates_collapsed says how many were folded. A row whose own span is over 12 hours is never folded, so a duplicated ultra beyond that still counts as stored. runs_quarantined counts runs left out of this response entirely because their own two clocks contradict each other — a run's pause-excluded moving time exceeding its own wall clock, so it can price nothing; the key is absent when there were none, and it says something different from duplicates_collapsed: a quarantined run was dropped on purpose, not folded into another copy of itself.
Inputs: metric (required), to, from, type, +1 more.
get_recovery_contextARead-onlyInspect
The user's recovery and fitness context from passive daily Apple Watch metrics — read this whenever recovery, readiness, fatigue, sleep, HRV, resting HR, training load or VO2max comes up, and ALWAYS before you propose or adjust a training plan. No arguments; returns one pre-shaped payload, each metric windowed to the horizon where it actually means something. Read it and apply your own coaching judgment — there is deliberately no server-side readiness verdict; you are the coach, this is the data. Read load AND recovery together: high acute load with suppressed recovery is a different call from high load with recovery sitting at baseline. Blocks returned: vo2_max — the slow-moving fitness arc: latest (carried forward from the last real reading, with its date), d30_avg / d90_avg / d365_avg, a direction (improving | stable | declining vs the longer window), a vdot_estimate derived from the user's race PBs, and a plain-English gap_note reconciling Apple's VO2max against that race-implied VDOT (they often differ — read the note, don't just quote the number). hrv and resting_hr — near-daily signals that only mean anything against the person's own baseline: latest (+ date), d7_avg, d30_baseline, direction vs that baseline, and n_30d (how many days fed the baseline). For resting HR, lower than baseline is the good direction; for HRV, higher is the good direction. sleep — last_night broken into stages in hours (total_h, rem_h, core_h, deep_h, awake_h, in_bed_h), d7_avg_h, d30_avg_h, and direction; sleep variance matters more than the average, so look at last_night against the week. recent_14d — a day-by-day series [{ date, sleep_h, hrv, rhr, vo2max? }] so an acute disruption (a 2-3h night with resting HR spiking, a suppressed-HRV stretch) is visible to you rather than averaged away — scan it before judging readiness. load — the training-load picture, computed from the user's HR data: today (today's load), d7_load (last 7 days), acute (7-day load average), chronic (42-day load average), balance (chronic − acute, SIGNED: positive = fresh, negative = loaded/fatigued), acute_chronic_ratio (acute vs chronic — this is LOAD-BALANCE, NEVER an injury-risk figure; do not present it as injury risk), and ramp_flag (rising_fast | steady | detraining — again a load-balance label, not a risk verdict). load_metric names the score honestly ('edwards_trimp_5band', an HR-zone-weighted load). There is NO 0–100 readiness score anywhere and never will be — a single number implies a weighting we cannot defend; read the balance and the recovery blocks and make the coaching call yourself. flags — descriptive co-occurrences the model noticed (e.g. acute_load_high_and_hrv_suppressed, resting_hr_elevated_and_loaded, cardiac_drift_high_recent, freshening), each fired only when both sides are present — they are observations for YOU to turn into coaching, never instructions; a flag never means 'skip the session', that call is yours. NULL DISCIPLINE: every absent value is null with a reason ('not_worn' | 'not_yet_computed' | 'insufficient_history' for recovery; 'no_runs' | 'no_max_hr' | 'insufficient_history' for load) — NEVER zero, and never invent a figure. The payload shape is identical whether or not data exists, so a new user simply gets nulls with reasons. Lead with the analysis: weave load and recovery into your coaching naturally, don't lecture about sample size or recite which days are missing. Concrete use: after a poor night or suppressed HRV, or when acute load is running hot against chronic, soften the next session (or swap a hard workout for easy/rest); when sleep, HRV and resting HR all sit at or better than baseline and balance isn't deeply negative, the user is absorbing load well and can take the harder session. Pair with get_athlete_profile (which now also surfaces VO2max) and get_planned_schedule when shaping or revising a plan.
Inputs: no named parameters.
get_runARead-onlyInspect
Full detail for one run: its summary plus per-kilometre splits. splits[] is empty on any manually-logged run, and may be empty on an imported one — but an import is NOT splitless by rule: where the source supplied no kilometre markers and no usable route clock, splits are derived from the run's own speed series, so most imported runs do carry them. An empty splits[] is expected rather than missing data; the rest of the summary (metrics, best_efforts, elevation) is unaffected. A run may end with one row carrying coverage:"uncovered": the source's samples stop before the run did, so that distance has no split data and no pace. Never estimate or quote a pace for it; the run-level splits_coverage block says how much is covered. A guided session with one main block and a warm-up or cool-down around it may also carry block_splits: the kilometres (or miles, per its unit) inside that block, counted from the block's start and timed at the watch's own boundaries, adding up exactly to that segment's distance and moving time (its note says when a row was timed a few seconds off the moving clock); when asked for the splits of the block ("the km splits of the 5K"), answer from block_splits, never from the whole-run splits[] that straddle the block's edges, and when it reads status "unavailable" give the segment's totals and do not estimate kilometres inside the block (get_help topic splits-inside-a-block). Any STRUCTURED guided run may carry segment_summary — a rep-by-rep breakdown with avg/max HR, pace, cadence, power per segment, target pace and heart-rate target (where set: targetHrBpm for a single value, or targetHrLowBpm + targetHrHighBpm for a planned range — read the range as the target, e.g. 125–145), and HR-drop@30s/60s/90s on every recovery block (the recovery HR-drop is one of the best aerobic-fitness signals and is invisible from km splits). Since 2026-08-20 this is keyed on what was MEASURED, not on the type label: a tempo- or easy-typed guided session with real multi-segment structure (e.g. cruise intervals authored as tempo) carries the full breakdown; the run's workout_type still honestly reads the planned type — treat the type as the training classification and segment_summary as the measured structure, and never call the run 'interval training' merely because segments exist. segment_summary is null when the run has no genuine breakdown (fewer than 2 segments on a non-intervals type), and on runs the athlete explicitly relabeled away from intervals. It also carries session_kind: 'intervals' for a classic uniform repeated set, or 'custom' for a composed/varied session (a pyramid, progression, descending-pace reps, or a mixed session) — the app shows the latter as a "Custom Run". Read segment_summary to see the exact structure either way. The run also carries recovery_segment_count: 0 means a work-only session (e.g. AI-authored back-to-back efforts with no recovery floats), so the absence of recovery HR-drop there is BY DESIGN — treat it as expected, not missing data; a positive count means recovery blocks exist and HR-drop should be present. Note: runs recorded before 2026-07-06 may record as workout_type 'intervals' for structured non-interval sessions (a historic labelling quirk); since 2026-08-20 the type follows the planned session honestly — either way, check run_category/run_name and the planned schedule, and if the plan says long/tempo/easy, treat it as that planned session, not as interval training. Same data conventions as get_runs: "limited" = at most a brief note (never hedge), "not_recorded" = excluded, never zero; no sample-size refusals. Splits and the run summary include cadence_spm (steps/min). The run summary also carries active_energy_kcal — total active energy burned for the workout (kcal); report it directly when asked, null when the watch didn't record it, never zero. Splits and the run carry canonical elevation_gain_m/elevation_loss_m plus an elevation_*_gps diagnostic and (run-level) elevation_source ∈ 'dem'|'barometric'|'gps'|'unavailable' (terrain-model DEM derived when 'dem' — highest confidence, the default where coverage exists; barometric when 'barometric'; GPS-derived when 'gps' (may be null on older imported rows — gain/loss null, never zero); 'unavailable' = no canonical elevation, gain/loss null, never zero); report canonical elevation directly. Both the run summary and each split carry gap_s_per_km — grade-adjusted pace (metric s/km, the flat-equivalent pace: uphill faster than raw pace, downhill slower, flat ≈ equal) with gap_source 'dem'/'gps'/null. Per-split GAP shows which kilometres were genuinely hard once the hill is accounted for; it is gated independently per split, so a short partial-tail split may be null while full splits have a GAP. Null gap_s_per_km is never zero. The run summary also carries decoupling — aerobic decoupling (Pa:HR, grade-adjusted): pa_hr_pct is how much HR drifted up relative to pace over the run's two halves — lower is better, under ~5% is well-developed aerobic fitness; computed over active (moving) time with pauses excluded, so a stop-start run is scored on its running only; null on interval runs and on runs with under ~10 min of moving time (never zero); a value from one watch is not comparable 1:1 with another watch's value on the same run. best_efforts is the fastest rolling effort at each of 1k/1mi/3mi/5k/6mi/10k within this single run (each present only if the run is at least that long); the mile rungs are the race equivalents of the km rungs (3mi ≈ 5K, 6mi ≈ 10K) — present the km rungs to metric athletes and the mile rungs to imperial. hr_zones is time-in-zone (Z1–Z5) from the athlete's max HR — seconds + pct per zone; null when max HR is unknown. Each run also carries recording_profile (full = HR plus a body-worn sensor form metric — power / GCT / vertical oscillation; gps_hr = HR but no sensor form metric; gps_only = no HR, a phone/GPS run. A Garmin CSV import reads gps_hr (coarse HR, device cadence/stride, no route; gps_only when the export has no HR column) and cannot read full; the converse does not hold — a watch run that recorded no power/GCT/VO also reads gps_hr, so never infer an import from the profile alone. See the imported-runs guidance before explaining why form metrics are absent) and subjective (the athlete's own perceived_effort 1-10, tiredness_after 1-5, reserve 1-5 — null if not entered). recording_profile, distance_provenance, run_name and subjective are returned ALONGSIDE the run object (top-level siblings), not nested inside it (run_name semantics as in get_runs). distance_provenance — 'recorded' = device-measured; 'corrected' = a treadmill run corrected to the belt's number, with recorded_distance_m carrying the original device estimate (null when there was none); 'manual' = logged from the user's own description, distance as they reported it. Corrected and manual runs never set personal bests and never feed Race Fitness, but count toward volume, consistency and schedule tick-off. On a manual run every metric reads not_recorded and recording_profile is not meaningful — never describe a manual run as a GPS or phone run. The payload carries source_app / source_bundle_id / recorded_by_us — which app wrote the record — and plan_matched (same meaning as on get_runs). When a run carries both splits and segment_summary, read them against each other before drawing a conclusion: a work segment whose pace is far slower than the kilometre splits it covers usually means the segment boundary ran past the effort, not that the effort collapsed. Clocks: the run's duration_s/pace_s_per_km are MOVING time (pauses excluded). Each split carries clock — wall means its duration_s includes any pause inside that kilometre, so a paused run's split can read far slower than the run's pace without being a bad kilometre; do not compare a wall split against the run pace, or sum wall splits to the run's duration, without allowing for pauses. A split with pace_s_per_km: null and split_quality: "implausible_pace" is a clock artefact, not a fast kilometre. best_efforts and time_bests are WALL-CLOCK windows — the fastest contiguous stretch of the run with any pause inside it counted — so on a paused run a best-effort rung can legitimately read slower than a rep in segment_summary or a run-level pace timed on the moving clock; that is the pause, not a contradiction. Never restate a best effort as a moving-time pace. Garmin (Connect IQ) runs send no pause events, so their split moving time may be priced from pauses INFERRED from gaps in the watch's own sample stream and used only when those gaps reconcile against the run's own two clocks — on such a run a split reading clock: "moving" was priced that way, while one still reading wall means the inference did not apply — the run had no pause to find, or the gap evidence did not reconcile. A run may also carry clock_contradiction — {excess_s, span_s, duration_s}, present only when that run's pause-excluded moving time exceeds its own wall clock (ended_at − started_at) by more than 60 s, which means NEITHER clock on that run can be trusted: the run is still stored and still listed, but it is excluded from every aggregate, every personal best, every race prediction and the training-load model, and its best_efforts and time_bests are null. Do not restate that run's pace or duration as a fact. A Garmin (Connect IQ) run may carry sample_coverage: when truncated is true, the watch's sample series ends unexplained_tail_s before the run did; run-level HR is the watch's own figure when run_hr_source is watch; charts and per-km HR inside the tail are absent, not zero. series_samples: 0 means the watch sent no sample series at all for that run (not a lost tail): truncated and unexplained_tail_s then describe the whole run, not a missing ending.
Inputs: run_id (required).
get_runsARead-onlyInspect
The user's runs, newest first — the individual run records, each with its summary metrics. Use this when the user wants specific runs or you need the raw records. For aggregate questions prefer the purpose-built tools: 'how do my easy runs compare' / 'easy vs tempo' -> compare_runs; a metric's trend over time -> get_progression; an overall rollup -> get_training_summary; one run vs its peers -> compare_to_baseline. Filter by workout type (an untyped run matches by its run_category) and/or distance band (named-distance mapping is in the server instructions). Report figures directly and confidently. A metric flagged 'limited' -> at most a brief 'limited data' half-sentence, never hedge/refuse/lecture ('limited' is coverage-driven — gaps in the recorded HR stream — and appears on genuine Apple-Watch runs too, so it does not mean the run is an import or the data untrustworthy); 'not_recorded' -> excluded, never zero; no sample-size refusals (analyse 2 runs or 20). Each run/split carries cadence_spm (steps/min) — report it like any metric, same conventions. Each run summary also carries active_energy_kcal — total active energy burned for the workout (kcal); report it directly when asked, null when the watch didn't record it, never zero. elevation_gain_m/elevation_loss_m are canonical, with elevation_source ∈ 'dem'|'barometric'|'gps'|'unavailable': terrain-model (DEM) derived when 'dem' (highest confidence, the default where coverage exists), barometric when 'barometric', GPS-derived when 'gps' (may be null on older imported rows — gain/loss null, never zero); 'unavailable' means no canonical elevation could be resolved and gain/loss are null (never zero). elevation_*_gps is the GPS diagnostic — report canonical elevation plainly, mention the source only if asked. Each run summary also carries gap_s_per_km — grade-adjusted pace (metric s/km): the flat-equivalent pace, so an uphill run shows a FASTER gap_s_per_km than its raw pace_s_per_km, a downhill run slower, flat ≈ equal; gap_source is 'dem' (high-confidence terrain) / 'gps' (lower-confidence fallback) / null when unavailable (gap_s_per_km is null too — never zero). Each run summary also carries decoupling — aerobic decoupling (Pa:HR, grade-adjusted): pa_hr_pct is how much HR drifted up relative to pace over the run's two halves — lower is better, under ~5% is well-developed aerobic fitness; computed over active (moving) time with pauses excluded, so a stop-start run is scored on its running only; null on interval runs and on runs with under ~10 min of moving time (never zero); a value from one watch is not comparable 1:1 with another watch's value on the same run. best_efforts is the fastest rolling effort at each of 1k/1mi/3mi/5k/6mi/10k within this single run (each present only if the run is at least that long); the mile rungs are the race equivalents of the km rungs (3mi ≈ 5K, 6mi ≈ 10K) — present the km rungs to metric athletes and the mile rungs to imperial. hr_zones is time-in-zone (Z1–Z5) from the athlete's max HR — seconds + pct per zone; null when max HR is unknown. Each run carries run_category (coarse kind) + run_name (the structured session name on guided runs, or the Garmin Connect title on CSV-imported runs; null otherwise); filter with category/name to group runs of a kind (e.g. category='tempo' for all tempos, name='Pyramid' for all pyramid sessions). A run with walk_paced: true is a walk, not a slow run. Each run also carries recording_profile (full = HR plus a body-worn sensor form metric — power / GCT / vertical oscillation; gps_hr = HR but no sensor form metric; gps_only = no HR, a phone/GPS run. A Garmin CSV import reads gps_hr (coarse HR, device cadence/stride, no route; gps_only when the export has no HR column) and cannot read full; the converse does not hold — a watch run that recorded no power/GCT/VO also reads gps_hr, so never infer an import from the profile alone. See the imported-runs guidance before explaining why form metrics are absent) and subjective (the athlete's own perceived_effort 1-10, tiredness_after 1-5, reserve 1-5 — null if not entered). Each run also carries distance_provenance — 'recorded' = device-measured; 'corrected' = a treadmill run corrected to the belt's number; 'manual' = logged from the user's own description, distance as they reported it. Corrected and manual runs never set personal bests and never feed Race Fitness, but count toward volume, consistency and schedule tick-off. On a manual run every metric reads not_recorded and recording_profile is not meaningful — never describe a manual run as a GPS or phone run. A run carrying duplicate_of is a second record of the run it names — two apps that both wrote it to Apple Health, or one run recorded on two watches at once (a Garmin watch running PB-Runner alongside an Apple Watch, which never passes through Apple Health). Treat the pair as ONE run and never sum both. The marker says only which copy the totals count; it is chosen by a tie-break, not by accuracy or richness, so when the two copies disagree about what happened it does not tell you which one is right — read both before judging a session, say which record you read, and never report a session as failed from one copy alone. The run it names can sit just beyond this page; if it is not in the list, count the visible copy once, and fetch the named one with get_run only if you need its detail. Each run carries source_app / source_bundle_id / recorded_by_us — which app wrote the record (not which device). Two runs with overlapping times are almost always one physical run recorded twice; read source_app before comparing them. plan_matched marks the copy the athlete's schedule was ticked against.
Inputs: n, name, type, category, +2 more.
get_run_streamsARead-onlyInspect
Raw streams, the PB way — derived insight first, downsampled tiers (1/5/10s), raw on demand. Use get_run for the shaped summary (pace, GAP, decoupling, zones, splits, segment_summary) FIRST; reach for get_run_streams only when you need the time-resolved shape of a single run — where pace cracked, how HR climbed minute-by-minute, whether cadence decayed late. Returns per-stream insights (samples/mean/min/max/start/end/drift — drift is the least-squares slope per MINUTE: HR + = cardiac drift, pace + = slowing, cadence − = decaying) plus a short cross-stream narrative to lead with when something noteworthy fired — HR-drift-vs-pace, pace fade, cadence decay; null on an unremarkable run, not an error (it POINTS BACK to get_run for rigorous decoupling), and streams (downsampled [tSec, value] arrays). NEVER a raw dump: resolution defaults to 'auto' (coarse — 5s for short runs, else 10s; 1s is opt-in only), every channel is hard-capped at 600 points with a 2400-point total budget shared across channels (requesting 5+ channels lowers the per-channel cap), and a note flags any coarsening/striding — the note is authoritative: resolution_s echoes the REQUESTED grid even when striding widened the effective spacing. Metrics (default heart_rate, pace, cadence, power): heart_rate, pace, speed, cadence, power, stride, vertical_oscillation, ground_contact_time — pace is derived (1000/speed), cadence is derived (needs speed AND stride). Null discipline: an absent metric is null in BOTH insights and streams (never 0, never []); a run with no stored samples returns a valid all-null payload + note, NOT an error. A run imported from a non-Apple device (e.g. Garmin via Apple Health) may return only a coarse heart-rate line (a few dozen points across the whole run) with pace/cadence/power null — that is the full extent of what the source exported, not broken sampling; the 'no streams' note fires only when every channel is null. No GPS/route — metric channels only.
Inputs: run_id (required), metrics, resolution.
get_training_summaryARead-onlyInspect
A rollup of the user's training over a timeframe: run count, total distance/duration/elevation, longest run, and a by-workout-type breakdown (count, distance, avg pace, avg HR). An untyped run is counted under its run_category. timeframe: pass {preset} = this_week|last_7_days|this_month|last_30_days|this_year, or {from,to} ISO timestamps. 'this_week' is the CALENDAR week (Monday→now, matching the app's Training Hub); use 'last_7_days' for a rolling 7-day window. from and to must be supplied together. Report figures directly in the user's units; a null metric was not recorded, never zero. Copies of the same run from two apps are counted once; duplicates_collapsed says how many were folded. A row whose own span is over 12 hours is never folded, so a duplicated ultra beyond that still counts as stored. runs_quarantined counts runs left out of this response entirely because their own two clocks contradict each other — a run's pause-excluded moving time exceeding its own wall clock, so it can price nothing; the key is absent when there were none, and it says something different from duplicates_collapsed: a quarantined run was dropped on purpose, not folded into another copy of itself.
Inputs: to, from, preset.
predict_race_timeARead-onlyInspect
Predict a race time for a target distance (metres) on TWO bases, both Riegel-model estimates. all_time = extrapolated from the user's nearest all-time personal best — what they've proven capable of; null in the rare case where no all-time PBs exist yet. current_fitness = Riegel equivalence from their best efforts in the LAST 90 DAYS — what they're good for today; it carries confidence ('solid'|'moderate'|'extrapolated' — how far the source effort's distance sits from the target; marathon estimates never grade above 'moderate') and aging (true when the source effort is over 45 days old — worth suggesting a tune-up effort), plus full source provenance. current_fitness is null when there's no qualifying effort in the window. current_fitness also carries delta_4w_s — the change vs the same prediction made 4 weeks ago (negative = faster now = improving; null when no 4-weeks-ago prediction exists). Lead with current_fitness when coaching toward a near-term race; cite all_time as the proven ceiling. Both are model estimates, not promises. An athlete whose history is all non-Apple-device imports (e.g. Garmin) will legitimately show no auto-detected efforts — those runs carry no per-second speed data to mine; that is a source export limit, not absent fitness, so offer manual PB entry (propose_profile_update -> personal_bests) which drives Race Fitness, training paces and predictions just as well.
Inputs: distance_m (required).
propose_coach_noteARead-onlyInspect
Stage a new or regenerated coach note for the athlete to confirm (does NOT write). CALL THIS WHEN THE ATHLETE ASKS TO PLAN A NEW WEEK — regenerate the note FIRST, then propose the plan. Apply the ONLY-PERSIST rule: an item carries forward ONLY if you re-assert it here as still true; everything you omit is dropped (regeneration is REPLACE, not append). Answer the previous note's carry_forward_question as part of regenerating. Record ANY change to a working pace in calibration_delta ({metric, from_val, to_val, reason}) — paces never change silently, and the change requires the athlete's confirmation. Also usable mid-week for a material change. Pass: week_of (YYYY-MM-DD, MUST be a Monday), reasserted {calibration {threshold,easy,long,race_pace_status}, guidance [{label,range,hr,note}], watch_fors [string, max 6]}, last_week (a short recap of the session/week just gone that informs this week — shown in-app as 'Recent'), carry_forward_question (REQUIRED — the single thread for next planning), calibration_delta []. Author all display strings in the athlete's units. Keep each section short (the server rejects over-long notes — the note must fit a phone screen). Returns a rendered draft + confirmation_token; show the draft and call commit_coach_note only after the athlete confirms.
Inputs: week_of (required), carry_forward_question (required), last_week, reasserted, +1 more.
propose_manual_runARead-onlyInspect
Stage a manually-logged run the user describes in conversation (e.g. 'log my treadmill run: 8k in 42 minutes'). Validates plausibility (duration 1 minute–24 hours, pace within 2:00–20:00 min/km, started_at no older than a year — older runs are rejected), checks for an overlapping stored workout (never double-log), and returns the structured interpretation plus a confirmation_token. Echo the interpretation back in the user's units and get an explicit yes before committing. The distance is recorded as the user reported it — manual runs count toward volume, consistency and schedule tick-off, but never set personal bests and never feed Race Fitness.
Inputs: distance_m (required), duration_s (required), note, indoor, +2 more.
propose_planned_sessionsARead-onlyInspect
Stage a set of planned training sessions for the user to confirm (does NOT write). BEFORE authoring: read get_coach_note (current calibrated working paces + this-week guidance — a calibration OVERRIDES generic VDOT-table paces) and get_athlete_profile. The response carries coaching_context: the active coach-note digest plus pace_warnings for any session staged faster than its calibration — show warnings to the user with the draft and resolve them (confirm intent or restage) before committing. The response may also carry coach_conflicts — staged dates that collide with a coach-authored session; surface those to the user like pace_warnings and let the athlete decide before committing. Pass sessions: each needs date (YYYY-MM-DD) and session_type (easy|tempo|intervals|long|race|rest), plus — for non-rest — at least one of target_distance_m (100–80000), target_duration_s (60–21600), target_pace_s_per_km (120–900), note (≤200 chars), or interval_spec (a structured session — see below); rest days take no targets. Every non-rest session should carry a distance or duration, directly or through interval_spec blocks (a note or pace alone cannot be played as a guided run); prefer interval_spec where a session has structure. One session per date; up to 60 per call. Returns a human-readable draft, any rejected sessions with reasons, and a confirmation_token. Each draft summary is ALREADY rendered in the athlete's display units — present it verbatim, do NOT re-convert it (unlike the raw-metric run/data tools). Show the draft and, ONLY after the user confirms, call commit_planned_sessions with the token. interval_spec composes ANY structured session — not just classic intervals — by listing blocks in order: a uniform set (warm-up + one work/recovery pair ×N + cool-down via the repeat group), OR a composed session by listing each block explicitly: a pyramid (200/400/800/400/200), a progression (e.g. easy→tempo→hard work blocks with no recovery between, descending pace), descending-pace reps, or a long run with a race-pace finish. Attach interval_spec to whichever session_type fits ('intervals', 'long', 'tempo', …; not 'rest'). Translate the athlete's effort/zones into concrete target_pace_s_per_km or target_hr_bpm using get_athlete_profile (max/resting HR, PBs→paces) before authoring. WHAT THE ATHLETE SEES AND FEELS MID-RUN — author to fit it, never ask them to hit a number no screen shows. PACE target on a work/recovery block: shown on every device (Apple Watch/iPhone '@m:ss/km'; Android 'Target m:ss /km'; Garmin 'TARGET m:ss', plus a TARGET ±m:ss gap on its end-of-step result panel and, on a session with one main block, its km/mile split panel). A session-level target_pace_s_per_km is IGNORED when the session has an interval_spec, and without one reaches only a single-block plan built from the session's distance (any device) or duration (not Android; Android also only for easy/long) — so put pace on blocks. Off-pace alert: Garmin always (±15 s/km, no setting); Android, Apple Watch and iPhone only if the athlete turned pace alerts on (off by default, ±8%; Android's guided voice off also silences them); Android/Apple hold it for a block's first ~20 s (first block ~2 min). HR target or range: from app 1.0.19 the Apple Watch and iPhone show it on the step screen beside any pace target and buzz when heart rate stays outside it (a single value ±5 bpm on a work block; on a warm-up, cool-down or recovery only above it; the athlete can turn heart-rate alerts off); a Garmin shows it only on a block with NO pace target (pace wins when both are set) and never cues it; Android never shows or cues it. Warm-up/cool-down PACE targets reach no device under the current server policy (stored only). No device speaks a target value. So: put the pace to hit on work blocks as target_pace_s_per_km; use an HR target or range where effort is held by heart rate (easy runs, warm-up ceilings); still state any HR target in your reply to the athlete (Android and older app versions do not show it); a Garmin shows only one target per step. Detail: get_help topic session-targets-on-screen.
Inputs: sessions (required).
propose_profile_updateARead-onlyInspect
Stage an athlete-profile change for the user to confirm. Pass ONLY fields the user explicitly provided — never invent values. Returns a current->proposed diff (scalars in diff, manual personal bests in personal_bests_diff), any rejected fields, warnings (accepted values the user should double-check, each with the reason), and a confirmation_token. Show the diff AND any warnings to the user and, ONLY after they explicitly confirm, call commit_profile_update with the token. Scalar fields: date_of_birth (YYYY-MM-DD), sex, max_hr_bpm (100-240, a whole number — a max HR the user sets is used even below their highest recorded heart rate, and warnings then names that peak's value, date and run so they can check the value isn't too low before they confirm; null clears it, returning to the recorded peak), resting_hr_bpm (30-100 — used only when their watch or Apple Health has no resting-HR reading), vo2_max_ml_kg_min (20-90, ml/kg/min — for a device that never recorded one: a watch or Apple Health VO2max reading, when one exists, is used instead), goal, target_race, target_race_date (YYYY-MM-DD), training_phase (base|build|peak|taper|offseason), units (metric|imperial). STRUCTURED GOAL: goal_time_s + goal_distance_key encode a target finish time at a PB-ladder distance — YOUR job is the structuring: when the user states a time goal in words, translate it (e.g. "sub-40 10K" -> goal_time_s 2400 + goal_distance_key "10k"; "3:30 marathon" -> goal_time_s 12600 + goal_distance_key "marathon"). The two are ALWAYS a pair: pass both to set a goal, or BOTH explicitly null to clear it — one without the other is rejected. goal_distance_key one of 1k|1mi|5k|10k|half|marathon; goal_time_s must be plausible for the distance (the manual-PB band with the slow end widened x1.5 — an ambitious-but-slow goal is fine, a typo is not). This structured pair drives the in-app goal-convergence chart and prediction; the free-text goal stays for narrative context — set both when the user states a time goal. RESPECT PROVENANCE: get_athlete_profile returns goal_source — if it is 'athlete' the user set this goal themselves in the app, so do NOT overwrite or clear it unless they explicitly ask. ALSO accepts personal_bests: an array of {distance_key, time_seconds, set_on?} to hand-enter the user's race bests (e.g. a 5K run on another watch before they used this app) — distance_key one of 1k|1mi|5k|10k|half|marathon, time_seconds the finish time in seconds, optional set_on (YYYY-MM-DD). A manual PB is merged BEST-OF with the app-computed best (the faster of the two wins per distance), and feeds VDOT / Critical Speed / race predictions. Use this whenever the user tells you a race result the app doesn't already know.
Inputs: sex, goal, units, max_hr_bpm, +9 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
AI coach for Garmin: builds training plans and structured workouts, synced straight to your watch.
Your AI writes training plans that arrive as structured workouts on iPhone and Apple Watch.
Running, trail and triathlon coach. Reads Strava, Garmin, COROS, Suunto, Polar. Adapts to your feel.
Your training, sleep, recovery and fuel for the AI you use: it reads your week and plans the next.
Related MCP Servers
- AlicenseAqualityAmaintenanceEnables AI assistants to answer training questions from a user's own Garmin Connect data — training load, form, ACWR, HRV-based morning readiness, activities, sleep and health — using locally cached data and cited sports-science methods. Also turns requests into structured workouts that can be previewed, scheduled to the Garmin calendar and synced to the watch.211MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to read Garmin activities and create/schedule structured workouts and multi-week training plans on Garmin Connect, syncing to the user's watch.1MIT
- AlicenseAqualityNot gradedmaintenanceTurns your own wearable data into coaching for hybrid fitness races by exposing readiness, running coach plans, fitness trends and training summaries as tools an agent can query. Keeps your data read-only at the provider and lets you log the station work and race profile your watch can't see in a local database.91MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to read Garmin activities and create/schedule structured workouts and multi-week training plans directly on Garmin Connect, syncing to your watch with guided prompts.1MIT
Glama MCP Gateway
Add one secure layer between your agents and this server.