set_activity_distance
Sets an activity's total distance in meters; Garmin recomputes the average speeds. Partial PUT of summaryDTO.distance in METERS (no conversion; createManualActivity is the one that takes km), the edit Garmin Connect offers for treadmill runs. Garmin recomputes averageSpeed/averageMovingSpeed from it; duration, calories and laps stay as recorded, so the laps no longer sum to the total. getActivities lags the change by a few seconds while getActivity shows it at once. Throws GarminError before any request for a non-positive or non-finite value.
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": {
"activityId": "<activityId>",
"meters": "<meters>"
},
"name": "set_activity_distance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meters | Yes | ||
| activityId | Yes | Numeric id |