Plan draft
get_plan_draftPoll a draft job created by this account and connection: queued/generating, allowance_limited with retry_at, failed or ready (pending draft) with goal, level, recommended start date, expiry, per-week summaries for the whole plan, and the workouts of whole weeks up to a response-size page; next_cursor from a draft result reads the following weeks. Read-only; drafts expire 24 hours after reservation and become unavailable once saved. A poll resumes an expired execution lease; after process loss progress may wait for the next poll. Only ready drafts can be edited or saved.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"draft_id": "<draft_id>",
"athlete_id": "<athlete_id>"
},
"name": "get_plan_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | next_cursor from the previous page of this tool called with the same arguments; omit for the first page. | |
| draft_id | Yes | draft_id from create_training_plan or a draft edit by this account (single-use, expires 24 hours after drafting). | |
| athlete_id | Yes | The draft's owner: the athlete for an individual draft; for a group draft, the coach's own id from get_current_user. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | ||
| draft | No | ||
| error | No | ||
| level | No | ||
| weeks | No | ||
| status | No | ||
| message | No | ||
| privacy | No | Present when the athlete's settings withhold data. | |
| draft_id | No | ||
| group_id | No | ||
| retry_at | No | Epoch milliseconds; an uncharged allowance-limited job resumes on a poll at or after this instant. | |
| warnings | No | ||
| next_step | No | What can be done next, for example after a failure. | |
| operation | No | ||
| plan_name | No | ||
| athlete_id | No | ||
| created_at | No | ||
| expires_at | No | ||
| group_name | No | ||
| next_steps | No | ||
| assumptions | No | ||
| athlete_pbs | No | ||
| goal_source | No | ||
| next_cursor | No | Reads the next page; null on the last page. | |
| reason_code | No | ||
| total_weeks | No | ||
| member_count | No | ||
| retry_at_iso | No | The epoch field beside it as a UTC instant; the local day can differ. | |
| subject_kind | No | ||
| user_content | No | Fields in this result that people wrote. | |
| changed_cells | No | ||
| phase_outline | No | ||
| created_at_iso | No | The epoch field beside it as a UTC instant; the local day can differ. | |
| expires_at_iso | No | The epoch field beside it as a UTC instant; the local day can differ. | |
| missing_inputs | No | ||
| weeks_returned | No | ||
| content_preview | No | ||
| generation_state | No | queued, generating, ready, failed or access_revoked; only ready content is editable/saveable. | |
| truncated_fields | No | Lists cut to fit one response: rows returned and total. | |
| weekly_summaries | No | ||
| allowance_charged | No | Audit of the stable Redis reservation; retries of this job do not charge again. | |
| duration_in_weeks | No | ||
| generated_content | No | Fields in this result that NexRex's AI wrote. | |
| weekly_mileage_km | No | ||
| workout_preference | No | ||
| preferences_applied | No | ||
| session_definitions | No | Sessions that several rows of this result share by session_ref. | |
| content_block_fields | No | Column names of every content_blocks row, nested blocks rows included. | |
| recommended_start_date | No | ||
| training_principle_org_id | No | ||
| training_principle_source | No |