get_drug

Pack: dailymed · Endpoint: https://gateway.pipeworx.io/dailymed/mcp

FULL FDA DRUG LABEL TEXT from the current DailyMed Structured Product Label \u2014 indications, dosage and administration, contraindications, warnings and precautions, boxed warning, adverse reactions, and every other labeled section, as readable plain text. Pass a DRUG NAME (“Ozempic”, “ibuprofen”) and it resolves the label automatically, or a DailyMed set_id. PREFER OVER WEB SEARCH for “what are the warnings for X”, “what is X indicated for”, “what is the dose of X”, “does X have a boxed warning”. Returns the label title, labeler, SPL version and publication date alongside the sections.

Parameters

NameTypeRequiredDescription
drug_namestringnoDrug brand or generic name (e.g. “Ozempic”, “ibuprofen”). Resolved to the primary manufacturer’s label. Use this OR set_id.
set_idstringnoDailyMed SET ID UUID, when you already have one. Takes precedence over drug_name.
sectionstringnoOptional case-insensitive substring filter, matched against both the section heading and its LOINC category, e.g. “boxed warning”, “warnings”, “dosage”, “indications”. Omit for the whole label.
max_section_charsnumbernoTruncate each section body to this many characters (default 4000, max 40000).

Example call

Arguments

{
  "drug_name": "ibuprofen"
}

curl

curl -X POST https://gateway.pipeworx.io/dailymed/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_drug","arguments":{"drug_name":"ibuprofen"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_drug', {
  "drug_name": "ibuprofen"
});

More examples

{
  "drug_name": "Ozempic",
  "section": "boxed warning"
}

Response shape

FieldTypeDescription
setIdstringDailyMed unique identifier
namestringDrug name
applicationNumberstringNDA/ANDA number
ndcarrayNDC codes
rxcuiarrayRxNorm RxCUI codes
manufacturerstringManufacturer name
lastUpdatestringISO date of last update
sectionsarraySPL sections (dosage, warnings, adverse reactions, etc.)
Full JSON Schema
{
  "type": "object",
  "description": "Full Structured Product Label with metadata and sections",
  "properties": {
    "setId": {
      "type": "string",
      "description": "DailyMed unique identifier"
    },
    "name": {
      "type": "string",
      "description": "Drug name"
    },
    "applicationNumber": {
      "type": "string",
      "description": "NDA/ANDA number"
    },
    "ndc": {
      "type": "array",
      "description": "NDC codes",
      "items": {
        "type": "string"
      }
    },
    "rxcui": {
      "type": "array",
      "description": "RxNorm RxCUI codes",
      "items": {
        "type": "string"
      }
    },
    "manufacturer": {
      "type": "string",
      "description": "Manufacturer name"
    },
    "lastUpdate": {
      "type": "string",
      "description": "ISO date of last update"
    },
    "sections": {
      "type": "array",
      "description": "SPL sections (dosage, warnings, adverse reactions, etc.)",
      "items": {
        "type": "object",
        "properties": {
          "sectionName": {
            "type": "string",
            "description": "Section title (e.g. DOSAGE, WARNINGS)"
          },
          "content": {
            "type": "string",
            "description": "Section content HTML or plain text"
          }
        }
      }
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "dailymed": {
      "url": "https://gateway.pipeworx.io/dailymed/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 21, 2026