get_drug
Pack: dailymed · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/get_drug for the schema, then POST the same URL with its arguments for the data.
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
| Name | Type | Required | Description |
|---|---|---|---|
drug_name | string | no | Drug brand or generic name (e.g. “Ozempic”, “ibuprofen”). Resolved to the primary manufacturer’s label. Use this OR set_id. |
set_id | string | no | DailyMed SET ID UUID, when you already have one. Takes precedence over drug_name. |
section | string | no | Optional 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_chars | number | no | Truncate 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
| Field | Type | Description |
|---|---|---|
setId | string | DailyMed unique identifier |
name | string | Drug name |
applicationNumber | string | NDA/ANDA number |
ndc | array | NDC codes |
rxcui | array | RxNorm RxCUI codes |
manufacturer | string | Manufacturer name |
lastUpdate | string | ISO date of last update |
sections | array | SPL 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 — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the dailymed pack
{
"mcpServers": {
"dailymed": {
"url": "https://gateway.pipeworx.io/dailymed/mcp"
}
}
}
See Getting Started for client-specific install steps.