Skip to main content
Glama

Get the weekly report (optionally save it as a local markdown file)

get_weekly_report
DestructiveIdempotent

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…

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

NameRequiredDescriptionDefault
saveNotrue: also write the markdown to the reports folder as week-<Monday>.md. false (default): return it only.
weekNoThe Monday of the week, YYYY-MM-DD (default: the last full Monday-to-Sunday week before today). The week must be finished.
overwriteNoWith save: replace a DIFFERENT existing file of that name. Without it such a file is left untouched and the save is refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations are explicitly explained rather than merely restated: it says why the tool is not read-only and only destructive through overwrite (the local save), that idempotency comes from re-saving identical content being 'unchanged', and that nothing changes at Suunto. It goes well beyond the annotations with concrete operational facts: roughly 30 Suunto requests, at most 8 uncached strength sessions with a `pending` counter, file mode 0600 and directory 0700, refusal returns the report anyway, demo mode keeps the save in memory, and per-section failure yielding null plus an entry in errors.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded and dense with substance rather than filler, and since no output schema exists the long output-shape enumeration does earn its place. The cost is readability: the body is a handful of very long run-on sentences with inline brace notation, so the security, save and demo-mode rules are hard to locate on a first read.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a high-complexity aggregate tool with no output schema, it covers everything an agent needs: the exact return shape, what 'insufficient data' means per section, that a failed section is null plus an errors entry, escaping guarantees for user-authored text, and the note that load-model TSS may differ from workouts TSS. Storage location, permissions, overwrite semantics and the demo-mode caveat are all present.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3 and the schema already documents `save`, `week` and `overwrite` including defaults. The description still contributes meaning the schema does not spell out as clearly: `week` must be the Monday of a finished week and defaults to the last full week, and the flag interaction 'overwrite without save is refused' plus the saved.status values (refused/unchanged) are behavioral rules beyond the property definitions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence names a specific artifact (a shareable report for one finished Monday-to-Sunday week) and immediately enumerates the constituent sections and the sibling builders each comes from (get_daily_snapshot, get_baselines, get_training_load, get_exercise_history, get_plan, get_tag_effects). An agent can distinguish this aggregate tool from those single-purpose siblings without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It clearly frames this as a composition of the other tools' builders, so an agent knows it is the one-shot aggregate rather than the per-domain calls, and it states refusal conditions (unfinished week, non-Monday, invalid date) and the save-vs-return-only split. What it lacks is an explicit 'use X instead when you only need the baseline numbers' routing sentence, so the alternative choice is implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.