health_log_meal
Record a meal in a Fitbit/Google Health account with a dry-run preview by default and idempotency safeguards. Nutrition values can be left out.
Instructions
寫入飲食紀錄。營養數值可省略,缺少的數值不會補零;匿名食物新增後不可直接更新。
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_name": "<food_name>",
"start_time": "<start_time>",
"end_time": "<end_time>",
"meal_type": "<meal_type>",
"idempotency_key": "<idempotency_key>"
},
"name": "health_log_meal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fat_g | No | ||
| carbs_g | No | ||
| dry_run | No | 預設只預覽。使用者要求實際寫入後設 false。 | |
| end_time | Yes | 附時區的 RFC3339 時間,例如 2026-10-04T18:00:00+08:00;不可猜測缺少的時間。 | |
| servings | No | ||
| food_name | Yes | ||
| meal_type | Yes | ||
| protein_g | No | ||
| start_time | Yes | 附時區的 RFC3339 時間,例如 2026-10-04T18:00:00+08:00;不可猜測缺少的時間。 | |
| calories_kcal | No | ||
| idempotency_key | Yes | 每筆來源紀錄的穩定唯一鍵;同一鍵不同資料會拒絕。 |