| Method | Description |
prepare_week_data | Runs the full pipeline and returns consolidated coach input JSON. Supports optional lookback_days (default: 7) for the activity/fueling window while week_summary stays calendar-week based. |
get_latest_activities | Returns a compact latest-first activity list to avoid large payload truncation. |
get_activity_streams_sampled | Returns a compact, down-sampled stream payload for a single activity. Supports optional stream selection, time/distance windows, and a point cap to keep outputs small. |
list_library_workouts | Lists the caller's own workout library with library workout ID, duration, TSS and tags. Supports optional filters: tag_prefixes, match_mode (any/all), include_untagged, limit. |
validate_week_plan | Validates plan JSON against contracts/week-plan/week-plan.schema.json and returns structured validation results. |
check_plan_tss | Checks a generated plan's stated TSS values against deterministic step-based TSS math and weekly target tolerance. |
upload_week_plan | Uploads a JSON training plan to intervals.icu (supports dry-run and clear). |