Skip to main content
Glama
Intervals.icu MCP Server
by arjohns

Icu Get Activity Streams

icu_get_activity_streams
Read-onlyIdempotent

Fetch raw per-sample activity streams—power, heart rate, cadence, GPS, and more—for custom visualization or signal-level analysis, with optional stream selection, time-range filtering, and downsampling.

Instructions

Fetch RAW per-sample time-series of one activity — second-by-second arrays for power, HR, cadence, speed, altitude, GPS, temperature, grade, etc.

Heavy payload. Use only when you need the underlying signal for visualization or custom analysis. Most "how was my ride?" questions are better answered by get_activity_details (summary metrics) or get_activity_intervals (per-lap breakdown).

Stream-type filter accepts any of: watts, heartrate, cadence, velocity_smooth, altitude, distance, time, latlng, temp, moving, grade_smooth, raw_heartrate, fixed_heartrate.

latlng comes back as [lat, lng] pairs (null where the sample has no GPS fix).

left_right_balance (dual-sided power meters) is the RIGHT pedal's share of power in percent (FIT convention), not the left's: a stream averaging 48 means L 52% / R 48%. The response adds a stream_notes entry saying so whenever the stream is returned.

heartrate is CORRECTED data: Intervals.icu replaces readings above the athlete's configured max HR with an interpolated line at import, so it can never exceed that setting. raw_heartrate is the uncorrected trace and is the only way to see a genuine new max that was clipped away — the platform never raises the setting on its own. Request it explicitly; it is not in the default set.

For averages over time windows (HR/power drift etc.) use icu_get_activity_window_stats instead. Aliases: VE -> tidal_volume_min, VT -> tidal_volume (centiliters), BR -> respiration (Tyme Wear when present, else the recording device's HR-derived estimate).

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

Input Schema

NameRequiredDescriptionDefault
end_sNoOnly return samples recorded before this elapsed second
start_sNoOnly return samples recorded at or after this elapsed second. The `time` stream is added to the output when start_s/end_s are used.
streamsNoList of stream types (e.g., ['watts', 'heartrate', 'cadence']). If not specified, the activity's default streams are fetched — which does NOT include raw_heartrate or fixed_heartrate; ask for those by name.
max_pointsNoThin every returned stream to at most this many samples by keeping every Nth one (the same N for all streams, so indices stay aligned). Omit for full resolution. ~500 is plenty to trace a route or see the shape of a ride. Samples are not always 1 s apart, so include 'time' to know when each kept sample was recorded.
names_onlyNoReturn only available stream names and lengths, no data (cheap discovery)
activity_idYesActivity ID to fetch streams for

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly/idempotent/non-destructive), but the description adds substantial behavior the annotations cannot: 'Heavy payload' cost warning, the fact that `heartrate` is silently corrected/clipped at the athlete's configured max while `raw_heartrate` is not in the default set, that `left_right_balance` is the RIGHT pedal's share, that `latlng` yields nulls without a GPS fix, and that a `stream_notes` entry is added to the response. These are exactly the non-obvious traits an agent needs before calling.

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 core purpose and the cost warning before the detail, and each paragraph covers a distinct concern (alternatives, stream names, latlng format, L/R balance, HR correction). It is long, and the trailing VE/VT/BR alias block feels appended rather than integrated, which is the main deduction.

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 heavy time-series read tool with an output schema and full annotation coverage, this description covers the remaining gaps: payload cost, stream vocabulary, default-set exclusions, unit/convention traps (L/R balance, corrected HR), and sibling routing. An agent has everything needed to call it correctly and avoid misinterpreting returned arrays.

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?

Schema coverage is 100%, so the baseline is 3, and the schema already explains start_s/end_s/max_points/names_only well. The description nevertheless adds real value beyond the schema by enumerating the accepted stream-type names (the schema only shows a bare string array with no enum), flagging that raw_heartrate/fixed_heartrate are excluded from defaults, and decoding the VE/VT/BR aliases. It does not explain max_points thinning beyond what the schema says, keeping it from a 5.

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 and resource: 'Fetch RAW per-sample time-series of one activity — second-by-second arrays for power, HR, cadence, speed, altitude, GPS, temperature, grade'. It immediately distinguishes itself from icu_get_activity_details (summary metrics), icu_get_activity_intervals (per-lap), and icu_get_activity_window_stats (windowed averages), which are all siblings in the provided list.

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 explicit when-to-use ('only when you need the underlying signal for visualization or custom analysis') and when-not ('most "how was my ride?" questions are better answered by get_activity_details or get_activity_intervals'), and routes windowed averages to icu_get_activity_window_stats. Alternatives and selection conditions are named outright.

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

Deploy Server

Other Tools