create_macro_template
Save a named macro target template with calorie, protein, carb, and fat goals, and optionally set it as the weekly default for chosen days.
Instructions
Save a new macro target template, and optionally schedule it.
Args: template_name: Name for the template; must not already exist. calories: Energy target in kcal. protein_grams: Protein in grams. carbs_grams: Net carbs in grams. fat_grams: Fat in grams. days: Also make it the weekly default on these days: "all", "weekdays", "weekends" or e.g. "Mon,Wed,Fri".
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": {
"template_name": "<template_name>",
"calories": "<calories>",
"protein_grams": "<protein_grams>",
"carbs_grams": "<carbs_grams>",
"fat_grams": "<fat_grams>"
},
"name": "create_macro_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| calories | Yes | ||
| fat_grams | Yes | ||
| carbs_grams | Yes | ||
| protein_grams | Yes | ||
| template_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |