add_body_composition
Records weight and optional body-composition data, like body fat and muscle mass, by uploading an in-memory .fit weight-scale file to Garmin Connect.
Instructions
Records a weight (kg) with optional body-composition fields such as body fat and muscle mass, uploaded as a .fit weight-scale file built in memory. Builds a .fit binary in memory and uploads it via client.upload to /upload-service/upload; weight validated positive/finite, throws GarminError otherwise.
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": {
"weight": "<weight>"
},
"name": "add_body_composition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| extra | No | ||
| weight | Yes |