search_drug_events
Pack: fda · Endpoint: https://gateway.pipeworx.io/fda/mcp
Search FDA adverse drug event reports for patient reactions and outcomes. Returns reported side effects, drug details, and case outcomes. Use to investigate medication safety concerns or identify adverse reactions.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Search query using openFDA syntax (e.g., “patient.drug.medicinalproduct:aspirin” or just a drug name) |
limit | number | no | Number of results to return (default 5, max 100) |
Example call
Arguments
{
"query": "patient.drug.medicinalproduct:aspirin",
"limit": 10
}
curl
curl -X POST https://gateway.pipeworx.io/fda/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_drug_events","arguments":{"query":"patient.drug.medicinalproduct:aspirin","limit":10}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('search_drug_events', {
"query": "patient.drug.medicinalproduct:aspirin",
"limit": 10
});
More examples
{
"query": "ibuprofen"
}
Response shape
Always returns: query, total, limit, results
| Field | Type | Description |
|---|---|---|
query | string | The search query used |
total | number | Total number of matching results |
limit | number | Maximum results returned |
results | array | Array of adverse drug event reports |
Full JSON Schema
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "The search query used"
},
"total": {
"type": "number",
"description": "Total number of matching results"
},
"limit": {
"type": "number",
"description": "Maximum results returned"
},
"results": {
"type": "array",
"description": "Array of adverse drug event reports",
"items": {
"type": "object",
"properties": {
"safety_report_id": {
"type": "string",
"description": "Unique safety report identifier"
},
"receive_date": {
"type": "string",
"description": "Date report was received"
},
"seriousness": {
"type": "string",
"description": "Seriousness level of the adverse event"
},
"country": {
"type": [
"string",
"null"
],
"description": "Country of primary source"
},
"patient": {
"type": "object",
"properties": {
"sex": {
"type": [
"string",
"null"
],
"description": "Patient sex/gender"
},
"age": {
"type": [
"string",
"null"
],
"description": "Patient age"
},
"reactions": {
"type": "array",
"description": "List of reported patient reactions",
"items": {
"type": "object",
"properties": {
"reaction": {
"type": "string",
"description": "MedDRA reaction term"
},
"outcome": {
"type": [
"string",
"null"
],
"description": "Outcome of the reaction"
}
},
"required": [
"reaction"
]
}
},
"drugs": {
"type": "array",
"description": "List of drugs involved in the adverse event",
"items": {
"type": "object",
"properties": {
"name": {
"type": [
"string",
"null"
],
"description": "Drug medicinal product name"
},
"indication": {
"type": [
"string",
"null"
],
"description": "Drug indication or usage"
},
"dosage": {
"type": [
"string",
"null"
],
"description": "Drug dosage text"
},
"characterization": {
"type": [
"string",
"null"
],
"description": "Drug characterization"
}
}
}
}
}
}
},
"required": [
"safety_report_id",
"receive_date",
"seriousness",
"patient"
]
}
}
},
"required": [
"query",
"total",
"limit",
"results"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"fda": {
"url": "https://gateway.pipeworx.io/fda/mcp"
}
}
}
See Getting Started for client-specific install steps.