Get nutrient values
get_nutrientsRetrieve all ~60 nutrient values per 100 g for one food, or filter by codes/names. Unmatched filter terms appear in the response.
Instructions
Get nutrient values per 100 g for one food. Returns all ~60 nutrients (vitamins, minerals, fatty acids, sugars, energy) unless you pass a nutrients filter. Unknown filter terms are listed in 'unmatched'.
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": {
"number": "<number>"
},
"name": "get_nutrients"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | Food number from search_foods (livsmedelsnummer). | |
| language | No | Language for food and nutrient names: 'en' (English) or 'sv' (Swedish). Defaults to the server setting. | |
| nutrients | No | Nutrients to include, by code (e.g. 'PROT', 'ENERC_KCAL', 'VITD') or name fragment (e.g. 'iron', 'vitamin b'). Omit for the default set. |