faers_warm_cache
Prebuild the EBGM background table and fit the prior before running analyses, preventing first-call timeouts and speeding later score retrieval.
Instructions
Build the EBGM background table and fit the prior ahead of time.
The first faers_ebgm call for a FAERS release takes ~100 s and 100+ API calls, which exceeds many MCP client timeouts. Calling this tool first moves that cost to a turn that expects it; subsequent faers_ebgm calls take a few seconds. Reports whether each cache was already warm.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date_to | No | End of a receivedate window, YYYYMMDD. Must be paired with date_from. | |
| date_from | No | Start of a receivedate window, YYYYMMDD. Must be paired with date_to. | |
| stratify_by | No | Also build the per-stratum marginals and fit the stratified prior. | |
| background_drugs | No | Substances in the background table the prior is fitted on. Building it costs 3 + this many calls, once per FAERS release, then it is cached. | |
| background_events | No | Terms in the background table. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||