get_activity_interval_stats
Retrieve upstream interval statistics for a half-open sample range, returning raw Intervals.icu Interval data with provenance and units. Use to map sample indices to elapsed time or inspect interval fields without numeric calculations.
Instructions
Read upstream interval statistics for a half-open sample-index range.
Choose this when the client needs the Intervals.icu Interval object for
[start_index, end_index). Indices are samples, never seconds, and all
upstream fields, including nulls, zeroes, and future fields, stay in
data. The MCP adds provenance, units, and requested/returned bounds but
performs no numeric calculations. A returned range mismatch is explicit
partial data; use the suggested get_activity_streams time range to map
sample indices to elapsed time. Source completeness is unknown.
average_tidal_volume is VT (volume per breath, not VT1/VT2), average_tidal_volume_min is VE, and average_respiration is BR. Tymewear volumes use relative device units, not calibrated liters; no /100 or /1000 conversion is applied. Conditional field documentation is returned in provenance.respiratory_interpretation; see get_metric_definitions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | ||
| end_index | Yes | ||
| activity_id | Yes | ||
| start_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| error | No | ||
| query | No | ||
| source | Yes | ||
| status | Yes | ||
| coverage | Yes | ||
| warnings | No | ||
| pagination | No | ||
| request_id | No | ||
| schema_version | No | 1.0 |