get_plan_context
Loads the active training plan with recent notes, units, and setbacks so an AI coach can maintain continuity before answering training questions.
Instructions
Load continuity context for the active training plan.
ALWAYS call this FIRST in any training-related conversation, before answering the user. It returns the active plan plus recent notes (decisions, preferences, constraints, life context, blockers, observations) ranked by importance and recency. This is how you maintain continuity across conversations.
The response includes a continuity_hint string — read it. It tells you
whether continuity is fresh or stale and may instruct you to write notes
aggressively this conversation.
Args: plan_id: UUID of a specific plan. Omit to use the active plan. since_days: Only return notes created within this window (default 60). limit: Maximum number of notes to return (default 40, max 200).
Returns:
Object with:
- plan: the resolved plan (or null if none active)
- notes: list of PlanNote objects (id, kind, summary, body,
importance, conversation_id, expires_at, created_at), ordered
by importance desc then created_at desc
- last_note_age_days: age of the most recent note (or null)
- continuity_hint: a directive for how aggressively to save notes
this conversation
- units: "metric", "imperial" or null (the athlete has not chosen)
- units_hint: how to talk and author workouts for this athlete's
units. Follow it: an athlete on miles should never be handed
kilometers.
- setbacks: the athlete's open illnesses and injuries, plus those
that ended in the last three weeks (kind, severity, startDate,
endDate, days, checkins, and for open ones recovery: whether
the recent data says it looks over). Empty when there are none or
when the athlete does not share them.
- setback_hint: what to do about them. Follow it when it is not
empty: an open setback comes before the plan.
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_plan_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| plan_id | No | ||
| since_days | No |