invent_magical_recipe
Generate magical recipes from specified magical ingredients, with options to customize servings and magic type for culinary enchantments.
Instructions
Invents a magical recipe from magical ingredients.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| magical_ingredients | Yes | ||
| servings | No | ||
| magic_type | No | enchantement |
Implementation Reference
- main.py:287-290 (registration)Registers the 'invent_magical_recipe' tool with the FastMCP framework using the @mcp.tool decorator.@mcp.tool( name="invent_magical_recipe", description="Invents a magical recipe from magical ingredients.", )
- main.py:291-313 (handler)The main handler function that generates a magical recipe dictionary including title, servings, ingredients, steps, magic_type, and a tips URI based on input parameters.async def invent_magical_recipe( magical_ingredients: List[str], servings: int = 2, magic_type: str = "enchantement" ) -> Dict[str, object]: """Invente une recette magique à partir d'ingrédients magiques.""" title = f"Recette Magique de {magic_type}" steps = [ "Mélanger les ingrédients magiques sous la lune.", "Chanter une incantation appropriée.", "Laisser infuser avec de la magie pure.", "Servir avec un sort de présentation.", ] return { "title": title, "servings": servings, "ingredients": magical_ingredients, "steps": steps, "magic_type": magic_type, "tips_uri": "recipes://tips/general", }