Skip to main content
Glama

Propose next week's strength sessions (read-only: returns a proposal and a queuePayload, writes nothing)

propose_next_week
Read-only

Propose next week's strength sessions from the stored plan, logged lifts, and recovery/load signals; returns a reviewable proposal with rule-based load changes and no automatic writes.

Instructions

Proposes next week's strength sessions from the stored plan (set_plan), what the user's journal says they ACTUALLY lifted (log_session), and how recovered and loaded they are. It writes NOTHING: it returns a proposal that the caller shows to the user and may pass on, there is no auto-write (reading the history fills only the same rebuildable derived-data cache as get_exercise_history; nothing is sent to the watch). To put the proposal in the approval queue, pass its queuePayload (exactly queue_adjustment's arguments) to queue_adjustment: nothing is queued by this tool, and nothing is pushed until the user approves with resolve_approval. With predict: true it also returns, for each proposed INCREASE, a ready log_prediction payload in predictions (kind reps_hit, date = the session's date, rule 'progression'; probability = the user's own hit rate for that rule from get_prediction_stats once 20 are scored, else 0.65, always kept inside 0.5 to 0.9); it never logs them itself. The base week is the latest week of the plan (within 4 weeks before weekStart) with a guided session; its sessions are repeated one week on (weekStart = a Monday after today, default the next Monday) with each exercise's load decided by a small closed set of NAMED rules, reported in rulesUsed with their values (rules overrides some, each inside a stated range; unknown names are refused). PROGRESS: in the lift's latest logged session every planned set reached its planned reps at one weight -> load + one step (get_exercise_history's suggestion: at most incrementKg, default 2.5 kg, at most 5% of the load, at least 1.25 kg). HOLD: anything else with evidence -> the load that was done is repeated. DELOAD (load lowered deloadPct, default 10%, rounded to 1.25 kg): stallSessions (default 2) logged sessions of the lift in a row without hitting the plan; OR today's TSB (get_training_load) below tsbDeloadBelow (default -25); OR HRV and recovery on waking (get_baselines, today) both below the user's band. NEVER raises a load without evidence: a lift with no log_session entry for the plan's own sets x reps is left as it is (and the watch records only the plan, not what was lifted), one of HRV / recovery below the band or an unread part of the history blocks every increase, and a lift whose detail has no kg ('BW 3x15', 'RPE6') or no 'NxM' is never touched. The result is insufficient (status, missing says what; sessions, guides and forecast empty or null: no changes proposed) when there is no plan, no guided session to repeat, fewer than 2 sessions with logged sets in the last 8 weeks, or no lift with usable evidence. Output: { status ('ok' | 'insufficient'), weekStart, weekEnd, asOf (today), planSource ('stored' | 'demo' | 'none'), rulesUsed: [{ name, value, default, overridden, overridable, rule }], missing, basedOn: { from, to }, signals: { ctl, atl, tsb, hrv, recoveryMorning (below | within | above | null) }, sessions: [{ date, title, guide? }] (pass to set_plan; mode 'merge' replaces the plan's sessions on those dates), guides: [strength guide specs] (pass to push_week_plan, dryRun by default; each exercise's last and target are set for the watch), changes: [{ date, session, exercise, action ('progress' | 'hold' | 'deload' | 'unchanged'), changed, from: { detail, kg }, to: { detail, kg }, reasons }] (every exercise, with the reasons for it), reasons (what applies to the whole week), forecast: { asOf, start, series: [{ date, tss, ctl, atl, tsb }], basis } (forecast_training_load's own projection from today's values through the proposed week), risk: { level ('none' | 'caution'), flags: [{ rule, detail }], tsbFloor: { threshold (default -30), minTsb, date }, weeklyLoad: { threshold (default 30 %), proposedTss, previous4wAvgTss, jumpPct, complete } } (flags: the forecast TSB below tsbRiskFloor, or the week's TSS more than weeklyJumpPct over the average week of the 28 days before it, the upper edge of the 0.8-1.3 acute:chronic range: heuristics, not safe/unsafe lines), queuePayload ({ kind: 'week_plan', payload: { guides }, forDate (the earliest guide's date), reasons, source } to pass to queue_adjustment as it is; null when nothing is proposed), predictions: [{ session, payload (log_prediction's arguments), basis: { source ('history' | 'default'), rule, n, hitRate } }] (empty unless predict), estimates: [{ date, title, tss, sessions, scope }] (each session's TSS for the forecast: the median of the user's last 90 days' sessions of the same title, at least 2 needed, else null and counted as 0), history: { from, to, guidedSessions, loggedSessions, pending, errors }, notes, errors }. MODEL-BASED: every number is a projection or a rule's output from the user's own data, not a measurement or a prediction of how they will respond; CTL can be about 1 point off the watch. Read-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": "propose_next_week"
  }
}

Input Schema

NameRequiredDescriptionDefault
rulesNoOptional overrides of the named rules (unknown names are refused). Each is a number inside the stated range; leave out what should stay at its default.
predictNotrue: also return a ready log_prediction payload per proposed increase in `predictions` (never logged by this tool). Default false.
weekStartNoThe Monday the proposed week starts on, YYYY-MM-DD; must be after today. Default: the next Monday.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.3.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, and the description goes well beyond them: it discloses the one side effect (rebuilding the same derived-data cache as get_exercise_history), states nothing is sent to the watch, and warns it never logs the predictions it returns. It also exposes the safety floor ('NEVER raises a load without evidence'), the closed rule set with ranges, and the heuristic-not-line nature of the risk flags.

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

Conciseness3/5

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

It is front-loaded with the read-only scope first, which is the right order, and every section maps to a real behavior. But it is one enormous paragraph with repeated restatements ('writes NOTHING', 'there is no auto-write', 'nothing is queued by this tool', closing 'Read-only') and an inline output dump that would be far more scannable as a list. Density is earned, structure is not.

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?

With no output schema and a nested optional `rules` object, the description carries the full burden and does: it enumerates every returned field (status, rulesUsed, sessions, guides, changes, forecast, risk, queuePayload, predictions, estimates, history, errors) and the `insufficient` shape. For a tool this complex, nothing an agent needs to call or interpret it appears missing.

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 already 100%, so the baseline is 3; the description still adds meaning by explaining what each named rule does behaviorally (PROGRESS step capped at incrementKg and 5%, HOLD repeating the done load, DELOAD triggered by stallSessions/TSB/HRV) and that unknown rule names are refused. The `predict` return contract and the 'Monday after today' default for weekStart are also stated. It stops short of adding syntax beyond the schema, which keeps it at 4.

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?

States a specific verb and resource ('Proposes next week's strength sessions') and immediately scopes the inputs (set_plan, log_session, recovery/load). It also explicitly separates itself from siblings: nothing is queued (queue_adjustment), nothing pushed until resolve_approval, and the read side matches get_exercise_history. An agent can distinguish it from queue_adjustment or push_week_plan without opening a schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use and how-to-chain guidance: pass the returned `queuePayload` to queue_adjustment verbatim, pass `sessions`/`guides` to set_plan with mode 'merge' or push_week_plan, and set `predict: true` only when log_prediction payloads are wanted. It also enumerates the exact conditions yielding `insufficient` (no plan, no guided session, fewer than 2 logged sessions in 8 weeks, no usable evidence), which is real exclusion guidance.

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