get_nutrition_by_date_range
Retrieve Fitbit nutrition data for a specified resource and date range. Supports resources like caloriesIn, water, protein, and more.
Instructions
Get the raw JSON response for nutrition data from Fitbit for a specific resource and date range. Requires 'resource' parameter (caloriesIn, water), 'startDate' and 'endDate' parameters in 'YYYY-MM-DD' format. Note: The API enforces a maximum range of 1,095 days.
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>",
"startDate": "<startDate>",
"endDate": "<endDate>"
},
"name": "get_nutrition_by_date_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource | Yes | The nutrition resource to retrieve data for. | |
| startDate | Yes | The start date for which to retrieve nutrition data (YYYY-MM-DD). | |
| endDate | Yes | The end date for which to retrieve nutrition data (YYYY-MM-DD). |