Blocks
Server Details
AI-native training platform for cyclists and runners: calendar, rides, readiness, sourced science.
- Status
- Healthy
- Uptime
- 100.0% over the last 24 hours
- OAuth
- Works in Glama
- Last Tested
- Transport
- Streamable HTTP · MCP 2025-11-25
- URL
- ChatGPT
- –
- Claude
- BLOCKS
TDQS
Scored across 74 tools
Most tools target a distinct object+action and the long descriptions actively steer between near neighbours (plan_workouts vs copy_workouts vs save_workout; add_fact vs update_fact vs confirm_fact; set_activity_notes vs set_strength_notes vs set_workout_note). The weak spots are the four similarly named analysis tools (get_progression, get_interval_progression, get_strength_progression, get_response_profile) and the readiness quartet (get_context / get_readiness / get_readiness_today / get_readiness_baseline), where boundaries are only clear after reading a paragraph. With 74 tools, some residual misselection risk is unavoidable.
Names are uniformly snake_case with a leading verb (get_, list_, add_, set_, log_, update_, remove_, copy_, estimate_), and the noun identifies the resource. The few oddities (ride_with_gps_routes, copy_week) are still verb-first snake_case, so an agent can predict the shape of a name it has not seen.
74 tools is far beyond a well-scoped surface; even for a full coaching platform the sheer breadth (plan, activities, readiness, facts, knowledge base, strength, events, thresholds, blocks) means each description has to be an essay to stay usable. Many operations could be folded (e.g. the many log_*/set_*_notes variants, the four progression readers), and the context cost of this surface is high.
Coverage is exceptional: full lifecycle for plan entries (create, copy, edit single/bulk, remove), events (create/update/delete/notes/course), facts (add/confirm/update/retire/list), activities (read, series, notes, rename, correct, tag, RPE, lactate), plus readiness, metrics, strength logs, season blocks, week grades and a knowledge base. I can find no obvious workflow dead end an agent would hit.
Available Tools
74 toolsadd_block_progressAInspect
Add one line to a training block's PROGRESS — under the block's GOAL on its card in Blocks. Write it at the end of a review the athlete asked for (Review week, Analyze on a session, a block review) when what you reviewed moved, held or missed one of the goal's metrics (season.current.goal; a week review shows the reviewed week's block): one or two sentences in their language, the number against the goal («Порог 3×15′ на 250 Вт при sRPE 7 — 45′ из 60′»). Nothing that bears on the goal → write nothing. date = the reviewed week's Monday or the session's day; the line lands in the block holding that date. Reviewing the same week or session again replaces its line. Saves on return, no card.
Inputs: date (required), from (required), text (required).
add_checklistAInspect
Put a CHECKLIST on a calendar day, or ADD ITEMS to the one already there — a day note whose items the athlete ticks off in the calendar, desktop and phone. Use it when they want a list to work through, not advice to read: a race kit, the evening before a test or a race, a travel bag. Title + items; a list with the same title on that day is EXTENDED (ticks kept, duplicates skipped). Items are concrete things to do or take, a few words each — not advice, not training (that is plan_workouts). One day per call; it does not repeat. Saved on return, no card. Read it back in the day's notes: "[x] …" is ticked, "[ ] …" still open — say what is left instead of asking. You cannot tick for them.
Inputs: date (required), items (required), title (required), color.
add_factAInspect
Record ONE thing you now know about the athlete, with how long it is true. This is the assistant's memory: it is NOT a copy of the snapshot and NOT a training log. Three tests, all must pass — (1) it is not already handed to you every turn (age, weight, hours, available days, thresholds, zones, race dates, the plan, load, readiness, response_profile), (2) no tool computes it (get_metric_history, get_records, get_activity), (3) it outlives this session — the verdict on one workout goes on that workout with set_activity_notes.
AREA decides what survives when context is tight: "health" and "constraint" are never cut, "pattern" is the only capped area. Nuance goes in tags, which are free.
CONSTRAINTS include a fixed commitment on a day the profile calls free, another coach's remit, an injury to plan around, and EQUIPMENT — tagged equipment, recorded as what they actually own in their words, with a horizon like anything else (a gym membership is an until, a turbo in the hallway is often a season).
HORIZON is required and there is no "unknown": if you cannot say how long it holds, ASK before writing. "stands" = until they say otherwise. "until" + dueDate = it ends (a race, an arrangement); when the date passes the fact stops applying and its opposite does NOT start applying. "recheck" + dueDate = it does not become false, it becomes untrustworthy (a threshold, a blood value, weekly hours). "season" + seasonFrom/seasonTo = true only part of the year (months, may wrap: 11-03 is November to March). "pattern" = an observation; set confirmations as you see it again.
dueAction is the line between a date that becomes a CALENDAR item and a date that is merely a question. Set it only when the due date carries something the athlete DOES ("сдать ферритин", "перемерить порог 30-мин тестом") — that is proposed as a calendar entry on the date itself. Leave it empty for "ask whether this still holds": no calendar clutter for a conversation.
Silent when the athlete just told you the fact. A CARD when it carries a dueAction (it will put something in their calendar), when it is a pattern (that is your inference about them, not their words), or when it replaces a fact already on their page.
ONE IDEA, ONE LINE. If a live fact of the same area already says something like this, the call is HELD and you get those facts back with their ids: answer with new:true (genuinely different — both stay, and a different day, date, trip or measurement IS different however alike the wording), replaces:<id> (this supersedes it — the old one is retired as this is written), or confirms:<id> (literally the same thing — that fact is bumped and your line is discarded). Every fact in your snapshot already ends with its #id, so a pattern you see again is confirm_fact on that id, not a second add_fact.
Inputs: area (required), text (required), source (required), horizon (required), +10 more.
close_commitmentAInspect
Judge one of your own earlier instructions once the day it applied to has passed and the session is in the data: kept, missed, or dropped (you changed your mind, or it stopped being relevant). Say what actually happened in one line. An instruction nobody ever checks teaches the athlete that none of them matter — this is how you close that loop.
Inputs: id (required), status (required), verdict (required).
confirm_factAInspect
You saw a pattern happen again. Bumps its confirmations and stamps today, which is what makes it outrank weaker patterns when context is tight — and what stops it decaying out of the snapshot after six months unobserved. Silent, no card: counting an observation is not a claim about the athlete. Use it instead of writing the same pattern twice.
Inputs: id (required), note.
copy_weekAInspect
Copy a whole training week onto other weeks, weekday by weekday — Monday's work lands on Monday. from and each entry in to may be ANY date inside the week you mean; the week is taken from it. Day notes travel too, but only onto days that have none. This is the tool for «повтори прошлую неделю» and for repeating a base week next week — one call instead of a dozen plan_workouts items, and it reproduces the week exactly. Sessions are written two weeks out; weeks beyond hold their block's target, not a copy. It ADDS to the target weeks: days that already hold work keep it, so a week you mean to REPLACE has to be emptied first with remove_from_plan, day by day, which the athlete will see you do.
Inputs: to (required), from (required), why, withDayNotes.
copy_workoutsAInspect
Copy planned work from one day to other days — the athlete's own Copy/Paste, as a tool. Pass iid to copy ONE scheduled session (from get_plan), or omit it to copy everything planned on that day. Reach for this instead of re-writing the session with plan_workouts whenever they want the SAME thing again — a repeated Tuesday, last week's long ride, the gym session that worked: it carries the exact structure, the note, the context tags and the key star, and it invents nothing. The copies are independent entries — editing one later changes nothing else, and no series links them. A copy ADDS to the target day; to replace what is there, call remove_from_plan for that day first and say so.
Inputs: to (required), from (required), iid, why.
create_eventAInspect
Create an event the athlete is preparing for (race, key ride, FTP test) on their Blocks calendar. Use when the athlete describes one in chat. Requires name + date (YYYY-MM-DD). A stage race or a race weekend is ONE event: date = its first day, endDate = its last — never one event per day. Optional: description, location, map/event-page URLs, logistics notes, prep (coach) notes, priority, target, whether they have a confirmed slot and local start time (picks the forecast hours). The GPX route is added by the athlete in the app. Event-day weather is fetched automatically when within ~16 days. Returns the new event id (pass it to set_event_notes to add detailed prep).
Inputs: date (required), name (required), notes, sport, +12 more.
delete_eventADestructiveInspect
Delete an event from the athlete's calendar (it was cancelled or added by mistake). This removes the event AND its prep notes permanently — prefer update_event when only details changed.
Inputs: id (required).
edit_activityADestructiveInspect
Correct one completed activity when the recording got it wrong — its MEASURED numbers (jammed GPS, a dropped sensor, a computer left running) or the DAY it was filed on. Picking the mode is the whole job:
• create — the WHOLE session never recorded (no activity that day; the plan shows it missed) and the athlete knows its numbers ('бегал в понедельник 10 км за 52 минуты, часы не записали'). Pass id "new", date, sport (running / cycling / other), the TOTAL movingTime, and whatever else they said — distance, elevation, avgHr, maxHr, avgWatts, time, name; never estimate a number they did not give. list_activities for that day FIRST: if a recording is there, correct it instead. The row is marked entered by hand (one block, no trace, TSS only from pace or watts); revert removes it.
• extend — part of the session DIDN'T RECORD and the athlete says it was like the rest ('первые полчаса не записались, ехал так же'). Pass the new TOTAL movingTime in seconds. Volume scales, intensity is kept, and the personal bests stand. Pass distance too if they know the real total (their usual loop); otherwise it follows the duration.
• trim — the recording RAN ON after the session ended (the computer went into the car, the pocket, the walk home: 'после 1:45 запись шла в машине'). Pass endSec = the second of the recording it ended at, on the clock of get_activity_series rows — read it off the series (where the work stops), not off the athlete's watch. Everything after is cut and every number is read again from the record (work, NP, IF, TSS, zones, distance, the chart and the intervals); pass distance / elevation only if the athlete knows them better. Never correct for this.
• laps — the DISTANCE of particular laps was wrong and the athlete knows the real one: a treadmill or track run measured by a foot pod, a run power meter or the watch ('работы были по 1600 м', 'на дорожке 5×1000'). Pass laps = [{ n, m }]: n = the lap's number as the Laps table shows it (Lap 5 → 5; read them from get_activity), m = its real metres. Inside each named lap the record's distance is calibrated to those metres; time, heart rate, power and cadence stay as measured. Every lap's pace, % and zone, the total distance, pace zones, TSS, the detected intervals and the distance records are read again. Laps not named stay as measured unless the athlete says the same sensor was off throughout — then others: 'scale' gives them the named laps' factor; ask about the warm-up and the recoveries rather than assume. Never correct for this.
• correct — a recorded number is FALSE ('Страва посчитала 42 км, а я пробежал 10'). Pass the corrected absolute values; work and time-in-zone are what the stream measured and stay. Correcting the distance REMOVES this session's distance records — they were computed from the wrong track and the true splits can't be recovered — so tell the athlete that before they apply.
• move — the recording's CLOCK was wrong, not its numbers: the device filed the session on the wrong day or hour ('записалась на 22 сентября, а ехал сегодня'). Pass date, and time only if the start time was wrong too. Nothing measured changes and syncs won't move it back; Strava and intervals.icu keep their own date — say so.
• merge — ONE session that arrived as TWO activities (Zwift or a head unit restarted its recording, a watch saved mid-ride): 'объедини эти две'. Pass withId = the other half's id (both from list_activities, same sport, the second starting after the first ends, at most 3 h apart). The earlier one stays and absorbs the later (hidden): volume adds up, NP/IF/TSS recomputed, chart and intervals joined, note/RPE/tags carried. Three or more: merge two, then the result with the next. If the athlete ALSO says a stretch between them was not recorded, merge first, then extend the merged one.
• revert — undo earlier corrections, a move or a merge included, and put the provider's original back ('верни как было'); a merge comes apart again (the last one merged). No values needed.
All values are absolute NEW totals (seconds, metres), never deltas. You do NOT compute the consequences: the server recomputes them and the confirmation card shows every before→after — read it before saying what changes. Ask for whatever you're missing rather than guessing a number — and get_activity first, so you are correcting the real values. Once corrected, the session is the athlete's: syncs from Strava/intervals stop overwriting its measured fields, and it counts as corrected in the week, the load history and the Records tab.
Inputs: id (required), ask (required), mode (required), date, +14 more.
estimate_cdaARead-onlyInspect
Estimate the athlete's EFFECTIVE drag area (CdA, m²) from their own outdoor rides with power: flat, steady 45-90 s windows solved for air drag, median per ride, then over rides. Returns the estimate with its spread and how many rides fed it. Wind is unknown and group riding lowers it (race/group/indoor-tagged rides are excluded), so it is an estimate, not a measurement — say so. To use it for a race, propose setting it on the event (update_event cda) and only set it after the athlete agrees.
Inputs: days.
estimate_thresholdsARead-onlyInspect
Estimate the athlete's cycling FTP, LTHR and max HR from their ACTUAL synced rides over a window (default 90 days), by building the mean-maximal power curve from stored ride streams and fitting a Critical Power model on it. Returns recommended values, a CP range with the efforts behind it, W', a power-law fade estimate, and confidence with reasons — plus hrZones: whether the profile's HEART-RATE zones match the heart rate this athlete actually rides at the tops of their power zones, with bounds to propose when they do not. The check to run when heart rate sits under or over its zone on rides that felt right, or when they ask whether their heart-rate zones are correct. CYCLING ONLY — running threshold pace is NOT supported here, so for a runner use a recent race result or a 30-min field test instead. Asked to recompute an anchor from recent riding, call this and answer from what it returns: that request is what the tool is for, not a reason to send them to a test. The result carries a howToRead block — the estimates are FLOORS and confidence gates whether you may propose an update, so read it before you quote a single number.
Inputs: days, sport.
get_activityARead-onlyInspect
Read ONE completed activity in full detail: all stats (NP, IF, TSS, avg/max power & HR, cadence, elevation, kJ, sRPE/load), heart-rate drift at the same power (cycling only), under one of two names: decouplingPct with decouplingBasis for ONE sustained effort (Pw:Hr across its halves), or hr_drift_across_reps for a session with reps (effort 1 vs the last at the same watts — a direction, not a verdict: the <5% line belongs to decouplingPct and does not transfer). When neither is present, decouplingNote says why. work_reps lists each sustained rep in order with the power it was ridden at and its heart rate as hr (mean), hrStart, hrEnd and hrMax — this is the athlete's own heart-rate graph as numbers, so read it instead of asking them for a screenshot of one. Read the SHAPE, not the mean: a rep that climbs and settles and one that climbs and keeps climbing average the same, as do a rep the athlete eased off and one he did not. Rising hrEnd at unchanged watts across reps is drift; flat is an aerobically clean session whatever any percentage says. Also returned: the interval structure, the device LAP structure if the file had laps, and both notes (note = the athlete's, coachNote = your earlier read). WHICH structure to read the session by is stated by structure_read_by: when the athlete has set this session to Laps on the card, structure/blocks ARE the file's laps and the detection travels alongside as structure_auto_detected — read the version they are looking at and don't re-cut the session into intervals they rejected. Otherwise it is our detection, as structure_detected/blocks_detected, with any laps as structure_laps — and when both are present, NEVER report a prescribed element as not done, cut short, or skipped on the strength of its absence from the detection alone: the detection reads the trace and can miss real work, while the laps are the athlete's own thumb on the button, so check both and grade on the laps when they disagree. Each detected block carries its own CADENCE and TERRAIN — 92rpm and -62m/11.4km mean the block lost 62 m over 11.4 km, i.e. a descent. Read them before attributing a power drop to fatigue: falling watts at a high cadence on a losing gradient is a rider out of gears, not a tiring one, and terrain is shown only where the net change exceeds 10 m. Use the id from list_activities. This is how you analyze how a session was actually executed (interval powers, rep consistency) before writing a coach read or adjusting the plan. Returns BOTH zone splits when the file supports them: time_in_zone_min is the stored measure and time_in_zone_basis names which quantity it is (%FTP, %threshold pace, or %maxHR) — read it before comparing this session's zone minutes with another's, because the same key is not the same quantity across activities. Two more preconditions travel with their numbers: tss_basis says whether a run's rTSS was grade-adjusted or read off raw pace (no altitude in the file), and np_caveat appears when the ride is too short for a 30-second rolling average to be stable. hr_time_in_zone_min is the heart-rate split, which the stored column never holds for a run — use it to tell a real physiological excursion from pace running ahead of a stale threshold mark. Its ref field names the maxHR the percentages are taken from; when that says it is a default rather than the athlete's measured maximum, say so instead of quoting the zones as precise. description is what the athlete (or the app that recorded the session) wrote on Strava / intervals.icu — on a gym session pushed from an app like Motra it holds every exercise, set, rep and weight, and since such a file carries neither power nor distance it is not a remark ABOUT the session, it IS the session: read it as the content and grade against it. list_activities flags its presence as hasDescription.
Inputs: id (required).
get_activity_seriesARead-onlyInspect
The ride's own CHART as a table: time-bucketed average power, heart rate, cadence and altitude across a completed activity, as CSV. This is what the app draws in the activity card, in numbers. Call it when a summary is not enough and you need to SEE the session — where heart rate crossed a level, whether it plateaued inside a rep or kept climbing, what a valley actually looked like, where the terrain turned. Buckets are chosen so any ride comes back near 150 rows. To ZOOM into one rep or one climb, pass fromSec/toSec (seconds on the moving clock — the same clock as a block's start in get_activity and a lactate sample's t) with a small bucketSec; a fine bucket over the whole ride is widened to fit ~300 rows and the header says so. Prefer this over asking the athlete for a screenshot of their own graph: they are reading the same data you can, less precisely.
Inputs: id (required), toSec, fromSec, bucketSec.
get_athlete_fileARead-onlyInspect
Everything you know about this athlete, rendered as one document — the same content the athlete reads on their Profile page under "What I know about you". Kept for readers that want it in one piece; list_facts is the structured form and the one to use when you need ids, states or a single area. The grade block (sport / level / populations) is machine-read and scopes every knowledge-base search.
Inputs: no named parameters.
get_athlete_profileARead-onlyInspect
Read the athlete's profile: FTP, threshold pace, max/threshold HR, the resolved zone model, AND the athlete block (age, sex, height, weight, W/kg, weekly training hours, available weekdays, experience level, long day, kit, session likes/dislikes) plus intake (the interview blocks still open, and the health limits to respect) — use those to right-size volume, ramps and fuelling. effective shows the bounds the app actually uses (auto presets resolved) plus absolute watt/pace/HR targets per zone and the athlete block; raw is the stored profile incl. the auto/manual flags you'd pass to update_athlete_profile.
Inputs: no named parameters.
get_catalog_workoutARead-onlyInspect
Read the full block structure of one workout by id — catalog, collection or the athlete's own library (to inspect before scheduling or adapting).
Inputs: id (required).
get_contextARead-onlyInspect
THE WHOLE PICTURE IN ONE CALL — start a conversation with this. Returns the athlete's date and weekday (so you do not also need get_today), then everything the Blocks app itself puts in front of its own assistant on every turn: the plan from yesterday to +7 days with a done / NOT-done verdict ALREADY COMPUTED per planned session, today's readiness with its baselines and confounders, thresholds and the resolved zone tops (watts, pace and bpm, so you never compute one), recent activities with the athlete's own notes, 14 days of planned-vs-done, 12 weeks of weekly load, upcoming events, what their own twelve weeks say about how they respond, the facts they have recorded, what either assistant changed in their plan lately and why (recent_plan_changes), and their last few exchanges with the in-app Blocks assistant — continue from those instead of starting over. Pass question — the athlete's own words, in any language — and the knowledge base is ALSO searched for you before you answer, so the evidence is in your hands without you having to guess the right query; it does not answer the question, it only decides what to retrieve, and without question nothing is searched. WHEN TO CALL: as the first tool call of a conversation, and again only after a long gap or when the athlete says something has changed since (a ride synced, a check-in logged, a threshold set). A second call in the same conversation almost always returns what you are already holding — use get_plan, list_activities, get_readiness_today, list_facts or search_knowledge for the one thing it did not cover. Read-only: it writes nothing.
Inputs: question.
get_event_courseARead-onlyInspect
Read an event's race course the way the event card's Course tab does, computed in code against the athlete's FTP, weight and the event's CdA: finish time (solo physics), NP/TSS, power plan per climb (watts, W/kg, minutes, seconds saved by +10 W), climbs and descents with category, surface split (OSM), race-hour wind from the forecast, and derived key moments (hardest/last climb, technical descent, crosswind, feeds). Use it for 'разбери трассу', pacing a race, which climb decides it. Use ITS numbers — do not redo the physics. Needs the event id from list_events and a GPX on the event.
Inputs: id (required), ifTarget.
get_fatigue_testsARead-onlyInspect
The athlete's SFT (fatigue test) log — the fixed load in the warm-up (profile fatigueTest / fatigueTestRun): the tests the app found in their rides and runs plus the ones written by hand (log_sft_answers). Per test: load, last-minute HR vs their baseline, HR drop after, their answers, check-in. Lower HR also means FATIGUE when it felt harder — follow howToRead. With no test set up (or suggest:true) it proposes the protocol's load. sport picks bike or run; weeks looks back (default 12).
Inputs: sec, sport, weeks, suggest.
get_interval_progressionARead-onlyInspect
The same rep family across sessions — the interval ledger. Families are what an athlete would say: 3′ @ threshold, 30″ @ vo2, 20′ @ threshold (a sustained effort is a set of one), read by DURATION for rides and runs alike so a planned 1 km rep and its execution land in one family. Per session, newest first: reps × the watts they were ridden at (or pace where the file had metres) and the % of threshold at import (of max HR in a family "… by HR": never set against watts or pace), heart rate over the first rep against the last (HR a→b — the drift, from the stream), the sRPE they gave the session, the lactate they logged, and what they wrote. THIS IS WHERE A TARGET COMES FROM: before writing watts, a pace or a % into a rep session, read interval_progression in the snapshot (the families the week ahead needs, the last three each) or this for the longer arc and every family. The same watts at a lower sRPE is the athlete getting fitter (heart rate counts only on reps of 4+ min at or below threshold; bike threshold reps: 8+ min); more watts at sRPE 9 is not a step up. Arithmetic over stored structure, nothing to cite. family is a substring of the label ("3′", "threshold"); zone filters; weeks looks back (default 12, max 52).
Inputs: zone, weeks, family, sessions.
get_knowledgeARead-onlyInspect
Read an entry by refId (REF-001 / SYNTH-04). Default returns a COMPACT DIGEST (key findings + practical application + limitations) — usually all you need beyond the search card. Pass section for one specific part (e.g. 'Protocol', 'Mechanism', 'Cross-References') when you need depth. Prefer answering from the search card first; only call this when the card is insufficient. Cite refId + level, and the DOI only if the reader asks for the source itself or can click it; weight advice by evidence level.
Inputs: refId (required), section.
get_load_summaryARead-onlyInspect
sRPE training load (Foster AU = sRPE × minutes) summed per day and per ISO week for a date range, from activities that have sRPE logged. Complements TSS: use it to reason about total load including non-metered sports, monotony and ramp.
Inputs: to (required), from (required).
get_metric_historyARead-onlyInspect
The HISTORY of a measured number — FTP, threshold pace, LTHR, max HR, weight, body fat, VO2max, MAP, LT1/LT2, lactate, ferritin, haemoglobin, RHR, HRV. The profile carries the CURRENT value and only that (it is overwritten in place), so this is the only way to answer "is it moving": weight trend, FTP across a season, LT2 between two lab tests, a falling ferritin. Rows carry source — profile | lab | field-test | estimate | self-report — and a lab number and a field estimate are NOT the same measurement twice: say which you are comparing. Deliberately not in the turn snapshot; call it when the question is about a trend, not about today.
Inputs: to, from, kinds, limit.
get_planARead-onlyInspect
Read what is already scheduled on the athlete's calendar in a date range (so you don't double-book and can balance weekly load). Returns days — only days that hold a session or a note — each with its planned workouts (iid, title, sport, zone, duration + TSS; a gym session carries its content instead, a swim its metres; goal — the one line under its name saying why it exists; any note; fuel — the carbohydrate the athlete sees on the session's card, computed by the app; target — what a ride or run is held to on the device, power/pace/hr/rpe, targetDefault when that is their profile's and not the session's own; judge_by where the signal it is judged in differs, none = nothing readable: no number) and the day's own notes, plus monthlyTss (planned TSS per calendar month). Both dates are optional and inclusive; an omitted one is unbounded, so a call with neither returns the whole calendar, past and future. key:true marks a KEY session — the one the week is built around, declared in advance (see plan_workouts). Pass structure:true to also get each workout's full interval structure (compact, e.g. "6' @55% + 3×(12' @90% / 4' @55%)"); for raw blocks of ONE entry use get_plan_workout.
Inputs: endDate, startDate, structure.
get_plan_workoutARead-onlyInspect
Read ONE scheduled workout in full detail: compact interval structure, raw blocks (zones, %intensities, durations, labels, cadence), totals, notes, target (what it is held to on the device; targetDefault = their profile's), control (the signal to judge it in — see control_signal) and fuel — the carbohydrate the athlete sees on the card: grams for the WHOLE session (the app's formula from the base's per-duration rows, raised when hard work follows, or your own number if you set one) and, when the next hard session is close, what to eat straight after. Use the iid from get_plan / the athlete snapshot. This is how you inspect exactly what the athlete is supposed to do before advising on or editing a session.
Inputs: iid (required), date (required).
get_progressionARead-onlyInspect
Whether the athlete's BLOCK is progressing or repeating, per quality family (tempo/threshold/vo2/sprint), read off their own calendar: the shape prescribed each week, the working minutes behind it, and whether any axis moved — duration, density or intensity. Names the case where only the target climbed on an unchanged shape, which looks like progress and is not. Arithmetic over the plan, so nothing here needs a citation. It reads the prescription AND what was executed (time at the family's zone or harder, from the synced activities), and reports the two separately — including the case where the plan grew and the work did not arrive, and the case where the athlete is outrunning a flat plan. Silent below three weeks of history, and easy families are deliberately never reported (repeating the same endurance ride weekly is correct training).
Inputs: no named parameters.
get_readinessARead-onlyInspect
Raw readiness entries for a date range (subjective + confounders + manual objective values per day), plus per-metric aggregates anchored at the range end. Use for trend review ('how has the athlete slept the last two weeks?'), before/after a training block, or to check what history exists before backfilling with log_readiness.
Inputs: to (required), from (required).
get_readiness_baselineARead-onlyInspect
The athlete's current per-metric baselines (7d/28d mean, 28d SD, rolling-3d, sample size) — their personal 'normal' for every readiness metric. Compare today's values against THESE, never against population absolutes.
Inputs: no named parameters.
get_readiness_todayBRead-onlyInspect
The athlete's readiness picture for one morning: today's entry (subjective 1-5, 5 = best on every item; PRS 0-10; confounder flags; any manual objective values) PLUS per-metric aggregates from their own history — baseline7d, baseline28d (personal normal), sd28d, zToday, rolling3d, deltaVsBaseline, n28 (datapoints in the window). Blocks computes NO verdict. House line, the one the check-in shows the athlete: a subjective item, PRS, RHR, HRV or total sleep is off their normal at |zToday| ≥ 0.9 with n28 ≥ 7 (fewer: no normal yet); house rule: a 1-5 item is read from its habitual answer h = round(baseline28d): one morning also needs |today − h| > 1. One morning is a reading; a shift that persists (persist3d, set only then: rolling3d past the same line, 2+ of the last 3 mornings all on that side — of h, on a 1-5 item) is what moves a plan. Sleep stages are no baseline signal. Weigh confounders first. date defaults to the athlete's today.
Inputs: date.
get_recordsARead-onlyInspect
The athlete's BESTS, for one sport, in two windows at once: the last 90 days and all time. Cycling returns best average watts over 18 windows (5s…3h); running returns the fastest time over 12 distances (400m…50km) with the pace. Each row names the session it came from, and a 90-day row is marked either as still being the all-time best or with how far short it fell — that gap is the honest read on current form, far better than an absolute number. Use it to anchor threshold estimates in real efforts, to spot a decayed top end (short windows down, long ones intact), to size interval targets off what the athlete has actually held, and to tell a genuine PR from a good day. Bests come from the full-resolution stream at import, so they match what the athlete's head unit reported. pending > 0 means some older sessions haven't been scored yet (they get scored a few per sync) — say so rather than calling a number final. ALSO RETURNS THE THREE READINGS THE RECORDS PAGE SHOWS THE ATHLETE, off these same peaks, so you and the page can never quote different numbers: threshold (cp lo-hi + the anchor efforts), battery (W') and fade (the power law) — the three the athlete sees side by side on that page. The result carries the same howToRead block as estimate_thresholds; follow it.
Inputs: sport (required).
get_response_profileARead-onlyInspect
How THIS athlete actually responds, computed from their own last 12 weeks: whether quality sessions land where they are aimed, whether their sRPE separates hard days from easy ones, whether low morning readiness has actually predicted a poor session, and which weekday the plan leaks on. Arithmetic over their own history — no literature, so nothing here needs a citation and nothing can be out of scope. Silent where the sample is too small; an empty answer means there is genuinely nothing to say yet.
Inputs: no named parameters.
get_seasonARead-onlyInspect
The athlete's YEAR, by weeks — what the calendar's Season view shows (docs/FEATURE-season.md): every ISO week with its letter (their week review, else the code's grade), hours done and planned, the key sessions done / missed / ahead, the race of that week, and the TRAINING BLOCKS laid over them (name, kind, the stimulus that colours it, the lever, week targets). Read it before you plan beyond the next two weeks or when they ask how their season looks: plan the season in blocks first (set_training_blocks), write sessions only into the next two weeks, and give the weeks after them a TARGET in their block (an hours corridor and what the key sessions are for) — never sessions months ahead. Read-only.
Inputs: year.
get_strength_logARead-onlyInspect
What the athlete actually DID in a planned gym session — set by set — and what they changed in the plan before starting it. A strength session has no TSS and no duration, so this is the only record of how it went: sets done against sets prescribed, load and reps per set, the RPE they were actually taken at, and the athlete's reason when something diverged. TWO LAYERS, and they answer different questions: amended before the session is a DECISION taken in advance (by the athlete, or by you — the line says which), while a set line is what the body did on the day. An athlete who drops the load every Monday morning and one who fails the last set every Monday need opposite advice. Read this before prescribing the next gym session, and before judging whether the last one was completed — the calendar alone cannot tell you.
Inputs: to, from.
get_strength_progressionARead-onlyInspect
The lift history, one exercise across sessions: all logged exercises or the one you name (substring of their own names — "присед" finds both squats), newest first: heaviest set done (kg×reps; s or m for timed/distance; bw = bodyweight), sets done/planned, RPE vs target, the plan where it differed, what they wrote. Each line carries the days since the previous session, the header how long ago the last one was and how often in 4/12 wk; 14+ days is marked BREAK — the next load is then a return, not a step up. A WEIGHT COMES FROM HERE: read it before writing a kg (the snapshot's strength_progression has the last three for exercises in view; this has a year). Then, house practice: one name, unit and rep range for the block; one axis moved and named; over target or unfinished = the same load; a planned hold is not a stall. Names that may be one movement close the list: ask, then link_exercises. Arithmetic over the log, nothing to cite.
Inputs: exercise, sessions.
get_todayARead-onlyInspect
Today's date on the athlete's Blocks account, in their own time zone: ISO date, weekday, and ISO week. Call this to anchor any relative reasoning — 'today', 'tomorrow', 'this week', 'the weekend', 'in 3 days' — and to pass the correct date to other tools. zone names the time zone the date is in; when it says UTC their zone is unknown — if it may already be a different calendar day for them, say so and confirm rather than assume.
Inputs: no named parameters.
get_week_gradeARead-onlyInspect
The code's grade of one finished training week (docs/FEATURE-week-grade.md): four axes — key sessions (done × their reviews' quality), intensity AGAINST THE WEEK'S OWN PLAN (never a norm like 80/20), volume, and the athlete's response against their own normal (the readiness light's mornings, the hard sessions' sRPE) — a base letter A–D, and the BOUNDS: floor and ceiling are the letters you may not go past, with why. Read-only. Call it when the athlete asks to review a week. A week is graded from its Sunday, never before: an unfinished week answers open:false. Default week: the last one that ended (today's on a Sunday).
Inputs: date.
link_exercisesAInspect
Join the lift histories of one movement logged under two names (a rename starts a history over). ONLY after the athlete confirmed it is the same exercise. names continue as; unlink separates. Saves on return.
Inputs: as (required), names (required), unlink.
list_activitiesARead-onlyInspect
List the athlete's recent COMPLETED activities (actual rides/runs/etc. synced from every connected provider — Strava, intervals.icu and the rest — deduplicated at sync) with id, date, start/end (HH:MM, the athlete's local clock), sport, name, duration, distance, TSS, IF, NP, avg/max power & HR, kJ, elevation, meaningful-effort count (sustained work efforts, not raw segments), and any existing notes. Use this to find an activity id before writing a summary with set_activity_notes, and to base that summary on the real numbers. Defaults to the 30 most RECENT activities — a row count, not a date window, so for a three-a-week athlete that is ten weeks and for a daily one it is a month. Whenever the answer depends on how much time a stretch covers — a ramp, a stall, consistency, a block review — pass explicit from/to and read the dates you get back. On a row, coachNote is the VERDICT line of your own earlier review of that session (an excerpt — coachNoteChars is the full length; get_activity returns it whole) and note is the athlete's words, cut at 300 characters.
Inputs: to, from, limit.
list_commitmentsARead-onlyInspect
Everything you have already asked THIS athlete to do that is still open — your own instructions from earlier turns, with ids. The open ones already ride in the snapshot; call this to see closed ones too, or to check what you told them about a specific date before you say it again.
Inputs: limit, status.
list_eventsARead-onlyInspect
List the athlete's events (races, key rides, FTP tests, camps they're preparing for) with id, date, name, location, map + event-page URLs, route distance/elevation, the athlete's logistics notes, and the current coach notes. A multi-day event (stage race, race weekend) carries endDate (its last day) and days: date is its first day, the whole span is ONE race — the taper ends before its first day, no sessions on its days. registered: true = they have a CONFIRMED slot (not a lottery entry, not a waitlist); absent = not said, which is no reason to chase them about registering. Use this to find an event id before writing fueling/pacing guidance with set_event_notes. Defaults to upcoming events, including one under way.
Inputs: includePast.
list_factsARead-onlyInspect
Everything you know about this athlete, as separate facts with how long each is true. The ACTIVE ones already ride in every turn's snapshot — call this when you need the rest: what has lapsed, what is asleep out of season, retired history, or a specific area in full. Each fact carries state: live (applies now) · lapsed (an until whose date has passed — it stops applying, and its OPPOSITE does not start applying: ask before taking the freed space) · stale (a recheck come due, or a pattern nobody has seen in half a year — still the best we have, no longer trustworthy) · asleep (a seasonal rule outside its window: the plan simply stops obeying it, this is not a question) · retired (someone decided it was done).
Inputs: tag, area, state.
list_sectionsARead-onlyInspect
List all knowledge-base sections with entry counts (the topic map).
Inputs: no named parameters.
log_lactateAInspect
Record the athlete's blood-lactate samples on a completed activity (their own meter readings — e.g. "lactate was 3.4 after the second rep"). Each sample: t = seconds into the session on the MOVING clock (estimate from the interval structure if the athlete says "after rep 2"), mmol = the reading. Appends to existing samples by default; replace:true overwrites the whole set. The samples appear as markers on the activity chart, and get_activity returns them for your session analysis. Store raw values only — put your interpretation in set_activity_notes, not here.
Inputs: samples (required), activity_id (required), replace.
log_metricAInspect
Record a MEASUREMENT with its date — a lab test (LT1, LT2, MAP, VO2max, a lactate draw), a blood panel (ferritin, haemoglobin), a weigh-in, a field-test result. One call takes several rows, so a whole lab report lands as one card. This is history, not the profile: it does NOT change what the app plans against — if the test says the threshold moved, propose update_athlete_profile as well and say so. An FTP row DOES change how PAST rides are scored: every power ride from its date to the next FTP row is re-read against it (IF, TSS, zones), and the change shows on the calendar — so when they tell you what their FTP was back then, log it on THAT date (source self-report). Date the MEASUREMENT, never today-because-that-is-when-they-told-you. note is where the test came from ("Trisystems СПб, step test to exhaustion"), never an interpretation of the athlete.
Inputs: items (required).
log_readinessAInspect
Record the athlete's daily readiness — one entry per date, idempotent MERGE-upsert: only the fields you send are updated, existing fields survive. Accepts a BATCH (up to 90 items) so you can backfill history from an export (e.g. months of HRV/RHR/sleep) in a few calls. Subjective core (McLean 1-5, 5=best: fatigue — asked and read back as ENERGY, 1 drained … 5 fresh, never call it fatigue to the athlete — sleep_quality, soreness, stress, mood) + prs (0-10) is the primary signal; objective fields (rhr bpm, hrv_rmssd ms, hrv_sdnn ms, sleep_total_min, deep_sleep_min) are optional manual values from the athlete's wearable. hrv_sdnn is HRV as SDNN (what an Apple Watch reports) — its own field, never put an SDNN value in hrv_rmssd or the reverse. Confounder flags (late_meal, alcohol, hookah, smoking, life_stress, illness, injury, poor_sleep_external, small_child, travel, underfuelled, long_day, heat, meds) record WHY a day might look off; small_child = a small child broke the night, a known cause outside training — never read that night as overreaching. Record them as ticked; never fold a confounder into the numbers themselves. Values are range-checked (e.g. rhr 25-110) so a typo can't poison the baselines.
Inputs: items (required).
log_rpe_marksAInspect
Write the athlete's EFFORT MARKS on a completed activity: RPE 1-10 at a moment of the session ("the second rep was a 7, not a 9", "I tapped 9 by mistake on the test, it was a 6"). Each mark: t = seconds into the session on the MOVING clock (the clock of get_activity's blocks and effort_marks), v = RPE, step = what it was ("Threshold 2/4", optional). get_activity returns the current marks as effort_marks. Pass the WHOLE corrected set with replace:true to change or remove a mark; without replace the marks are added. The athlete can also add, drag and edit them themselves in the activity card's RPE tab. Not the session RPE (that is log_session_rpe) and not the fatigue test's answers (log_sft_answers). Saves on return.
Inputs: marks (required), activity_id (required), replace.
log_session_rpeAInspect
Attach the athlete's session RPE (the app's 1-10 scale, Foster's session-RPE, ~30 min after) to a completed activity from list_activities. Blocks computes load_au = sRPE × duration_min (Foster). Works for ANY sport including gym/tennis where there's no power meter — it's the universal load currency alongside TSS.
Inputs: srpe (required), activity_id (required).
log_sft_answersAInspect
Write to the athlete's fatigue-test (SFT) log, read by get_fatigue_tests: their answers, merged with what is there. When the app did not find the test (treadmill, another device), pass hr as they read it — it is recorded by hand and wins over the file's. Name the session by activity_id, or date + sport. Saves on return, no card.
Inputs: hr, hrr, rpe, date, +4 more.
log_strength_setsAInspect
RECORD the sets of a gym session the athlete tells you they DID ("присед 100×5, 100×5"), between sets or after, into the gym log the card shows. That day's gym session gets them (iid if several); an exercise not on it is added. No gym session that day → a new one named title in their language. Pass ONLY sets not logged yet: they are appended; replace rewrites an exercise's sets. kg: val weight (0 = body weight) + reps; sec: val seconds; m: val metres, load kg, time seconds. Their exercise names. finished when they say they are done; srpe 1–10; note their words.
Inputs: date (required), iid, note, srpe, +3 more.
plan_workoutsAInspect
Add one or more workouts to the athlete's training calendar (the days appear in Blocks). WORKFLOW per day: prefer an existing workout and pass its id as workoutId — from the catalog map already in your context if you have one, otherwise via search_catalog. Only when nothing suitable exists, pass a custom workout (validated server-side; also saved to the athlete's library). Optionally attach a short note per item, and set key:true on the one or two sessions the week is built around (you may set at most 3 per week yourself — the athlete has no such limit — declare them FIRST and fill the rest of the week around them, which is also the order a week is planned in). Batch this week and the next in one call — sessions are written two weeks out, and every week beyond holds its training block's TARGET (set_training_blocks), not sessions: the 40-item cap is a ceiling, not a target, and a call too long to finish is cut by the length limit and saves nothing. For a longer horizon lay the season out in blocks (set_training_blocks) with week targets, and put only the next two weeks in sessions. Returns per-item result with the new iid, duration and TSS.
Inputs: items (required), why, noteEdits.
remove_from_planADestructiveInspect
Remove planned work from the calendar: one scheduled workout on date (by iid from get_plan), or every planned workout on that day when iid is omitted. Touches planned entries only — completed activities and the day's notes stay. There is no undo: putting a session back is plan_workouts or copy_workouts. Returns how many entries were removed, or says nothing was planned that day.
Inputs: date (required), iid, why, noteEdits.
rename_activityADestructiveInspect
Give one completed activity the athlete's own title, e.g. 'FTP test' or 'Гонка Царь Грейдер'. Pass an empty string to clear it and fall back to the name the provider gave. This does NOT touch the source: the provider's own name is kept separately and rewritten on every sync, so a rename here survives Sync now. Use it when the athlete asks for a rename, or tells you what a generically named session ('Ride') actually was; a session you merely read as something else keeps its name.
Inputs: id (required), title (required).
retire_factADestructiveInspect
This is no longer true, or never was. Always a card: retiring is how the athlete's own words leave their page, and they get to see it go. The fact is kept and marked retired rather than deleted — a retired fact is out of your context and still visible to them, because "we stopped believing it" is not "it never happened". A LAPSED fact is NOT automatically retired: its date passing means you no longer know, so ask first.
Inputs: id (required), reason (required).
ride_with_gps_routesAInspect
The athlete's saved Ride with GPS routes (only once they connected Ride with GPS in Connections). Without routeId: lists them — id, name, km, climbing, last edited. With routeId + eventId (from list_events): puts that route on the event as its course GPX, the same as an upload, so get_event_course reads it. Attach only the route the athlete picked; an event that already has a GPX is replaced only with replace:true after they agree.
Inputs: query, eventId, replace, routeId.
save_workoutAInspect
Save a workout to the athlete's library (My workouts) WITHOUT putting it on the calendar: a variation of a session for later, a template they asked to keep. Writes a card the athlete applies. To copy one with a change, read it first and pass the whole workout with the change made, under its own title. Put it on a day later with plan_workouts + its workoutId. For a session on a day use plan_workouts: a custom workout there lands in the library too, and stays there when it is taken off the calendar.
Inputs: workout (required), notes.
search_catalogARead-onlyInspect
Search workouts: the Blocks catalog, coach collections AND the athlete's own saved workouts (source: mine). Reuse an existing workout before inventing one — this is how you find it by keyword, by a rep interior, or among the athlete's own saved workouts, which are deliberately not in the catalog map. Filter by sport, target zone, and a duration window; returns id, title, zone, duration, TSS, IF, source. Pass a returned id to plan_workouts as workoutId.
Inputs: zone, limit, query, sport, +2 more.
search_knowledgeARead-onlyInspect
Search the curated endurance-science knowledge base (studies + syntheses on physiology, training, nutrition, recovery, heat, women's health, strength, masters, injury, etc.). Returns ranked COMPACT CARDS — each is refId · title · evidence level · athlete Tier · sport · DOI · ▶ actionable bottom-line, plus finding (what the study measured) and, on a framework, decision (its rule) — usually enough to answer AND cite directly. Call get_knowledge(refId) only when you need the full protocol/mechanism/limitations of a specific entry (optionally get_knowledge(refId, section) for just one part). Cite an entry by refId + level; give the DOI only when the reader asks for the source itself, or when you are writing somewhere they can click it.
Inputs: query (required), tag, limit, sport, +2 more.
set_activity_notesADestructiveInspect
Write a coach summary / opinion on one completed activity — the athlete sees it in the activity card in Blocks (labelled “Coach read”). Pass the activity id from list_activities. By default it REPLACES the coach note; pass append:true to add. Optionally set a post-session grade (A..E) for how the session was EXECUTED vs the plan — it shows as a colored badge on the ride card (A=nailed it, B=solid/minor deviations, C=partial/mixed, D=undercooked/well off target, E=missed/abandoned; a smart bail on a genuine bad day is NOT automatically E — grade the execution + judgement, not the athlete). Ground the read in the real numbers (duration, TSS, IF, NP, HR, zones, intervals from list_activities/get_activity), the athlete profile and the knowledge base — concrete and useful, not generic praise. Markdown renders in the app — keep it airy: a few short ## sub-headings with normal-weight prose (or short - bullets), **bold** only on a key number or the verdict, and don't restate the ride name or the grade (they're shown separately above the note and as a badge). Separate from the athlete's own note.
Inputs: id (required), notes (required), grade, append.
set_day_marksADestructiveInspect
Mark calendar DAYS as "not training" (a trip, an illness, an injury — the calendar hatches them, a session planned there is not a miss, and you must not plan there), or paint them with one of five colours the athlete uses for their own meaning. Takes a run of days. Saves at once, like a note; to say WHY they are off, add a day note too. Clear with off:false / color:"none".
Inputs: from (required), to, off, color.
set_day_noteADestructiveInspect
Pass replaces (the start of ONE of YOUR OWN notes on that day — they come back with by:"ai") to rewrite that one note with note, or remove it with an empty note; the athlete's notes are never touched. Otherwise: ADD a SHORT note to a calendar day — a few words capturing the key thought (e.g. "easy week, watch sleep"), NOT an essay. A day holds SEVERAL notes; this appends one and never touches the athlete's own notes on that day. Max 1000 chars, but keep yours brief; the athlete uses the long form for their own impressions of the day. For a LIST they will tick off (race kit, the evening before a test) use add_checklist, not this. Pass an empty string to clear ALL notes on that day. Optional colour tags the note — the athlete assigns the meaning of each colour themselves, so only set it when they've told you what a colour means, or reuse a colour already on that day.
Inputs: date (required), note (required), color, replaces.
set_event_notesADestructiveInspect
Write the EXTENDED prep notes on one event (fueling, hydration, pacing, taper, kit, strategy). This fills the event's coach-notes section in Blocks. Pass the event id from list_events. By default it REPLACES the coach notes; pass append:true to add to them. Base fueling/pacing on the route distance/elevation + the athlete profile + the knowledge base, and keep it concrete (carbs g/h, fluid, sodium, caffeine timing, power targets). Markdown is fine.
Inputs: id (required), notes (required), append.
set_strength_notesADestructiveInspect
Write your read of one LOGGED gym session and grade it — the athlete sees both on the session card, where a ride carries its coach read and badge. A gym session usually has no activity row, so set_activity_notes cannot reach it. Name it by date (plus title when two were logged that day); REPLACES the read unless append:true. grade A..E is how it was EXECUTED against the plan — A every set as prescribed, B minor drift, C partly off, D well off, E missed or abandoned; dropping the load on a bad day and finishing is judgement, not an E. Grade the execution, never the athlete. Read get_strength_log and get_strength_progression first — a read that could have been written without opening the log is not worth its cost. Markdown renders; don't restate the title or the grade. On an Analyze-button turn the app saves your REPLY as the read — don't call this there.
Inputs: date (required), notes (required), grade, title, +1 more.
set_training_blocksADestructiveInspect
Lay out the season in TRAINING BLOCKS — the coloured bars over the weeks in the calendar's Season view. A CARD: nothing is written until the athlete applies it. Each block is whole weeks (start a Monday, end a Sunday, at most 16 weeks) with ONE purpose: name in the athlete's language says what it is for («МПК: поднять потолок», «Подводка к Jais»), kind is its phase, stimulus the zone it is built on (it colours the block: vo2, threshold, tempo, endurance, recovery), lever the thesis in one sentence, goal how you will know it worked: 2–4 short lines, one metric each, in words a person says aloud — what we want by the block's end and where it stands now («Порог на вело: 2×20′ на 245 Вт с RPE до 7 — сейчас 36′ в работе»; a race block by its RPE, a taper by the race-morning check-in); no dates for every step and no scales in brackets — the steps live in the week targets. The block card shows it; your reviews add progress under it (add_block_progress). Give the weeks beyond the next two a TARGET instead of sessions: weeks: [{ monday, hours: [low, high], keys: [each key session's purpose and step — the block's ladder] }]. The card replaces every block of theirs that overlaps its span, so send the whole chain you mean for those dates. Build from the A race backwards; a taper before it, a recovery or transition after. With an A race, send its PREPARATION BRIEF in the same card — prep; the blocks follow from it. To change only the brief, send prep without blocks. Call get_season first.
Inputs: prep, blocks.
set_week_gradeADestructiveInspect
Keep YOUR letter for a finished week, at the end of a week review (after get_week_grade): the letter the athlete sees on the week in Blocks, with a one-sentence verdict and two or three sentences under it. The letter is held inside the code's bounds — floor..ceiling, at most one step from the code's grade — and a move off the code's grade needs why (one sentence: an illness the check-ins show, a session swapped on purpose); without it the code's letter is kept. The result says the letter that was kept. Saves on return, no card; reviewing the week again replaces it.
Inputs: date (required), letter (required), verdict (required), why, +1 more.
set_workout_noteADestructiveInspect
Write the note on one scheduled workout (iid from get_plan / plan_workouts) — the session's brief the athlete reads on its card: how to ride it, fuelling, constraints (e.g. "key session, commit" or "legs flat — cut a set"). Up to 500 chars, keep it tight; what belongs to this session goes HERE, not into a day note. Empty string clears it.
Inputs: iid (required), date (required), note (required).
tag_activityAInspect
Set CONTEXT tags on one completed activity (full-array write; empty array clears). Tags describe how the session should be READ, not what it contained: workout (a plain training session — read it against the plan), heat (hot conditions — HR inflated, output depressed, expected), altitude (ridden high — hypoxic shift, lower power is normal), indoor (turbo trainer, treadmill or a virtual platform — still air means HR climbs through the session at unchanged power, so drift is expected and is not a fitness signal; speed, distance and pace are the platform's invention, so judge power, HR and RPE and never km or min/km, and never compare them with outdoor numbers), race (max effort by design — grade vs the race goal, not the plan), test (FTP/lactate/field test — peak efforts deliberate; consider estimate_thresholds after), group (group ride — surging, structure deviations expected), commute (transport volume, not training intent), offroad (a run on trail, park or dirt — its pace is the terrain's: judge HR, RPE and time, never compare its min/km with a road run), openwater (a swim in a lake, the sea or a river — no walls or push-offs, sighting, current and waves, maybe a wetsuit, GPS metres: never compare its pace per 100 m with a pool swim or read it against the CSS; judge time, RPE and feel; a swim without it was in a pool). Use when the athlete tells you the context ('вчера была жара', 'это была гонка') or when you infer it and they confirm. Immediate write — the tag chips appear on the activity card.
Inputs: id (required), tags (required).
update_athlete_fileADestructiveInspect
Set the athlete's GRADE — the machine-read classification that scopes every knowledge-base search: - sport: <primary>[, others], - level: recreational|trained|competitive|elite, - populations: <any of female-health, masters, youth, para — or —>. That is ALL this tool writes now.
Everything the assistant remembers about the athlete moved to separate facts on 2026-08-24 (add_fact / update_fact / confirm_fact / retire_fact), because a fact needs a horizon and free prose cannot carry one: three cancelled-race sections went on steering plans for a month. Grade is the exception on purpose — a classification has no expiry date, so it is the one thing left here.
Inputs: content (required), mode, section.
update_athlete_profileADestructiveInspect
Edit the athlete's profile — FTP (watts), running threshold pace, max/threshold HR, power/pace/HR zone boundaries, AND the about-you fields (birthdate, sex, heightCm, weightKg, weeklyHours, availableDays 0=Mon..6=Sun, experience). Every field is OPTIONAL: pass only what changes; everything else is preserved (safe partial update). Confirm new numbers with the athlete before writing (a changed FTP/weight moves every target). To set custom zones pass a sport's zoneBounds (5 strictly-ascending upper bounds) — that flips it to Manual; pass autoZones:true to revert. Same for hrZoneBounds/autoHrZones. Setting birthdate refreshes the age-based HRmax estimate unless maxHr was set manually — writing a sport's maxHr marks it manual, and autoMaxHr:true hands it back to the estimate. Server-validated; rejects an invalid edit instead of writing a broken profile. Only touches the profile, never the calendar or library. Read with get_athlete_profile first.
Inputs: ftp, kit, run, sex, +21 more.
update_eventADestructiveInspect
Edit an existing event's fields (name, date, last day, start time, whether they have a confirmed slot, description, location, URLs, logistics notes) — every field optional, only what you pass changes. Use when the race date shifts, the venue changes, or details firm up. Moving date moves a multi-day event's endDate with it, its length kept. Weather re-resolves automatically when date or location changes. For the coach-notes section use set_event_notes; for prep content changes don't touch this.
Inputs: id (required), cda, date, name, +13 more.
update_factADestructiveInspect
Change ONE fact — its text, its horizon, its date, its tags. Use it when the athlete corrects something or when a horizon is answered ("tennis holds through the winter" → move the recheck). A card, because this edits something already on their Profile page and often something they wrote — except rewriting their existing "Language:" fact when they ask to switch language, which saves on return. To only bump a pattern's strength use confirm_fact, which is silent.
Inputs: id (required), area, tags, text, +6 more.
update_plan_workoutADestructiveInspect
Edit ONE scheduled workout in place (keeps its identity on the calendar, and its day unless moveTo moves it): replace its interval blocks (bike/run) or strength items (gym), and/or title and/or note, and/or the session's carbohydrate (fuelG). Use for structural coaching edits — a better warm-up, changed rep count, adjusted intensities — instead of remove+re-add. Read it first with get_plan_workout. blocks/strength fully REPLACE the old content (same format as plan_workouts custom workouts; validated server-side).
Inputs: iid (required), date (required), key, why, +13 more.
update_plan_workoutsADestructiveInspect
The same kind of edit on MANY scheduled workouts — ONE card instead of one per session; use it for an edit covering more than three sessions. Each edits item is date + iid + the fields that change, each meaning what it means in update_plan_workout. Structure, gym content, sport and the key star: update_plan_workout, one by one. An edit the single tool would refuse is an invalid line on the card; the rest land.
Inputs: edits (required), why.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
AI cycling coach: training plans, workouts, nutrition, strength training, Strava, Garmin and Wahoo.
Your AI writes training plans that arrive as structured workouts on iPhone and Apple Watch.
AI coach for Garmin: builds training plans and structured workouts, synced straight to your watch.
Your training, sleep, recovery and fuel for the AI you use: it reads your week and plans the next.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI clients to plan and rebalance cycling workouts, read fitness, fatigue and form metrics, analyze rides, adjust TSS, manage weight and calorie goals, and sync planned workouts to Zwift or Wahoo.CC BY-4.0
- 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.215MIT
- AlicenseNot gradedqualityCmaintenanceEnables athletes to query their Garmin, Oura, WHOOP, Hevy and 39 other fitness and health apps from their own AI assistant, returning computed training-load, HRV, readiness, sleep and race-prediction metrics and, with permission, pushing structured workouts, food logs or strength routines back to connected apps.3MIT
- FlicenseNot gradedqualityDmaintenanceAI-powered coaching for runners, cyclists, swimmers, and triathletes, enabling personalized workouts, training plan adaptation, performance analytics, and AI coaching via Claude, MCP clients, or HTTP.-
Glama MCP Gateway
Add one secure layer between your agents and this server.