mcp-wikibooks-cookbook
v2.2.0Search the Wikibooks Cookbook, read a recipe and rescale it to any number of servings.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_recipes Search the Cookbook
Search the Wikibooks Cookbook for a recipe, by dish name or by an ingredient it uses. 'text' searches the whole of each page, which is what finds a dish from an ingredient inside it; 'title' matches the page name only, which is exact and misses a dish the Cookbook names differently. The Cookbook also holds reference pages on ingredients, techniques and cuisines, and those rank alongside recipes: a row is a page, and only get_recipe can say whether it carries an ingredient list. A full-text row can be a page that merely names the dish: when the titles do not say the words searched for, the note…
| Parameter | Type | Description |
|---|---|---|
query * | string | A dish, such as 'carbonara', or an ingredient, such as 'guanciale'. |
limit | integer | |
search | string | 'text' reads the whole page; 'title' matches the page name only. |
get_recipe Read a recipe
Read one Wikibooks Cookbook page: ingredients, equipment, steps, yield, time, difficulty, category, and the nutrition panel when the page carries one. 'id' is the page key from search_recipes or list_recipes, such as 'Cookbook:Spaghetti_alla_Carbonara'. A plain dish name is accepted and the Cookbook namespace is added. Pass 'servings' to rescale: a countable thing lands on the smallest share a cook can take out of one of it, which is a whole one where half of one cannot be measured out at all, such as an egg or a whole clove, a half where half of one pours, weighs or splits, such as a can or a…
| Parameter | Type | Description |
|---|---|---|
id * | string | Page key from a search, such as 'Cookbook:Spaghetti_alla_Carbonara'. |
max_description_chars | integer | |
servings | integer | Rescale the ingredients to this many servings. |
scale_ingredients Rescale an ingredient list
Rescale a list of English ingredient lines. This contacts no website and works on a list from anywhere, including one the user pasted in. Give either 'factor' directly, or 'from_servings' and 'to_servings' and the factor is computed. Grams, millilitres, ounces and pounds are multiplied and rounded to what a scale can show; a quantity that would fall below one is moved to a smaller unit first, so it never rounds away to nothing. Countable things land where a kitchen can follow, and what decides is the content rather than the container: a can, a packet, a sheet of gelatine or a spoon lands on a…
| Parameter | Type | Description |
|---|---|---|
ingredients * | array | Ingredient lines, for example ['450 g (1 pound) spaghetti', '5 egg yolks', 'Salt']. |
factor | number | Multiplier to apply. Use this or the from/to pair. |
from_servings | number | How many servings the list is written for. |
to_servings | number | How many servings are wanted. |
list_recipes Browse the Cookbook
Browse the Wikibooks Cookbook by cuisine, by kind of dish, or by main ingredient. Give at least one of the three; giving several narrows the result. This is built on the Cookbook's search, because the route this server is allowed to use publishes no way to list the members of a category. What comes back is therefore a ranked sample and not the category itself: it is neither complete nor ordered, and its length says nothing about how many recipes the Cookbook holds on the subject. The Cookbook also holds reference pages on ingredients and techniques, and those rank alongside recipes. Open a row…
| Parameter | Type | Description |
|---|---|---|
cuisine | string | A cuisine or a country, such as 'Italian' or 'Thai'. |
dish_type | string | A kind of dish, such as 'soup', 'dessert' or 'bread'. |
limit | integer | |
main_ingredient | string | The ingredient a recipe is built on, such as 'chicken' or 'lentils'. |