Recorded samples for a metric
metric_samplesThe individual records behind one metric, each with its time, value and source app or device, newest first. Use it when the times of single readings matter. For daily totals use metric_daily. When a page is full (limit records), pass the last record's start as before to get the next page. A weight (body_mass), water (dietary_water) or body fat record you logged carries an id that edit_entry and delete_entry take.
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": "<metric>"
},
"name": "metric_samples"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day, YYYY-MM-DD, inclusive (optional, default today) | |
| days | No | Days back (default 7, max 400) | |
| from | No | First day, YYYY-MM-DD on the phone's calendar (optional, used instead of days) | |
| limit | No | Max records (default 200, max 1000) | |
| before | No | Paging: the start of the last record you already have. Returns the records before it. | |
| metric | Yes | Metric key |