Skip to main content
Glama

Get one activity

get_activity
Read-only

Retrieve detailed Garmin activity data by ID, including splits, heart-rate and power zones, weather, strength sets, stream summaries, or power curves for training analysis.

Instructions

Details of one activity by id. detail="summary" (default) for the overview incl. description, RPE, feel, GAP, running dynamics (cadence, GCT, balance, VO, VR, stride), breathing rate, stamina, Training Effect label, run/walk/stand time, HR source (strap or watch) and workout_id (for get_workout); "splits" adds laps with the same dynamics, intensity (warmup, active, rest...) and, for a workout, the step as get_workout numbers it (wkt_step) and its compliance, plus typed splits (run, walk, stand, ClimbPro climbs) with totals per type; "hr_zones" adds time in HR zones; "power_zones" adds time in power zones (power meter); "weather" adds temperature, wind and conditions during the activity; "exercise_sets" adds strength sets (exercise, reps, weight, rest); "stream_summary" aggregates the stream per bucket (pace, GAP, HR, power, dynamics, breathing, Performance Condition, elevation, stamina; compares halves or kilometres without raw samples); "power_curve": best power for 1 s to 60 min (W, W/kg) from the FIT file, also running power; "full" adds all sections except power_curve plus the raw stream (HR, pace, power...), 50 KB per page (narrow it with metrics and downsample_s) - only when the user needs raw samples.

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": {
      "id": "<id>"
    },
    "name": "get_activity"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesActivity id from get_activities
bucketNoFor detail="stream_summary"; "climbs": each climb with grade, VAM, W/kgkm
cursorNoFor detail="full": next_cursor of the previous page (same metrics and downsample_s)
detailNosummary
metricsNoFor detail="full": stream keys to keep, e.g. ["directHeartRate","directPower"]
downsample_sNoFor detail="full": at most one sample per this many seconds

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 / avg_pace_100m
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / 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 / split_summaries / items / properties / avg_pace_100m
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / split_summaries / items / properties / distance_pct
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / data / properties / split_summaries / items / properties / time_pct
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / data / properties / splits / items / properties / avg_pace_100m
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / stream_summary / properties / buckets / items / properties / avg_pace_100m
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / typed_splits / items / properties / avg_pace_100m
      Added value: +{
      +  "type": "string"
      +}
  2. Changed12 schema fields changedv0.7.0
    • changedInput schema / properties / bucket / description
      Previous value: -"For detail=\"stream_summary\""New value: +"For detail=\"stream_summary\"; \"climbs\": each climb with grade, VAM, W/kg"
    • changedInput schema / properties / bucket / enum
      Previous value: -[
      -  "km",
      -  "5min",
      -  "halves",
      -  "quarters"
      -]New value: +[
      +  "km",
      +  "5min",
      +  "halves",
      +  "quarters",
      +  "climbs"
      +]
    • changedInput schema / properties / detail / enum
      Previous value: -[
      -  "summary",
      -  "splits",
      -  "hr_zones",
      -  "power_zones",
      -  "weather",
      -  "exercise_sets",
      -  "stream_summary",
      -  "full"
      -]New value: +[
      +  "summary",
      +  "splits",
      +  "hr_zones",
      +  "power_zones",
      +  "weather",
      +  "exercise_sets",
      +  "stream_summary",
      +  "power_curve",
      +  "full"
      +]
    • addedOutput schema / properties / data / 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 / 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 / stream_summary / properties / buckets / items / properties / avg_grade_pct
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / data / properties / stream_summary / properties / buckets / items / properties / elevation_gain_m
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / data / properties / stream_summary / properties / buckets / items / properties / max_grade_pct
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / data / properties / stream_summary / properties / buckets / items / properties / start_km
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / data / properties / stream_summary / properties / buckets / items / properties / vam_m_h
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / data / properties / stream_summary / properties / buckets / items / properties / w_per_kg
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / data / 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"
      +}
  3. Changed1 schema field changedv0.6.2
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  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 declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuinely useful behavior beyond them: 50 KB per page for detail="full", cursor-based pagination, narrowing via metrics/downsample_s, and data provenance (FIT file for power_curve, power meter for power zones, strap vs watch HR). Permission requirements and rate limits are not mentioned, keeping it below a 5.

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

Conciseness3/5

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

It is correctly front-loaded with purpose, and the length is defensible given nine detail modes, but it is delivered as a single semicolon-chained block with no line breaks or list formatting, making it hard to scan for a specific mode. Readability, not verbosity, is the weakness.

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?

Output schema exists and annotations cover safety, so the description's remaining burden is mode behavior and pagination, both of which are fully explained including per-page payload size and cursor reuse rules. Nothing needed to invoke this correctly is missing.

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

Parameters5/5

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

Schema coverage is 83% but the detail enum has no per-value descriptions in the schema, and the description fully compensates by explaining what every one of the nine modes returns. It also adds meaning to bucket ('compares halves or kilometres', climb grade/VAM/W/kg) and to how metrics/downsample_s narrow the full stream.

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?

States a specific verb and resource with scope: 'Details of one activity by id', which distinguishes it from the list-style sibling get_activities and from get_workout (which it explicitly cross-references via workout_id). An agent can tell what it returns without opening the schema.

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 clear per-mode routing guidance ('only when the user needs raw samples' for detail="full", 'compares halves or kilometres without raw samples' for stream_summary), which steers mode selection rather than tool selection. It does not explicitly say when to use this over get_activities, but the id-from-get_activities framing makes that relationship self-evident.

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