Find an exercise swap
find_exercise_swapUse this when the user needs a replacement for one exercise because they do not have the equipment, the station is taken, or they want a different option, for example no cable machine for cable rows. It returns up to five Phorme library movements of the same kind that the user's equipment allows, each with a demo link, and says so when it has to offer the nearest kind instead. It reads only and changes nothing, including any saved plan. Do not use it to work around pain or injury.
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>",
"available_equipment": "<available_equipment>"
},
"name": "find_exercise_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Why they need a swap, only if they said. | |
| exercise | Yes | The exercise to replace, as the user wrote it, for example "Seated cable row". | |
| available_equipment | Yes | Equipment the user has, for example ["dumbbells", "bench"] or ["none"]. Ask when the user did not say. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| match | Yes | nearest_kind: nothing of the same kind fits the equipment, so these work the same muscles from a different angle. | |
| swaps | Yes | Replacements, best first, each with name, equipment and demo_url. | |
| limits | Yes | What the swaps do not cover. Tell the user. | |
| matched | No | The Phorme library movement the exercise matched. | |
| pattern | No | The kind of movement, for example horizontal_pull. | |
| exercise | Yes |