fda_shortage_changes

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

FDA drug-shortage records ordered by update_date, newest first, then restricted to the requested look-back window. Use for recently updated, discontinued, or resolved national shortages; this does not imply availability at any specific pharmacy or hospital. Most rows in any window are “Reverified” (FDA re-checking a status it already had) — pass update_type to filter to the change kinds that actually matter, e.g. New/Discontinued/To Be Discontinued/Resolved, and exclude Reverified.

Parameters

NameTypeRequiredDescription
daysnumbernoLook-back window in days (1-365, default 30).
statusstringnoOptional FDA status: “Current”, “Resolved”, or “To Be Discontinued”.
update_typestringnoOptional filter on the kind of change, applied before paging (e.g. “New”, “Discontinued”, “To Be Discontinued”, “Resolved”, “Updated”; exclude “Reverified” to skip routine re-checks). String or array of strings, matched case-insensitively.
itemsstringno
limitnumbernoMaximum records to return (1-100, default 25).
skipnumbernoPagination offset into the filtered, windowed result set (default 0).

Example call

Arguments

{
  "days": 30,
  "limit": 25
}

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_shortage_changes","arguments":{"days":30,"limit":25}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('fda_shortage_changes', {
  "days": 30,
  "limit": 25
});

More examples

{
  "days": 365,
  "status": "Resolved"
}
{
  "days": 30,
  "update_type": [
    "New",
    "Discontinued",
    "To Be Discontinued"
  ],
  "limit": 100
}

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build September 15, 2026