Skip to main content
Zurück zum MCP-Tool-Katalog search_recipe JSON-RPC 2.0 • tools/call
POST /api/v1/recipe

Culinary Recipes & Macro Balancing

Query balanced recipes with granular ingredient gram weights, step-by-step cooking methods, prep/cook timings, and nutritional totals for smart meal plan compilation.

Nazwa narzędzia MCP search_recipe
Endpoint HTTP / Stream https://www.dietspremium.de/_mcp/search/recipe
Mostek CLI (stdio) npx -y dietspremium-mcp
Kontrakt Wejściowy (JSON Schema)

Eingabeparameter-Schema (inputSchema)

5 Feldname
Feldname JSON-Typ Status Beschreibung Beispielwert
query string Erforderlich Search phrase (e.g. "quick keto salmon salad", "vegan high-protein pasta") —
locale string Optional Language locale en
page integer Optional Page number (10 results per page) 1
max_results integer Optional Number of results (max 10) 10
ai boolean Optional Semantic AI search true

JSON-RPC 2.0 Aufruf (tools/call)

search_recipe
terminal — tools/call search_recipe
JSON-RPC 2.0 REQUEST
npx -y dietspremium-mcp --url https://www.dietspremium.de/_mcp
curl -X POST https://www.dietspremium.de/_mcp/search/recipe \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_MCP_KEY" \
  -d '{
  "query": "quick keto Mediterranean avocado salmon salad",
  "locale": "en",
  "page": 1,
  "max_results": 5,
  "ai": true
}'

Antwortstruktur des MCP-Tools

application/json • UTF-8
response — search_recipe (JSON-RPC 2.0)
MCP Response 200 OK
{
  "content": [
    {
      "type": "text",
      "text": "Recipe: Avocado Salmon Keto Bowl (key: OTI=) - Prep: 15 min, Calories: 480 kcal, Protein: 38g, Fat: 32g, Carbs: 8g. Ingredients: 150g Atlantic Salmon, 1/2 Avocado, 50g Spinach, 10g Olive Oil."
    }
  ]
}
Kroki wykonania dla search_recipe MCP Flow

Instrukcja integracji dla programistów i agentów AI

1
Walidacja argumentów wejściowych (search_recipe) search_recipe

Przekaż parametry zgodne z tabelą obok (np. locale="de").

2
Odczyt wyniku i klucza Base64 (key) McpKeyCodec

Każdy zwrócony rekord posiada pole "key" (Base64), które można bezpiecznie przekazać do narzędzi management_*.

Subagent_recipe Ready

Specjalizowany Agent dla narzędzia search_recipe

MCP v2.0 Tool Runner
Prompt Wejściowy Agenta AI

“Wykonaj zapytanie do narzędzia search_recipe dla języka DE i zwróć ustrukturyzowane dane kliniczne.”

Wykorzystywane Narzędzia MCP / Endpointy
search_recipe
Ślad Wywołania (Execution Trace)
→ POST https://www.dietspremium.de/_mcp/search/recipe (tool: "search_recipe")
← 200 OK (5 zwalidowanych parametrów)

Weitere MCP-Server-Tools

Pełny katalog MCP →

Teilen