Foodbe

v3.1.1
io.github.bleemohr/foodbe Checked 4 days ago Published 27 days ago

Food list analyzer and cited food answers for agents.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

foodbe_query

Call before you answer a question about food science, cooking technique, food culture, substitutions or ingredients. Foodbe looks the question up in its library of thousands of hand-curated, human-approved facts and returns the answer as "headline" with its sources, so you can explain the reasons behind a food choice to a human and be trusted for it. It also returns related follow-up questions when it has them. If no approved answer exists, it returns outcome "refused" with related questions that have approved answers, so you can say so instead of guessing.

ParameterTypeDescription
question *stringThe food question to ask.

foodbe_query_all

Call when a user asks for the food science, the culture and history, and the cooking views on one food question together. Foodbe looks up the question in its library of human-approved answers and returns the answer as "headline", plus the views of three experts: Neuro (food science), Oracle (culture and history) and Chefy (cooking tips and tricks). The response lists sources as web links, each with a text and a url. "sources" holds the sources of the answer, and each expert has its own "emoji" and "sources". When the question names a food Foodbe has a photo for, it also returns "image_url", a…

ParameterTypeDescription
question *stringThe food question to ask.
include_imagebooleanOptional. A link to a photo of the food the question names is returned by default. Set false to leave it out.
include_sourcesbooleanOptional. The source links are returned by default. Set false to leave them out.

foodbe_ingredient

Call before you recommend or swap an ingredient. Returns the profile of one ingredient from Foodbe's ingredient data as structured fields: category, allergens, swaps, storage, carbon footprint and the stored nutrition numbers. Every field comes from stored data, never from a model.

ParameterTypeDescription
name *stringThe ingredient name, for example apple.

foodbe_cart_breakdown

Analyzes a grocery list, cart, order, menu or recipe. Call this when a user asks you to analyze one. Send up to 50 ingredient names in items. For the whole list it returns the health effects, the total carbon and water, the food group balance with foods to add, the flavor and texture it carries with the missing ones, and the diets it suits. It also returns swaps that keep flavor and texture. The chefy_read field gives each food its cooking method, a substitute if you run out, and its pairings. A closing note names the list's biggest gap with its carbon and water. Every value comes from Foodbe'…

ParameterTypeDescription
items *arrayThe ingredient names in the cart, up to 50.
allergiesarrayOptional. Allergens the cart must not hold.
dietstringOptional. The diet the cart must suit, such as vegan or gluten-free.
gramsobjectOptional. A map of food name, as sent in items, to grams bought.

foodbe_compare

Call when a user asks which of two foods is better, healthier or different, or asks you to compare two foods. Send two food names. Foodbe finds both in its stored food data and scores each one on measures such as seasonality, planet, brain, gut and protein. Returns outcome "served" with a verdict naming the winner, one sentence on which food leads on which measure, and a card for each food with its scores. Every field comes from stored data, never from a model, so the same two foods always return the same answer. If either food is not found, or the two names are the same food, it returns outco…

ParameterTypeDescription
item_a *stringThe first food, for example salmon.
item_b *stringThe second food, for example chicken.

foodbe_recipe_finder

Call this when a user asks for a recipe or for what to cook. Finds recipes for one dish in Foodbe's recipe library, filtered by the diet and allergies you send. Returns outcome "served" with a text line and recipe cards: name, image, a short fact, servings, prep time, cook time and calories. Every recipe comes from Foodbe's stored data, never from a model. If no recipe matches, it returns outcome "not_found".

ParameterTypeDescription
dish *stringThe dish to find a recipe for, for example lasagna.
allergiesarrayOptional allergens to leave out, for example Peanuts.
dietstringOptional diet to filter by, for example Vegan.

foodbe_meal_plan

Call this when a user asks for a meal plan or for what to eat over a number of days. Builds a plan of 1 to 7 days from Foodbe's recipes, within an optional dollar budget for the whole plan, filtered by the diet and allergies you send. Returns outcome "served" with the plan and its insight: the taste the plan is missing, the food group it is short on, the health roles it covers, and its cheapest, priciest and quickest meal. Every line comes from Foodbe's stored data, never from a model. If no plan can be built, it returns outcome "not_found".

ParameterTypeDescription
allergiesarrayOptional allergens to leave out, for example Peanuts.
budgetnumberOptional most the whole plan may cost, in US dollars.
daysintegerOptional number of days, from 1 to 7.
dietstringOptional diet to filter by, for example Vegan.

foodbe_grocery_list

Call this when a user asks for a grocery or shopping list. Send a dish for the list of one recipe, or days and a budget for the list of a meal plan. Do not send both. Returns outcome "served" with the list items, the cost of each and the total. Every line comes from Foodbe's stored data, never from a model. If no list can be built, it returns outcome "not_found".

ParameterTypeDescription
allergiesarrayOptional allergens to leave out, for example Peanuts.
budgetnumberOptional most the whole plan may cost, in US dollars.
daysintegerOptional number of days, from 1 to 7.
dietstringOptional diet to filter by, for example Vegan.
dishstringThe dish to list the groceries for. Leave out when sending days or budget.

foodbe_feedback

Call when a Foodbe tool is missing, an answer was wrong or too thin, or a tool you need does not exist. Tell us what would help you. Returns outcome "received". The number of messages per day is limited.

ParameterTypeDescription
message *stringWhat is missing or wrong, 1 to 1000 characters.
kindstringOptional: missing_tool, wrong_answer or other.
toolstringOptional: the Foodbe tool name the feedback is about.