get_archive_metadata
Inspect Garmin Local Archive health and completeness, including coverage stats, sync/quality logs, device tables, and token events. Select an artefact by kind and optional date range.
Instructions
Read archive-state metadata: how complete and healthy the archive is, plus sync and quality logs. kind selects the artefact:
"stats": small coverage/quality overview (total, high/standard/failed counts, date range, coverage_pct, last sync, integrity warnings). Use this for "how big/complete/healthy is my archive" questions.
"device_table": devices seen in the archive, with date range and number of days each.
"quality_log": per-day quality register.
"source_api_log": one record per data fetch (time, source, validator status, endpoints fetched).
"token_log": token events (created/invalidated/blocked/valid), never token contents.
"capability_config": which optional Garmin endpoints are enabled (may be empty).
"daily_logs", "fail_logs", "recent_logs": sanitized sync log lines, one entry per log file.
date_from/date_to (ISO "YYYY-MM-DD", inclusive) are needed for "quality_log", "source_api_log", "daily_logs", "fail_logs" and "recent_logs": without both dates these return an empty result (no error, no default range). They are ignored for the other kinds. The log kinds are large (a single week of daily_logs is several hundred KB), so request only the days you need and prefer "stats" for overview questions.
Result: {"data": ..., "error": None}. An unknown kind raises an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| date_to | No | ||
| date_from | No |