set_activity_type
Change an activity's sport type to correct mislabelled Garmin activities, such as switching a trail run to running or a treadmill walk to treadmill walking.
Instructions
Change the activity type (sport) of an activity.
Useful for reclassifying a mislabelled activity, e.g. flipping a run
logged as 'trail_running' to 'running', or a 'treadmill_running' walk to
'treadmill_walking'. Call get_activity_types to see all valid type keys.
Args:
activity_id: ID of the activity to update
type_key: Target activity type key (e.g. 'running', 'trail_running',
'treadmill_running', 'cycling', 'lap_swimming')
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": {
"activity_id": "<activity_id>",
"type_key": "<type_key>"
},
"name": "set_activity_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type_key | Yes | ||
| activity_id | Yes |