Get Goal Stats
get_goal_statsOne goal over a date range: amount per day, least, average and most, days the target was met, and the foods that counted most. Up to 90 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": {
"key": "<key>",
"start_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "get_goal_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Goal key from get_goals. | |
| end_date | Yes | Last day, YYYY-MM-DD. | |
| start_date | Yes | First day, YYYY-MM-DD. |