MCP Testing Documentation

Use this page to test the Model Context Protocol endpoint exposed by this app.

Current MCP Runtime
MCP enabled true
Server name funfoxmeds-mcp
Server version 0.0.1
Endpoint http://funfoxmeds.com/mcp
Test API key funfox-mcp-test-key
Max args length 2000
Max response size 65536
Tool timeout PT30S
Rate limit per minute 60
Allowed origins (not restricted)
Quick Test (Initialize)
curl -sS -X POST "http://funfoxmeds.com/mcp" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "X-API-Key: funfox-mcp-test-key" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "initialize",
    "params": {
      "protocolVersion": "2025-06-18",
      "capabilities": {},
      "clientInfo": {"name": "manual-test", "version": "1.0.0"}
    }
  }'
Available Tools
Tool Description
fetch Fetch detailed information about a drug, NDC product, NDC package, or DailyMed record by its typed ID.
get_dailymed_details Get DailyMed SPL details by SPL Set ID.
get_drug_details Get detailed information about a specific drug by ID.
get_ndc_product Get detailed information about an NDC product by product ID or NDC code.
search Search for drugs, NDC products, or DailyMed records by query. Returns typed IDs that can be fetched with the fetch tool.
search_drugs Search for drugs by brand name, generic name, active ingredient, or condition.
search_pills Search for pills by visual characteristics (imprint, shape, color).
Dynamic Tool Schema JSON
{
  "fetch" : {
    "inputSchema" : {
      "type" : "object",
      "properties" : {
        "id" : {
          "description" : "Typed ID to fetch (e.g., drug:123, ndc-product:ABC, ndc-package:12345-123-12, dailymed:uuid)",
          "type" : "string"
        }
      },
      "required" : [ "id" ]
    },
    "name" : "fetch",
    "description" : "Fetch detailed information about a drug, NDC product, NDC package, or DailyMed record by its typed ID."
  },
  "get_dailymed_details" : {
    "inputSchema" : {
      "type" : "object",
      "properties" : {
        "splSetId" : {
          "description" : "SPL Set ID (UUID)",
          "type" : "string"
        }
      },
      "required" : [ "splSetId" ]
    },
    "name" : "get_dailymed_details",
    "description" : "Get DailyMed SPL details by SPL Set ID."
  },
  "get_drug_details" : {
    "inputSchema" : {
      "type" : "object",
      "properties" : {
        "id" : {
          "description" : "Drug ID",
          "type" : "string"
        }
      },
      "required" : [ "id" ]
    },
    "name" : "get_drug_details",
    "description" : "Get detailed information about a specific drug by ID."
  },
  "get_ndc_product" : {
    "inputSchema" : {
      "type" : "object",
      "properties" : {
        "productIdOrNdc" : {
          "description" : "Product ID or NDC code",
          "type" : "string"
        }
      },
      "required" : [ "productIdOrNdc" ]
    },
    "name" : "get_ndc_product",
    "description" : "Get detailed information about an NDC product by product ID or NDC code."
  },
  "search" : {
    "inputSchema" : {
      "type" : "object",
      "properties" : {
        "query" : {
          "description" : "Search query - drug name, NDC code, active ingredient, or condition",
          "type" : "string"
        },
        "limit" : {
          "description" : "Maximum number of results to return (default 10, max 50)",
          "type" : "integer"
        }
      },
      "required" : [ "query" ]
    },
    "name" : "search",
    "description" : "Search for drugs, NDC products, or DailyMed records by query. Returns typed IDs that can be fetched with the fetch tool."
  },
  "search_drugs" : {
    "inputSchema" : {
      "type" : "object",
      "properties" : {
        "query" : {
          "description" : "Search query",
          "type" : "string"
        },
        "limit" : {
          "description" : "Maximum results (default 10, max 50)",
          "type" : "integer"
        }
      },
      "required" : [ "query" ]
    },
    "name" : "search_drugs",
    "description" : "Search for drugs by brand name, generic name, active ingredient, or condition."
  },
  "search_pills" : {
    "inputSchema" : {
      "type" : "object",
      "properties" : {
        "shape" : {
          "description" : "Pill shape",
          "type" : "string"
        },
        "color" : {
          "description" : "Pill color",
          "type" : "string"
        },
        "imprint" : {
          "description" : "Pill imprint text",
          "type" : "string"
        },
        "limit" : {
          "description" : "Maximum results (default 20, max 50)",
          "type" : "integer"
        }
      }
    },
    "name" : "search_pills",
    "description" : "Search for pills by visual characteristics (imprint, shape, color)."
  }
}