list_magical_ingredients
Retrieve magical ingredients filtered by style to support recipe creation and culinary management within the Recettes MCP Server.
Instructions
Returns a list of magical ingredients by style.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| style | No | basics |
Implementation Reference
- main.py:338-344 (handler)The main handler function implementing the logic to return lists of magical ingredients based on the provided style ('basics', 'dark', or default).async def list_magical_ingredients(style: str = "basics") -> List[str]: """Retourne une liste d'ingrédients magiques selon un style.""" if style == "basics": return ["poudre de licorne", "ailes de fée", "potion d'élixir", "feuilles de mandragore", "cristaux de lune"] if style == "dark": return ["sang de dragon", "œil de troll", "racine de belladone", "poussière de vampire", "larmes de sirène"] return ["étoiles filantes", "nectar d'arc-en-ciel", "plumes de phénix", "ambre magique", "eau de source enchantée"]
- main.py:334-337 (registration)The @mcp.tool decorator that registers the tool with the specified name and description.@mcp.tool( name="list_magical_ingredients", description="Returns a list of magical ingredients by style.", )