import_workout_session
Import completed workout sessions from structured records, preserving actual dates, reps, units, and weights; resolve missing data and reuse client_id to avoid duplicate imports.
Instructions
Import a completed workout from supplied structured records. Preserve actual dates, reps, units and weights; resolve missing data rather than invent it. Reuse client_id to avoid duplicate imports.
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": {
"client_id": "<client_id>",
"started_at": "<started_at>",
"ended_at": "<ended_at>",
"moves": "<moves>",
"completed_sets": "<completed_sets>"
},
"name": "import_workout_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional session name | |
| moves | Yes | Ad hoc moves when no program is selected | |
| notes | No | Plain text notes up to 2,000 characters; empty string clears them | |
| day_id | No | Day ID from the program | |
| ended_at | Yes | Actual end time with UTC offset | |
| client_id | Yes | Stable caller-generated ID; reuse the same ID when retrying the same operation | |
| program_id | No | User-owned resource ID returned by a read tool | |
| started_at | Yes | ISO 8601 timestamp including UTC offset | |
| completed_sets | Yes | Only sets that were actually completed |