query_metric
Retrieve time-series data for any HealthKit metric, with raw samples for short windows and daily aggregates for longer periods.
Instructions
Time-series for any HealthKit metric type. metric_type: e.g. 'HKQuantityTypeIdentifierStepCount', 'HKQuantityTypeIdentifierHeartRate' Windows <= 30 days return raw samples; longer windows return daily aggregates (raw samples beyond 30 days are summarized and no longer stored individually).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"metric_type": "<metric_type>"
},
"name": "query_metric"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric_type | Yes | ||
| days | No | ||
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||