meps_conditions_for_drug
Pack: meps · Endpoint: https://gateway.pipeworx.io/meps/mcp
What a drug is actually being prescribed for in the US population, ranked by estimated people. Answers off-label and multi-use questions that a label or an approval database cannot: what gabapentin, metformin or amitriptyline are really used to treat in practice. Give a generic drug name.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
drug | string | yes | Generic drug name, e.g. “gabapentin”, “metformin”. |
year | number | no | Survey year. Defaults to the most recent loaded. |
min_sample | number | no | Minimum survey respondents behind a row, default ${DEFAULT_MIN_PERSONS}. |
limit | number | no | Max conditions, default 20, max 100. |
Example call
Arguments
{
"drug": "gabapentin"
}
curl
curl -X POST https://gateway.pipeworx.io/meps/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"meps_conditions_for_drug","arguments":{"drug":"gabapentin"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('meps_conditions_for_drug', {
"drug": "gabapentin"
});
More examples
{
"drug": "metformin"
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"meps": {
"url": "https://gateway.pipeworx.io/meps/mcp"
}
}
}
See Getting Started for client-specific install steps.