Add or update an exercise
upsert_exerciseCreate or update an exercise in your catalog. Reuse a pool slug to keep one identity and history; when no pool match exists, provide complete details so the exercise is usable.
Instructions
Create or update an exercise in the user's catalog (keyed by its id/name).
Prefer a pool exercise: call search_exercise_pool first and pass its slug as the id
plus pool_slug, so the movement keeps one identity and one history.
Only hand-write an exercise when the pool genuinely has nothing for it — then always set
instructions (2-3 short technique cues, in the user's language), primary_muscles,
category and equipment: the muscle map and the app UI are blank without them.
Fields you omit are left as they are, so a partial update is safe.
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": {
"exercise": "<exercise>"
},
"name": "upsert_exercise"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exercise | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||