openfda
Search FDA drug labels, adverse events, and enforcement reports with field:term queries to retrieve JSON records for drug safety and recall research.
Instructions
Search openFDA drug labels, adverse events or enforcement reports.
query is an openFDA search expression (field:term), for example
openfda.brand_name:"advil" or indications_and_usage:"pain" for
labels, patient.drug.medicinalproduct:"ibuprofen" for events, and
reason_for_recall:"contamination" for enforcement. No matches are a
normal count: 0, not an error.
Records are upstream JSON and can be large (a drug label is ~10 KB), so the default limit is 3; keep it small. An optional free OPENFDA_API_KEY raises rate limits but is not required.
Args: query: openFDA search expression. endpoint: "drug/label", "drug/event" or "drug/enforcement". limit: Records to return, 1-10 (default 3). skip: Records to skip, 0-1000.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "openfda"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skip | No | ||
| limit | No | ||
| query | Yes | ||
| endpoint | No | drug/label |