set_macro_split
Set the protein, carb, and fat energy split in percentages that total 100; this updates real targets and requires Macro Ratios mode.
Instructions
Set how the energy target is split between protein, carbs and fat.
This changes the user's real targets: confirm the numbers with the user first, and read the current split with get_macro_targets so it can be put back. Values are percent of energy and must add up to 100. Requires Macro Ratios mode; fixed-target and keto modes are rejected. Failed writes attempt restoration and report the resulting state, which may remain partially changed or unknown if recovery fails.
Args: protein: Protein share in percent (e.g. 30). carbs: Carbohydrate share in percent (e.g. 40). fat: Fat share in percent (e.g. 30).
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": {
"protein": "<protein>",
"carbs": "<carbs>",
"fat": "<fat>"
},
"name": "set_macro_split"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fat | Yes | ||
| carbs | Yes | ||
| protein | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |