get_activity_interval_stats
Calculate aggregate stats for a chosen index range in an activity's data streams using start and end positions; useful for analyzing a slice, not listing intervals.
Instructions
Compute aggregate stats for an index range of an activity's data streams.
start_index/end_index are positions in the activity's streams (as seen in the
streams or interval output). This computes metrics for that slice — it does NOT
list the activity's own intervals (use get_activity_intervals for that).
Args:
activity_id: The Intervals.icu activity ID.
start_index: Start position in the activity streams (required).
end_index: End position in the activity streams (required, > start_index).
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>",
"start_index": "<start_index>",
"end_index": "<end_index>"
},
"name": "get_activity_interval_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_index | Yes | ||
| activity_id | Yes | ||
| start_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |