fda_drug_events
Pack: openfda · Endpoint: https://gateway.pipeworx.io/openfda/mcp
Search adverse event reports for drugs by name, reaction type, or date range. Returns event counts, reaction types, seriousness levels, and dates.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | OpenFDA search query. Examples: ‘patient.drug.openfda.brand_name:“OZEMPIC”’, ‘patient.drug.openfda.generic_name:“semaglutide”+AND+serious:1’, ‘receivedate:[20240101+TO+20241231]‘ |
limit | number | no | Number of results (1-100, default 10) |
skip | number | no | Offset for pagination (default 0) |
Example call
Arguments
{
"query": "patient.drug.openfda.brand_name:\"OZEMPIC\""
}
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_events","arguments":{"query":"patient.drug.openfda.brand_name:\"OZEMPIC\""}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('fda_drug_events', {
"query": "patient.drug.openfda.brand_name:\"OZEMPIC\""
});
More examples
{
"query": "patient.drug.openfda.generic_name:\"semaglutide\"+AND+serious:1",
"limit": 50
}
Response shape
Always returns: total, skip, limit, results
| Field | Type | Description |
|---|---|---|
total | number | Total count of matching adverse event reports |
skip | number | Offset used in pagination |
limit | number | Number of results returned |
results | array | Array of adverse event report objects |
Full JSON Schema
{
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total count of matching adverse event reports"
},
"skip": {
"type": "number",
"description": "Offset used in pagination"
},
"limit": {
"type": "number",
"description": "Number of results returned"
},
"results": {
"type": "array",
"description": "Array of adverse event report objects",
"items": {
"type": "object"
}
}
},
"required": [
"total",
"skip",
"limit",
"results"
]
}
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.