Skip to main content
Glama
Symfomany

Recettes MCP Server

by Symfomany

get_recipe_by_index

Retrieve a specific Christmas recipe using its numerical index to access culinary content from recipe databases.

Instructions

Retrieves a Christmas recipe by its index (1-based).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexYes

Implementation Reference

  • main.py:369-374 (handler)
    The asynchronous handler function that implements the logic for retrieving a specific Christmas recipe by its 1-based index from the predefined list, returning the recipe as a dictionary or an error if index is invalid.
    async def get_recipe_by_index(index: int) -> Dict: """Récupère une recette de Noël par son index (1-based).""" recipes = christmas_recipes() if 1 <= index <= len(recipes): return recipes[index - 1].model_dump() return {"error": "Index de recette invalide."}
  • main.py:365-368 (registration)
    The @mcp.tool decorator that registers the get_recipe_by_index tool with its name and description.
    @mcp.tool( name="get_recipe_by_index", description="Retrieves a Christmas recipe by its index (1-based).", )

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Symfomany/mcp-tuto'

If you have feedback or need assistance with the MCP directory API, please join our Discord server