get_trend
Calculate weight, body composition, or health metric trends by day, week, or month, returning first/last values, change, min/max/avg, and weekly slope.
Instructions
Read-only. Call check_auth_status first. Metric trend with day/week/month buckets, first/last/change/min/max/avg and slope per week. Metric: weight_kg, weight_lb, bmi, body_fat_pct, body_fat_kg, subcutaneous_fat_pct, visceral_fat, muscle_pct, muscle_mass_kg, skeletal_muscle_pct, skeletal_muscle_kg, bone_mass_kg, body_water_pct, body_water_kg, protein_pct, protein_kg, lean_body_mass_kg, bmr, body_age, body_score, whr, smi, obesity_degree, heart_rate, impedance.
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": "get_trend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| suid | No | Profile id; defaults to the active profile | |
| since | No | Earliest measured time (RFC3339 or date) | |
| until | No | Latest measured time (RFC3339 or date) | |
| bucket | No | Bucket: day, week or month (default week) | |
| metric | Yes | Metric to trend (see tool description) | |
| include_deleted | No | Include tombstoned rows (default false) |