MCP-Tools & API Platform 5.0 Endpunkte
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.
search_recipe
https://www.dietspremium.de/_mcp/search/recipe
npx -y dietspremium-mcp
Eingabeparameter-Schema (inputSchema)
| 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_recipenpx -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{
"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
Instrukcja integracji dla programistów i agentów AI
search_recipe
Przekaż parametry zgodne z tabelą obok (np. locale="de").
McpKeyCodec
Każdy zwrócony rekord posiada pole "key" (Base64), które można bezpiecznie przekazać do narzędzi management_*.
Specjalizowany Agent dla narzędzia search_recipe
“Wykonaj zapytanie do narzędzia search_recipe dla języka DE i zwróć ustrukturyzowane dane kliniczne.”
→ POST https://www.dietspremium.de/_mcp/search/recipe (tool: "search_recipe")
← 200 OK (5 zwalidowanych parametrów)