Suggest a workout
propose_workoutSuggest a workout for the person to approve in the Metrics Nest app. This only leaves a suggestion: nothing is planned until they approve it on their phone, where they can also edit or reject it, and no workout is ever created, changed or deleted here. Call list_exercises first and give each exercise its exercise_id from there whenever it is one they have done; for one they have not, take its exercise_id from list_exercise_catalog when the app has it, and otherwise leave exercise_id out and give the name. Weights are kg. Make up a new idempotency_key for each suggestion and send the same one only when retrying this exact call: a retry answers the suggestion already made instead of making a second. Works only where the person allowed this connection to suggest workouts (get_profile says can_propose). list_proposals shows what became of each suggestion.
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": {
"idempotency_key": "<idempotency_key>",
"title": "<title>",
"planned_for": "<planned_for>",
"exercises": "<exercises>"
},
"name": "propose_workout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | What the session is, as the person will see it: "Upper body A". | |
| client | No | For a coach: a client id from list_clients, to read that client. Omitted: your own account. | |
| activity | No | strength (default), run, ride, hike, swim, row, yoga, hiit or other. | |
| exercises | Yes | In the order they are to be done. | |
| rationale | No | Why this session, in a few sentences the person reads before approving. | |
| planned_for | Yes | The day it is meant for, in the account time zone: today up to 28 days ahead. | |
| idempotency_key | Yes | Unique per suggestion; the same key again returns the first suggestion instead of a duplicate. |