Connect a device
connect_deviceConnect a device to this Shape account from the chat. Returns, per device, whether it is already connected and otherwise a link the athlete opens: for Garmin, Wahoo, Polar, Hammerhead, Intervals.icu, Hevy, Concept2 and Oura a one-time sign-in link that works in any browser for 15 minutes and starts the import as soon as they allow Shape (Polar's first shows what Shape keeps from Polar, which its terms ask for); for Apple Health the iPhone app, since Health only connects from the phone. Hevy (strength workouts with their sets) has a limited number of places and Concept2 (rowing, SkiErg and BikeErg results) is not open on every account yet: when one cannot be connected it comes back with no link and a note saying why, which you pass on. A source that is not offered here at all (WHOOP) connects in Shape under Settings, Connections: say that, and never suggest another way round to bring its data in. Pass provider when the athlete named their device. Leave it out to get every option with its link, and let them pick. Call it when a tool answered that nothing is synced yet or no device is connected, when the athlete asks to connect, add or check a watch, and when they say data from a connected device is missing. Already-connected devices come back with connected: true, plus off: Garmin sharing switches left off (Historical Data, Health, Activities), each with what turning it on would bring, which may be the athlete's choice; and lapsed: true when the connection stopped working. When either applies the device carries a link to sign in again, which restores the connection or lets them turn a switch on; otherwise there is no link and the call changes nothing. Raise a switch that's off only when it explains what they asked about. Give the athlete the link itself (it is personal and expires), then ask them to come back and ask again once they have allowed Shape.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "connect_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | No | Which device or service to connect: `garmin`, `wahoo`, `polar`, `hammerhead`, `intervals` (Intervals.icu), `hevy`, `concept2` or `oura` (a sign-in link), or `apple_health` (connects from the iPhone app). Omit to get every option. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| devices | Yes | ||
| message | Yes |