nadac_history
Pack: drug-prices · Endpoint: https://gateway.pipeworx.io/drug-prices/mcp
Weekly price history for one drug NDC — how the pharmacy acquisition cost (NADAC) moved over time. Use for “has the price of this generic gone up”, shortage-driven price spikes, or generic erosion after a patent expiry. Returns one row per published week, oldest to newest, with the pricing unit and the percentage change across the window. Keyless.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ndc | string | yes | National Drug Code in any common format (11-digit, dashed 5-4-2, or 10-digit). |
weeks | number | no | How many recent weekly observations to return, 1–260 (default 26). |
Example call
Arguments
{
"ndc": "00093-5056-10",
"weeks": 26
}
curl
curl -X POST https://gateway.pipeworx.io/drug-prices/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"nadac_history","arguments":{"ndc":"00093-5056-10","weeks":26}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('nadac_history', {
"ndc": "00093-5056-10",
"weeks": 26
});
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"drug-prices": {
"url": "https://gateway.pipeworx.io/drug-prices/mcp"
}
}
}
See Getting Started for client-specific install steps.