b340_contract_pharmacies
Pack: drug-prices · Endpoint: https://gateway.pipeworx.io/drug-prices/mcp
List the contract pharmacies a 340B covered entity dispenses through, or work backwards from a pharmacy chain to the covered entities it serves. Returns pharmacy name, city, state, contract begin date and termination date. Answers how large a hospital 340B pharmacy network is, which chains a health center contracts with, and how many 340B relationships a chain like Walgreens or CVS holds in a state.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id340b | string | no | The covered entity, e.g. “DSH340075H”. Give this or pharmacy. |
pharmacy | string | no | Match part of a pharmacy name, e.g. “Walgreens”. Give this or id340b. |
state | string | no | Restrict to pharmacies in this state (“TX” or “Texas”). |
include_terminated | boolean | no | Include contracts whose termination date has passed. Default false. |
limit | number | no | Max rows, default 25, max 200. |
Example call
Arguments
{
"pharmacy": "Walgreens",
"state": "OH"
}
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":"b340_contract_pharmacies","arguments":{"pharmacy":"Walgreens","state":"OH"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('b340_contract_pharmacies', {
"pharmacy": "Walgreens",
"state": "OH"
});
More examples
{
"id340b": "CH034210"
}
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.