create_food
Create a custom food with brand, serving size, calories, and macronutrients in FatSecret after verifying profile authentication with check_auth_status.
Instructions
Create a custom food with nutrition info. Premier exclusive. Requires profile auth (check_auth_status first).
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": {
"brand_name": "<brand_name>",
"food_name": "<food_name>",
"serving_size": "<serving_size>",
"calories": "<calories>",
"fat": "<fat>",
"carbohydrate": "<carbohydrate>",
"protein": "<protein>"
},
"name": "create_food"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fat | Yes | Total fat (g) | |
| iron | No | ||
| fiber | No | ||
| sugar | No | ||
| sodium | No | ||
| calcium | No | ||
| protein | Yes | Protein (g) | |
| calories | Yes | Calories (kcal) | |
| food_name | Yes | Food name | |
| potassium | No | ||
| trans_fat | No | ||
| vitamin_a | No | ||
| vitamin_c | No | ||
| vitamin_d | No | ||
| brand_name | Yes | Brand name | |
| cholesterol | No | ||
| added_sugars | No | ||
| carbohydrate | Yes | Total carbohydrate (g) | |
| serving_size | Yes | Serving size description (e.g. "1 slice") | |
| saturated_fat | No | ||
| serving_amount | No | ||
| calories_from_fat | No | ||
| monounsaturated_fat | No | ||
| polyunsaturated_fat | No | ||
| serving_amount_unit | No |