Read a body size history
get_measurement_historyRetrieve the logged history of a body measurement (e.g., waist, chest) as date-value pairs, newest first. Specify a date range or get the most recent entries.
Instructions
List the logged values of one body measurement as {date, value}, newest first: value in the user's size unit (cm unless changed in the app), fat_percentage in %. Days without that measurement are left out. Pass from_date and to_date to choose the period; without to_date it stops at today, so give it for later days; without either it lists the newest entries up to limit. The first and last value of every part over a period is get_body_measurements; body weight is get_weight_history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of entries. | |
| to_date | No | Day as YYYY-MM-DD; when the user says today, yesterday, this week or a weekday, call get_today and count from its date. | |
| body_part | Yes | The measurement, e.g. waist; fat_percentage is body fat in %. | |
| from_date | No | Day as YYYY-MM-DD; when the user says today, yesterday, this week or a weekday, call get_today and count from its date. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | describe_error() of what went wrong; docs/AGENTS.md, Results and errors. |