fda_drug_shortages
Pack: openfda · 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/fda_drug_shortages for the schema, then POST the same URL with its arguments for the data.
Search the FDA Drug Shortages database by generic or brand name, manufacturer, status, or an advanced openFDA query. Returns national supply records and available FDA dates; reason and other details are sparse in the upstream data. This is not local pharmacy inventory or medical advice.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
drug | string | no | Generic or proprietary drug name, e.g. “lisdexamfetamine”. |
manufacturer | string | no | Company/manufacturer name. |
status | string | no | FDA status filter: “Current”, “Resolved”, or “To Be Discontinued”. |
query | string | no | Optional raw openFDA shortage query for advanced filters. Combined with the structured filters using AND. |
limit | number | no | Number of records (1-100, default 20). |
skip | number | no | Pagination offset (default 0). |
Example call
Arguments
{
"drug": "lisdexamfetamine",
"status": "Current"
}
curl
curl -X POST https://gateway.pipeworx.io/openfda/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"fda_drug_shortages","arguments":{"drug":"lisdexamfetamine","status":"Current"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('fda_drug_shortages', {
"drug": "lisdexamfetamine",
"status": "Current"
});
More examples
{
"manufacturer": "Pfizer",
"limit": 25
}
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 openfda pack
{
"mcpServers": {
"openfda": {
"url": "https://gateway.pipeworx.io/openfda/mcp"
}
}
}
See Getting Started for client-specific install steps.