Skip to main content
Glama

Edit or add an activity

update_activity

Edit Garmin Connect activity details—name, type, notes, effort, feel, privacy, or gear—or add a manual activity with type, start time, and duration. Use only when the user requests the change.

Instructions

Change an activity in Garmin Connect: name, type, event_type (e.g. race), description (notes), rpe, feel, privacy, or the gear used: add_gear puts shoes or a bike on it, remove_gear takes one off (swap: both in one call). Without id it adds a manual activity (type, start, duration_min; optional distance_km, name, description, rpe, feel, privacy, default private): show the user these values and call after they agree. Only call when the user asked for the change. Returns the activity after the edit.

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": "update_activity"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoActivity id from get_activities; leave out to add an activity
rpeNoPerceived effort 0-10
feelNo0 very weak, 25 weak, 50 normal, 75 strong, 100 very strong
nameNoNew activity name
typeNoGarmin type key from garmin://activity-types, e.g. trail_running
startNoNew activity: local start, YYYY-MM-DDTHH:MM
privacyNo
add_gearNoGear name (or part of it) or uuid from get_gear
event_typeNorace, training, recreation, special_event, fitness, touring, transportation, geocaching or uncategorized
descriptionNoNotes; replaces the current ones
distance_kmNo
remove_gearNoGear name or uuid from get_gear
duration_minNo

Output Schema

NameRequiredDescriptionDefault
dataYes
metaYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv0.8.0
    • addedOutput schema / properties / data / properties / activity / properties / avg_pace_100m
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / activity / properties / lap_summary
      Added value: +{
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "avg_gap_pace": {
      +        "type": "string"
      +      },
      +      "avg_hr_bpm": {
      +        "type": "number"
      +      },
      +      "avg_pace": {
      +        "type": "string"
      +      },
      +      "avg_pace_100m": {
      +        "type": "string"
      +      },
      +      "avg_power_w": {
      +        "type": "number"
      +      },
      +      "avg_speed_kmh": {
      +        "type": "number"
      +      },
      +      "distance_km": {
      +        "type": "number"
      +      },
      +      "duration": {
      +        "type": "string"
      +      },
      +      "intensity": {
      +        "type": "string"
      +      },
      +      "laps": {
      +        "type": "number"
      +      },
      +      "max_hr_bpm": {
      +        "type": "number"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / data / properties / activity / properties / split_summaries / items / properties / avg_pace_100m
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / activity / properties / split_summaries / items / properties / distance_pct
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / data / properties / activity / properties / split_summaries / items / properties / time_pct
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / data / properties / activity / properties / splits / items / properties / avg_pace_100m
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / activity / properties / stream_summary / properties / buckets / items / properties / avg_pace_100m
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / activity / properties / typed_splits / items / properties / avg_pace_100m
      Added value: +{
      +  "type": "string"
      +}
  2. Changed20 schema fields changedv0.7.0
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / distance_km
      Added value: +{
      +  "type": "number"
      +}
    • addedInput schema / properties / duration_min
      Added value: +{
      +  "type": "number"
      +}
    • changedInput schema / properties / id / description
      Previous value: -"Activity id from get_activities"New value: +"Activity id from get_activities; leave out to add an activity"
    • addedInput schema / properties / privacy
      Added value: +{
      +  "enum": [
      +    "public",
      +    "followers",
      +    "groups",
      +    "private"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / start
      Added value: +{
      +  "description": "New activity: local start, YYYY-MM-DDTHH:MM",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "id"
      -]
    • addedOutput schema / properties / data / properties / activity / properties / power_curve
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {},
      +      "properties": {
      +        "best": {
      +          "items": {
      +            "additionalProperties": {},
      +            "properties": {
      +              "at": {
      +                "type": "string"
      +              },
      +              "duration": {
      +                "type": "string"
      +              },
      +              "power_w": {
      +                "type": "number"
      +              },
      +              "w_per_kg": {
      +                "type": "number"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / data / properties / activity / properties / split_summaries
      Added value: +{
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "avg_gap_pace": {
      +        "type": "string"
      +      },
      +      "avg_hr_bpm": {
      +        "type": "number"
      +      },
      +      "avg_pace": {
      +        "type": "string"
      +      },
      +      "avg_speed_kmh": {
      +        "type": "number"
      +      },
      +      "count": {
      +        "type": "number"
      +      },
      +      "distance_km": {
      +        "type": "number"
      +      },
      +      "duration": {
      +        "type": "string"
      +      },
      +      "elevation_gain_m": {
      +        "type": "number"
      +      },
      +      "elevation_loss_m": {
      +        "type": "number"
      +      },
      +      "max_hr_bpm": {
      +        "type": "number"
      +      },
      +      "type": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / data / properties / activity / properties / stream_summary / properties / buckets / items / properties / avg_grade_pct
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / data / properties / activity / properties / stream_summary / properties / buckets / items / properties / elevation_gain_m
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / data / properties / activity / properties / stream_summary / properties / buckets / items / properties / max_grade_pct
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / data / properties / activity / properties / stream_summary / properties / buckets / items / properties / start_km
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / data / properties / activity / properties / stream_summary / properties / buckets / items / properties / vam_m_h
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / data / properties / activity / properties / stream_summary / properties / buckets / items / properties / w_per_kg
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / data / properties / activity / properties / typed_splits
      Added value: +{
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "avg_gap_pace": {
      +        "type": "string"
      +      },
      +      "avg_grade_pct": {
      +        "type": "number"
      +      },
      +      "avg_hr_bpm": {
      +        "type": "number"
      +      },
      +      "avg_pace": {
      +        "type": "string"
      +      },
      +      "avg_speed_kmh": {
      +        "type": "number"
      +      },
      +      "distance_km": {
      +        "type": "number"
      +      },
      +      "duration": {
      +        "type": "string"
      +      },
      +      "elevation_gain_m": {
      +        "type": "number"
      +      },
      +      "elevation_loss_m": {
      +        "type": "number"
      +      },
      +      "max_grade_pct": {
      +        "type": "number"
      +      },
      +      "max_hr_bpm": {
      +        "type": "number"
      +      },
      +      "start": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / data / properties / created
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / data / properties / exercise_sets
      Added value: +{
      +  "additionalProperties": {},
      +  "properties": {
      +    "sets": {
      +      "items": {},
      +      "type": "array"
      +    },
      +    "total_reps": {
      +      "type": "number"
      +    },
      +    "total_sets": {
      +      "type": "number"
      +    },
      +    "volume_kg": {
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / data / properties / previous_exercise_sets
      Added value: +{
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "duration_s": {
      +        "type": "number"
      +      },
      +      "exercise": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "category": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "category"
      +        ],
      +        "type": "object"
      +      },
      +      "reps": {
      +        "type": "number"
      +      },
      +      "rest_s": {
      +        "type": "number"
      +      },
      +      "weight_kg": {
      +        "type": "number"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / data / properties / privacy
      Added value: +{
      +  "type": "string"
      +}
  3. Changed6 schema fields changedv0.6.2
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / description / description
      Added value: +"Notes; replaces the current ones"
    • addedInput schema / properties / feel / description
      Added value: +"0 very weak, 25 weak, 50 normal, 75 strong, 100 very strong"
    • addedInput schema / properties / id / description
      Added value: +"Activity id from get_activities"
    • addedInput schema / properties / name / description
      Added value: +"New activity name"
    • addedInput schema / properties / rpe / description
      Added value: +"Perceived effort 0-10"
  4. First observedv0.6.0

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already say readOnlyHint=false and destructiveHint=false; the description adds real value beyond them by disclosing that 'description' replaces existing notes, that new activities default to private, that gear swaps can be done in one call, and that the edited activity is returned. It still omits permission/auth requirements and what happens to unspecified fields on partial edits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Compact and front-loaded, with the edit mode, gear semantics, and create mode in that order. The parenthetical stacking ('(type, start, duration_min; optional distance_km, ...)') is dense but each clause carries information; nothing is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 13-parameter mutation tool it covers both operating modes, the confirmation requirement, default privacy, field-replacement semantics, and return behavior. With an output schema present, no further description of the response payload is needed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 77% schema coverage the baseline is 3, and the description exceeds it: it maps fields to user-facing concepts ('description (notes)', 'event_type (e.g. race)', gear as 'shoes or a bike'), explains the add-mode required set (type, start, duration_min), and clarifies add_gear/remove_gear can be combined in one call. It does not explain units or formats for duration_min/distance_km beyond their names.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource ('Change an activity in Garmin Connect') and then enumerates exactly which fields are mutable. It goes further by splitting the tool into two distinct modes (edit with id, add manual activity without id), so an agent knows precisely what this tool does and that it is a write tool, unlike the read-oriented siblings such as get_activity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit gating rule: 'Only call when the user asked for the change,' plus a confirmation protocol for the create path ('show the user these values and call after they agree'). It does not name a sibling alternative (e.g. get_activity for reads), so it falls short of the full when/when-not/alternatives bar, but the usage conditions themselves are unambiguous.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.