Skip to main content
Back to MCP Tools Catalog search_medication JSON-RPC 2.0 • tools/call
POST /api/v1/medication

Pharmacology & Food-Drug Interactions

Clinical pharmacology screening tool for agentic healthcare workflows. Validates pharmaceutical contraindications against dietary items, meal timings, grapefruit/dairy interference, and micro-nutrient depletions.

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

Input Parameters Schema (inputSchema)

4 Field name
Field name JSON Type Status Description Example value
query string Required Pharmaceutical compound or trade name (e.g. "Levothyroxine", "Metformin") —
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

JSON-RPC 2.0 Request (tools/call)

search_medication
terminal — tools/call search_medication
JSON-RPC 2.0 REQUEST
npx -y dietspremium-mcp --url https://www.dietspremium.com/_mcp
curl -X POST https://www.dietspremium.com/_mcp/search/medication \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_MCP_KEY" \
  -d '{
  "query": "Levothyroxine calcium coffee interaction",
  "locale": "en",
  "page": 1,
  "max_results": 5
}'

MCP Tool Response Structure

application/json • UTF-8
response — search_medication (JSON-RPC 2.0)
MCP Response 200 OK
{
  "content": [
    {
      "type": "text",
      "text": "Interaction Notice: Levothyroxine (key: MTg0NQ==) absorption reduced up to 55% when co-administered with calcium supplements or coffee within 30-60 minutes."
    }
  ]
}
Kroki wykonania dla search_medication MCP Flow

Instrukcja integracji dla programistów i agentów AI

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

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

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_medication Ready

Specjalizowany Agent dla narzędzia search_medication

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

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

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

Other MCP Server Tools

Pełny katalog MCP →

Share