Set daily nutrition goal
metri_set_daily_goalUse this when the user wants to set or change their daily calorie target and optional protein, fat, or carbohydrate targets. Returns the previous goal and today's progress against the new goal, shown as a card. The new goal applies from now on, including the rest of today; days that have already ended keep the goal they were lived against. Nothing is deleted: earlier goals are kept, and the goal can be changed back at any time.
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": {
"kcal": "<kcal>"
},
"name": "metri_set_daily_goal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fat | No | Daily fat target in grams. Omit to keep the current fat target; null clears it. | |
| kcal | Yes | Daily calorie target in kcal. | |
| carbs | No | Daily carbohydrate target in grams. Omit to keep the current carbohydrate target; null clears it. | |
| protein | No | Daily protein target in grams. Omit to keep the current protein target; null clears it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| render | Yes | Orders the attached card among other metri cards. | |
| dashboard | Yes | Today's totals and the complete goal now in force (goal), including macro targets kept from the previous goal, as shown on the attached card. | |
| previousGoal | Yes | The goal this call replaced, or null when the user had none. Set it again to undo the change. |