Search the food catalog
search_foodFind foods in the Fitatu catalog by name; try Polish names. Get food IDs, types, default measures, and calories for logging meals.
Instructions
Search the Fitatu food catalog (Polish names work best). Each hit has food_id and type (PRODUCT or RECIPE) for add_food and get_food_measures, name, brand, its default measure (measure_id, name, weight_g or capacity_ml of one measure) with energy_kcal for one such measure, times_used (how often the user logged it; null when the server does not say) and favorite (whether it is one of the user's favourites). A barcode belongs in find_by_barcode. With locale, the hits come from that country's catalog (foods the user logged before show up too) and can be logged like any other.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of hits. | |
| locale | No | Another country's catalog, e.g. de_DE for a product bought in Germany; omit it for the user's own (Polish unless changed in the app). | |
| phrase | Yes | What to look for, e.g. 'jajko' or 'owsianka'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | describe_error() of what went wrong; docs/AGENTS.md, Results and errors. |