get_diary_groups
Retrieve an account's diary groups (meal slots) and their names to correctly interpret food log entries, since custom group names and extra slots shift ordering.
Instructions
Get the account's diary groups (meal slots) and their names.
Group names are customizable, so "Lunch" is not always the same slot:
an account with extra groups such as "Post-workout" shifts every later
group. Use this to interpret entries from get_food_log, whose order
field carries the group in its upper bits (order >> 16):
group here is that number, so an entry with order 196609 is in group 3.
Returns each group as {group, pref, name, enabled}, in diary order. Group 0 is a regular slot whose name depends on the account. A group with enabled=false is hidden in the app but may still contain older entries.
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": "get_diary_groups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |