get_nutrition
Retrieve a specific nutrition resource (e.g., calories, water, protein) from Fitbit for a chosen period (1d, 7d, 30d, etc.), ending today or on a specified date.
Instructions
Get the raw JSON response for nutrition data from Fitbit for a specified resource and period ending today or on a specific date. Requires 'resource' parameter (caloriesIn, water) and 'period' parameter such as '1d', '7d', '30d', '1w', '1m', '3m', '6m', '1y' and optionally accepts 'date' parameter.
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": {
"resource": "<resource>",
"period": "<period>"
},
"name": "get_nutrition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource | Yes | The nutrition resource to retrieve data for. | |
| period | Yes | The time period for which to retrieve nutrition data. | |
| date | No | The date for which to retrieve nutrition data (YYYY-MM-DD or 'today'). Defaults to 'today'. |