get_data_coverage
Check cached health data coverage by dataset, showing date ranges with available records to determine if sync_data is needed before querying.
Instructions
Inspect which date ranges already exist in the local cache before choosing query dates or requesting sync_data. Returns data.coverage [{data_type, first_date, last_date, days_with_data}] for nonempty datasets; omitted/empty data_types means all datasets. Empty datasets are omitted, and first/last dates do not guarantee uninterrupted coverage between them. This does not test cloud connectivity or report a background job; use get_connection_status or get_sync_status respectively. Read-only local SQLite query; no cloud request or automatic sync. Requires a configured local account/cache. Returns JSON text with status, source=cache, generated_at and data; empty lists mean no cached matches, not zero measurements. Use sync_data to refresh with user consent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data_types | No | Optional dataset names to inspect; omit or [] for all cached datasets. |