Skip to main content
Glama

get_activity_timeseries

Read-only

Retrieve per-sample heart rate, pace, cadence, elevation, grade, and respiration for one Garmin activity to analyze detailed in-session responses, with optional distance zoom and resampling.

Instructions

Get one activity's per-sample heart rate, pace/speed, cadence, elevation, grade and respiration over time, like the charts on Garmin Connect's activity page.

Use only when the user asks to analyse a specific activity in detail (e.g. heart-rate response to climbs, pace or cadence within a session). Do not use for general health, recovery or trend questions.

Returns columns plus one row per resampled interval. Only metrics the activity recorded appear: an indoor session has no distance, pace, elevation or grade, and respiration exists only for some activities; each absent metric is explained in availability, never filled with zeros. moving=false marks stopped samples. elevation_m is smoothed and grade_pct is computed over a distance window by garmin-owl (see availability). sampling reports the native interval, smart vs 1-second recording, pauses, stops and gaps. Optional distance window to zoom into part of the activity. No GPS position or track is ever read or returned.

Requires saved local Garmin authentication (garmin-owl-auth). Reads Garmin and may update the local cache; never changes your Garmin account. Garmin failures are not retried automatically.

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>"
    },
    "name": "get_activity_timeseries"
  }
}

Input Schema

NameRequiredDescriptionDefault
metricsNoColumns to return; omit for every metric this activity recorded. elapsed_s is always included. A requested metric the activity did not record is omitted and explained in availability.
activity_idYesPositive Garmin activity ID from get_activities or get_recent_activities.
end_distance_mNoOnly samples at or before this distance from the start.
resample_secondsNoAverage samples into intervals of this many seconds, 1-600; defaults to 10. Coarsened automatically (and disclosed) to stay within 600 rows.
start_distance_mNoOnly samples at or after this distance from the start.

Output Schema

NameRequiredDescriptionDefault
rowsYes
columnsYesNames of the values in each row, in order. Only metrics this activity recorded appear. elapsed_s is the mean elapsed time of the samples averaged into the row; other values are their means.
samplingYes
row_countYes
start_timeNoActivity start: ISO 8601 with an explicit UTC offset, e.g. 2026-10-09T23:18:16+02:00. The wall time is already local; never add the offset again. The offset is the one Garmin recorded for the device at that moment, or this computer's time zone when Garmin gives only UTC.
activity_idYes
availabilityNo
activity_typeNo
end_distance_mNo
resample_secondsYesInterval actually used; coarser than requested when the row cap or the response size required it (see availability).
start_distance_mNo
requested_resample_secondsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already cover safety (readOnlyHint=true, destructiveHint=false, openWorldHint=true), yet the description still adds real substance: absent metrics are disclosed in availability rather than zero-filled, moving=false marks stopped samples, elevation is smoothed and grade computed by the wrapper, sampling reports native interval and gaps, no GPS is ever returned, local garmin-owl-auth is required, and Garmin failures are not retried. These go well beyond the annotation set, so it lands above the minimum even if the local-auth precondition could be stated more prominently.

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?

Front-loaded with the purpose in the first sentence, followed by usage rules, then return-shape and operational notes in a sensible order. It is long and repeats some availability/no-zero-fill behavior that the schema and output schema also cover, and the raw line-wrapping mid-sentence slightly hurts scanability, but nearly every sentence carries information an agent needs.

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 five-parameter analytics tool that hits a remote service, the definition covers destination, usage boundary, resampling and distance-window mechanics, missing-metric semantics, privacy limits on GPS, auth prerequisites, and failure behavior. An output schema exists, so the extra return-shape detail is redundant but not a gap; nothing an agent needs in order to call this correctly is missing.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3. The description adds only modest meaning on top of the schema — it frames start/end distance as a way to 'zoom into part of the activity' — while resample_seconds, the metric enum, and omission behavior are already spelled out in the parameter descriptions themselves.

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 — per-sample heart rate, pace/speed, cadence, elevation, grade and respiration for one activity over time — with a concrete analogy (Garmin Connect's activity charts). It also carves out its scope against sibling queries by saying it is not for general health, recovery or trend questions, so an agent can separate it from get_recovery or get_period_summary without opening a schema.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use condition with worked examples (heart-rate response to climbs, pace or cadence within a session) and an explicit when-not-to-use condition (general health, recovery or trend questions). The activity_id schema ties sampling back to get_activities/get_recent_activities, completing the routing story.

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