add_food_entry
Log a food item to your FatSecret diary by specifying food, serving, quantity, meal, and date; an idempotency key prevents duplicate entries when retrying.
Instructions
Add a food diary entry once, keyed by a durable idempotency value.
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": {
"food_id": "<food_id>",
"food_entry_name": "<food_entry_name>",
"serving_id": "<serving_id>",
"number_of_units": "<number_of_units>",
"meal": "<meal>",
"idempotency_key": "<idempotency_key>"
},
"name": "add_food_entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| meal | Yes | ||
| food_id | Yes | ||
| serving_id | Yes | ||
| food_entry_name | Yes | ||
| idempotency_key | Yes | ||
| number_of_units | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |