get_vitals_freshness
Check Android vitals data freshness before querying to pick an end_date that returns rows, since vitals data usually lags about a day.
Instructions
Check how fresh Android vitals data is before querying it. Returns each requested metric set with freshnessInfo.freshnesses[], giving the latest end time available per aggregation period (DAILY, HOURLY) — use it to pick an end_date the query_* tools will actually return rows for, since vitals data typically lags about a day. Defaults to the crash, ANR and error count metric sets. A metric set with no data for this app (slowRenderingRateMetricSet is games-only, for example) comes back with an error field instead of freshnessInfo rather than failing the whole call.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_vitals_freshness"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric_sets | No | Metric sets to check (default: crashRateMetricSet, anrRateMetricSet, errorCountMetricSet) | |
| package_name | No | App package name, e.g. 'com.acme.app' (defaults to GOOGLE_PLAY_PACKAGE_NAME) |