Fitaily MCP
Foods & catalog
Product search, barcode lookup and the user’s private product catalog (CRUD). Always source macros here before logging a meal.
search_foods
readnutrition:readSearch foods
Search the food catalog by name (per-100g macros, servings). Call this before add_meal when the user names a product instead of giving macros.
Parameters
| Parameter | Type | Description |
|---|---|---|
| query * | string | Search query (2–120 chars). |
| limit default: 10 | integer | Max results (1–20). |
get_food_by_barcode
readnutrition:readFind food by barcode
Look up a product by barcode (per-100g macros).
Parameters
| Parameter | Type | Description |
|---|---|---|
| code * | string | Barcode (4–32 chars). |
get_my_products
readnutrition:readYour saved products
List food products created by the user, including their per-100g/ml nutrition. Use an id from this list to edit or delete a product.
Parameters
| Parameter | Type | Description |
|---|---|---|
| limit default: 50 | integer | Max results (1–100). |
| offset default: 0 | integer | Pagination offset (0–10000). |
create_my_product
writenutrition:writeCreate a saved product
WRITE: save a food product to the user's private product catalog. Nutrition values are per 100 g or ml. Confirm the name, unit and macros with the user before saving.
Parameters
| Parameter | Type | Description |
|---|---|---|
| name * | string | Product name (1–200). |
| brand | string | Brand (≤120). |
| barcode | string | Barcode (≤32). |
| baseUnit * | enum(g|kg|ml|l|szt|łyżka|łyżeczka|szklanka) | Base unit. |
| caloriesPer100 * | number | Calories per 100 g/ml. |
| proteinPer100 * | number | Protein per 100 g/ml. |
| carbsPer100 * | number | Carbs per 100 g/ml. |
| fatPer100 * | number | Fat per 100 g/ml. |
| …optional | object | Optional extras: sugar, fiber, salt, saturated fat, vitamins, sodium, etc. plus servingSize/servingUnit. |
update_my_product
writenutrition:writeUpdate a saved product
WRITE: edit a product created by the user. Provide its id and only changed fields; existing nutrition and optional details are preserved. Confirm the proposed changes first.
Parameters
| Parameter | Type | Description |
|---|---|---|
| id * | string | Product id. |
| …fields | object | Any product fields to change (at least one). |
delete_my_product
destructivenutrition:writeDelete a saved product
WRITE: permanently delete a product created by the user. Confirm using its name before deletion.
Parameters
| Parameter | Type | Description |
|---|---|---|
| id * | string | Product id. |