Katalog Narzędzi MCP & Endpointów REST API
Allergen Risk & Intolerance Registry
Query allergen hierarchies and identify cross-reactivities for patient meal safety. Integrates EU 1169/2011 compliance codes, hidden allergen derivatives, and sensitivity scores.
search_allergen
https://www.dietspremium.com/_mcp/search/allergen
npx -y dietspremium-mcp
Input Parameters Schema (inputSchema)
| Field name | JSON Type | Status | Description | Example value |
|---|---|---|---|---|
query
|
string | Required | Allergen name or food derivative (e.g. "casein", "peanut", "gluten") | —
|
locale
|
string | Optional | Language locale (en, pl, de, fr, nl, cz, at, ch, lu) | en
|
page
|
integer | Optional | Page number (10 results per page) | 1
|
max_results
|
integer | Optional | Maximum results per page (max 10) | 10
|
ai
|
boolean | Optional | Semantic AI query matching | true
|
JSON-RPC 2.0 Request (tools/call)
search_allergennpx -y dietspremium-mcp --url https://www.dietspremium.com/_mcp
curl -X POST https://www.dietspremium.com/_mcp/search/allergen \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_MCP_KEY" \
-d '{
"query": "lactose dairy whey",
"locale": "en",
"page": 1,
"max_results": 5
}'
MCP Tool Response Structure
application/json • UTF-8{
"content": [
{
"type": "text",
"text": "Found 1 matching allergen: Milk and dairy products (key: Tcc=, Lactose, Casein, Whey) - EU Code: MILK, Risk: High."
}
]
}
Kroki wykonania dla search_allergen
MCP Flow
Instrukcja integracji dla programistów i agentów AI
Instrukcja integracji dla programistów i agentów AI
search_allergen
Przekaż parametry zgodne z tabelą obok (np. locale="en").
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_allergen
“Wykonaj zapytanie do narzędzia search_allergen dla języka EN i zwróć ustrukturyzowane dane kliniczne.”
→ POST https://www.dietspremium.com/_mcp/search/allergen (tool: "search_allergen")
← 200 OK (5 zwalidowanych parametrów)