Get Nutrient Contributions
get_nutrient_contributionsWhich foods in the user's diary supplied a nutrient on a given day, largest first, optionally for one meal.
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": {
"date": "<date>",
"code": "<code>"
},
"name": "get_nutrient_contributions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Nutrient code from list_components, such as FE for iron. | |
| date | Yes | The day, YYYY-MM-DD. | |
| meal | No | Limit to one meal. |