assign_diet_to_groups
Give the same nutrition plan to every client in one or more groups (confirm-gated: without confirm it previews who would get it, writing nothing). Each client gets their own copy. Same meals format as create_diet_plan, including itemised ingredients on every meal. Note every member gets the same quantities, so for clients with very different calorie needs create individual plans instead. Undo with undo_group_assignment.
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": {
"title": "<title>",
"startDate": "<startDate>",
"meals": "<meals>",
"groupIds": "<groupIds>"
},
"name": "assign_diet_to_groups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meals | Yes | ||
| title | Yes | ||
| confirm | No | Must be true to actually execute. If false/omitted, returns a preview only. | |
| endDate | No | ||
| groupIds | Yes | Group ids from list_client_groups | |
| startDate | Yes | YYYY-MM-DD | |
| allowDuplicates | No | Also give it to a member who already has the same thing over the same dates (default: skip them) | |
| excludeClientIds | No | Members to leave out this time (client User _ids) |