Set the training plan (local file, pushes nothing)
set_planStores the training plan as LOCAL state: a goal, optional start/end dates, phases and planned sessions per date, in ~/.suunto-mcp/plan.json (SUUNTO_PLAN_PATH overrides it).
Instructions
Stores the training plan as LOCAL state: a goal, optional start/end dates, phases and planned sessions per date, in ~/.suunto-mcp/plan.json (SUUNTO_PLAN_PATH overrides it). Writes only that file, never contacts Suunto, needs no Suunto credentials and NEVER pushes anything to the watch: to put a planned session on the watch, take its guide from get_plan and send it with push_strength_guide / push_week_plan. mode 'replace' (default) is DESTRUCTIVE to the stored plan: the call IS the whole plan (goal required; start, end, phases and sessions left out become empty) and overwrites the stored one, so clients may ask for permission; the result's previous is the complete plan it replaced (null when there was none), so nothing is lost and setting previous again undoes it. mode 'merge': goal, start, end and phases replace the stored ones when given, sessions are merged by date (a given date replaces that day's session, other dates stay; replacedDates lists them); a merge needs at least one field, and a first merge needs a goal. Start and end cannot be cleared in a merge (use replace). A session is { date, title, guide? } where guide is an optional push_strength_guide spec whose date must equal the session's. Strict: unknown fields, bad dates, from after to, sessions or phases outside start..end (when both are given), duplicate dates, and more than 20 phases / 200 sessions / 500 characters of text (100 for names and titles) / 8000 characters of guide JSON are refused with an error and nothing is written. A damaged or other-version plan file is refused, never overwritten. Result: { saved, mode, plan: { goal, start, end, phases, sessions } (counts), replacedDates, previous, note }. In demo mode the plan is kept in memory only.
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": "set_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Last day of the plan, YYYY-MM-DD. | |
| goal | No | The goal of the plan in the user's words, e.g. 'Sub-50 10k in January'. Required unless mode is 'merge' on an existing plan. | |
| mode | No | 'replace' (default): the call is the whole plan. 'merge': update the stored plan; sessions are merged by date. | replace |
| start | No | First day of the plan, YYYY-MM-DD. | |
| phases | No | Training phases. In merge mode a given list replaces the stored one. | |
| sessions | No | Planned sessions, at most one per date. |