Search foods
search_foodsSearch the Swedish Food Agency's food composition database by name to retrieve food numbers for further nutrient queries.
Instructions
Search the Swedish Food Agency's food composition database (about 2,600 foods and dishes) by name. Returns food numbers to use with the other tools. All words in the query must appear in the name. Results are ranked, paginated, and include next_cursor when more matches exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | 'analysed' = lab-analysed raw foods, 'calculated' = recipes and dishes computed from ingredients. | any |
| limit | No | Results per page (1-50). | |
| query | Yes | Words to find in the food name, e.g. 'oat milk' or 'falukorv'. | |
| cursor | No | next_cursor from a previous call with the same query. | |
| language | No | Language for food and nutrient names: 'en' (English) or 'sv' (Swedish). Defaults to the server setting. |