get_archive_metadata
Fetch coverage stats, logs, and config details from a local Garmin health data archive, with optional date filtering for log queries.
Instructions
Request archive-state metadata. kind selects the artefact: "stats" (coverage/quality overview — use this for "how big/healthy is my archive" questions), "device_table", "quality_log", "source_api_log", "token_log", "capability_config", "daily_logs", "fail_logs", "recent_logs".
date_from/date_to (ISO "YYYY-MM-DD", inclusive) optionally narrow "quality_log", "source_api_log", "daily_logs", "fail_logs", and "recent_logs" to a date range — ignored for the other four kinds.
v1.7.1.16 clarification (no behavior change): the 30-day-default- plus-"note" convenience described below only exists on the LIVE path (mcp_map.get_archive_metadata() -> metadata_map.py). On the SQLite-cached path (mcp_sql.get_metadata_range() — the one actually taken today, see _route_query()), omitting both dates for one of the five date-filterable kinds instead returns an empty result with no "note" at all; this is deliberate on that path (see mcp_sql.get_metadata_range()'s own docstring: "no 30-day-default fallback in this cache read"), not a bug — but the difference was previously undocumented at this public tool's own docstring level.
Live path: omit both to get the last 30 days of that kind rather than the full archive history; the response then includes a "note" field saying so. Pass both explicitly for a specific or wider range on either path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| date_to | No | ||
| date_from | No |