get_daily_metrics
Get nightly HRV and daily Coros metrics for any 1–52 week range, with cached historical data for fast retrieval and API fetch for uncached periods.
Instructions
Retrieve nightly HRV and daily metrics from Coros for a configurable time range (up to 52 weeks).
Historical data is served from the local SQLite cache (fast); only the uncached tail is fetched from the Coros API. The underlying API endpoint supports up to 24 weeks per call; the cache layer fetches longer uncached ranges in 12-week chunks, so any range up to 52 weeks works even on a cold cache.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| weeks | No | Number of weeks to fetch (1–52). Default: 4. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||