Read explicit swim lengths and grouped sets
get_swim_lapsRetrieve swim lengths and sets from Garmin or Intervals.icu for an activity. Reports unavailable if no lap data exists, without reconstructing from samples.
Instructions
Return source-aware swim lengths when a provider actually supplied them, plus Garmin detected and Intervals.icu auto-detected sets. A missing length list is reported as unavailable; laps are never reconstructed from samples. Requires athleteId from list_athletes.
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": {
"athleteId": "<athleteId>",
"activityId": "<activityId>"
},
"name": "get_swim_laps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | No | ||
| athleteId | Yes | ||
| activityId | Yes |