Query food, drink and weight logs
query_logsWhat the person logged in the app: food with calories, macros and fruit and veg portions, drinks by kind (coffee, water, alcohol...), and typed weight. Each entry carries its time and part of day: morning, midday, evening or late. For a day's totals, use query_metrics.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "query_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day, inclusive. Omitted: today in the account time zone. | |
| from | No | First day, inclusive. Omitted: six days before `to`, so the last seven days only. Pass it for anything longer, up to 366 days per call. | |
| kind | No | ||
| limit | No | Rows per page, 1 to 500. | |
| client | No | For a coach: a client id from list_clients, to read that client. Omitted: your own account. | |
| cursor | No | The cursor from the previous page, to continue. | |
| part_of_day | No |