mcp-pequerecetas
v1.2.0Read Spanish family recipes from Pequerecetas and rescale them honestly.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_recipe Read one recipe
Read one page of the recipe section by the slug in its address, such as 'paella-de-marisco'. 'kind' says what the page turned out to be: a 'recipe', or a 'collection', which is an article gathering other recipes and carries no ingredients of its own. A recipe says under 'source_shape' where its ingredients were read: 'structured' from the block the page publishes for search engines, 'article' from the body of the page, which is where most of this site's recipes keep them. Pass 'servings' to rescale the quantities; a recipe whose page states no number of servings comes back unscaled and says so…
| Parameter | Type | Description |
|---|---|---|
id * | string | The slug in a recipe's address, from search_recipes or browse_recipes. |
servings | integer | Rescale the quantities to this many, up to 1000. Left out, the recipe comes back as published. |
search_recipes Search the recipes
Search Pequerecetas for a dish or an ingredient, in Spanish. The site serves its search on one page and offers no second page, so 'result_count' counts the rows served and 'total_available' is null: the site publishes no count of what a search matched. The rows come in the site's own order, which is not by how well they match, so a dish named in the query can sit well down the page and 'limit' cuts in that order. A row carries the slug that get_recipe takes. Some rows are articles gathering recipes rather than recipes, which get_recipe reports as a 'collection'. To narrow by diet, ingredient,…
| Parameter | Type | Description |
|---|---|---|
query * | string | What to search for, in Spanish: a dish, an ingredient, a technique. |
limit | integer | Rows to return, at most 60. Left out, every row served comes back. |
list_facets List the taxonomies recipes are browsed by
List the values the site browses its recipes by. The taxonomies are dieta, edad, ingrediente, ocasion, recetas-de, tecnica, tipo-de-cocina, tipo-plato: diet, the age of whoever eats it, main ingredient, occasion, moment of the day, appliance, cuisine and kind of dish. Call this before browse_recipes rather than spelling a value yourself. Pass 'facet' for one taxonomy, or leave it out for all eight, which costs one request per taxonomy.
| Parameter | Type | Description |
|---|---|---|
facet | string | One taxonomy: dieta, edad, ingrediente, ocasion, recetas-de, tecnica, tipo-de-cocina, tipo-plato. All eight when left out. |
browse_recipes Read one taxonomy's recipes
Browse the recipes a taxonomy holds, one page at a time. 'facet' is one of dieta, edad, ingrediente, ocasion, recetas-de, tecnica, tipo-de-cocina, tipo-plato, and 'value' is a slug from list_facets: the site writes its own slugs and answers one built by hand with a page it does not hold. Read 'page_served' rather than assuming the page asked for, and 'has_more' to know whether the site offers another. 'total_available' is null because the site prints no count on these pages. The taxonomies cannot be combined: this site offers no way to ask for two at once.
| Parameter | Type | Description |
|---|---|---|
facet * | string | The taxonomy to browse: dieta, edad, ingrediente, ocasion, recetas-de, tecnica, tipo-de-cocina, tipo-plato. |
value * | string | A slug from list_facets, such as 'thermomix'. |
page | integer | Which page to read. The first when left out. |
scale_ingredients Rescale a list of ingredients
Rescale a list of Spanish ingredient lines, offline. Give either 'factor', or 'from_servings' and 'to_servings' together. Each line comes back with what was done to it: 'scaled' when the arithmetic landed exactly, 'rounded' when the value had to move to stay something a kitchen can measure out, and 'unscaled' when the line carries no quantity at all. Nothing is converted between unit systems, and an approximate measure such as a pizca keeps its own size. A line naming a tool rather than an ingredient is marked 'is_equipment' and left as it was given.
| Parameter | Type | Description |
|---|---|---|
ingredients * | array | The lines to rescale, as the recipe wrote them. |
factor | number | What to multiply the quantities by. Give this, or the two servings counts. |
from_servings | integer | How many the list was written for. |
to_servings | integer | How many it should serve. |