Get the weekly report (optionally save it as a local markdown file)
get_weekly_reportA shareable report for one FINISHED Monday-to-Sunday week, assembled from the same builders as the other tools: the week's workouts (get_daily_snapshot), sleep, HRV, waking recovery and steps as the week's median against the user's own 28…
Instructions
A shareable report for one FINISHED Monday-to-Sunday week, assembled from the same builders as the other tools: the week's workouts (get_daily_snapshot), sleep, HRV, waking recovery and steps as the week's median against the user's own 28 days before the week (get_baselines: below / within / above the middle half), training load at the end of the week (get_training_load: CTL/ATL/TSB, the week's TSS and the week before), the guided strength sessions of the week (get_exercise_history), plan adherence (get_plan's plan: a planned date with any workout is done, else missed; no plan or no session that week says so) and tag effects (get_tag_effects, only a tag whose verdict is not 'insufficient'). week is the Monday of the week (default: the last full week before today); a week that has not ended yet, a date that is not a Monday and an invalid date are refused. Output: { week: { from, to }, workouts: { count, totalTimeS, kcal, tss (the sum of the sessions' tss below, the one figure the markdown's table and total use), noTss (sessions without one, counted as 0), restDays, days: [{ date, sessions: [{ startLocal, totalTimeS, tss, guide }] }] } | null, recovery: { baselineFrom, baselineTo, stepsTotal, stepsDays (days that total covers; the markdown always says 'N steps over D of 7 days'), metrics: { sleepDurationS | sleepScore | hrv | recoveryMorning | steps: { unavailable, n (days with a value), median (null below 4 days), baseline: { n, median, p25, p75 } | null, vsBaseline: 'below' | 'within' | 'above' | null } } } | null, load: { asOf, ctl, atl, tsb, rampRate7d, weekTss and previousWeekTss (the load model's own figures, which read Suunto's tss.trainingStressScore and can differ from workouts.tss; the markdown says so when they do), notes (raw, for you; the markdown gets plain sentences only), flags } | null, strength: { sessions, exercises: [{ name, sessions, lastDetail }], pending } | null, plan: { goal, planned, done, missed, adherencePct, items } | null, tagEffects: { window, tags, insufficientTags, minNightsPerGroup } | null, markdown, saved, errors, notes }. A section that fails is null and explained in errors; a section without enough data says 'insufficient data' instead of a number. markdown is a self-contained text meant to be shared: it holds no account id, token, workout key or file path (only the week's own numbers, the plan goal and session titles, and journal tag names), and every text the user wrote in it (guide, exercise and tag names, plan goal and titles) is escaped so it cannot add markup. Toward Suunto it only reads, about 30 requests (the strength section reads at most 8 uncached guided sessions; its pending says how many are left). With save: true it also writes the markdown to ~/.suunto-mcp/reports/week-.md (SUUNTO_REPORTS_DIR moves it; file 0600, a folder it creates 0700): it never replaces a different existing file unless overwrite: true is also given (a refused save is saved.status 'refused' with the reason and the report is still returned; the same content again is 'unchanged'); overwrite without save is refused. Local files only, nothing is sent anywhere. In demo mode the markdown opens with a synthetic-data notice and a save stays in memory. Annotated not read-only (and destructive only through overwrite: true; idempotent) because save writes a local file, so clients may ask for permission; the call itself changes nothing at Suunto.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_weekly_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | true: also write the markdown to the reports folder as week-<Monday>.md. false (default): return it only. | |
| week | No | The Monday of the week, YYYY-MM-DD (default: the last full Monday-to-Sunday week before today). The week must be finished. | |
| overwrite | No | With save: replace a DIFFERENT existing file of that name. Without it such a file is left untouched and the save is refused. |