fda_event_counts
ActiveTool of mcp-openfda
declared in 0.1.0
Aggregate adverse events by reaction type, patient age, or outcome. Returns top reactions for a drug and event trends over time.
Parameters schema
{
"type": "object",
"examples": [
{
"query": "patient.drug.openfda.brand_name:\"ASPIRIN\"",
"count_field": "patient.reaction.reactionmeddrapt.exact"
},
{
"query": "serious:1+AND+receivedate:[20230101+TO+20231231]",
"count_field": "receivedate"
}
],
"required": [
"query",
"count_field"
],
"properties": {
"query": {
"type": "string",
"description": "OpenFDA search query to filter events before counting. Same syntax as fda_drug_events."
},
"count_field": {
"type": "string",
"description": "Field to count/aggregate by. Examples: \"patient.reaction.reactionmeddrapt.exact\" (top reactions), \"receivedate\" (timeline), \"serious\" (severity breakdown), \"patient.drug.openfda.brand_name.exact\" (co-reported drugs)"
}
}
}Parent server
mcp-openfda
https://github.com/pipeworx-io/mcp-openfda
2/7 registries