OpenParable
Skip to content
← Back to skills

Faers Query

Research
faers-query

Faers Query is an Agent Skill for research published in the BioTender-max/awesome-bio-agent-skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Query the FDA Adverse Event Reporting System (FAERS) via openFDA API. Use whenever the user asks about adverse drug reactions, side effects, drug safety signals, or wants to look up reported adverse events for one or more drug names.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/BioTender-max/awesome-bio-agent-skills/blob/HEAD/skills/drugclaw/faers/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/faers-query, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

FAERS Query Skill

Query adverse event reports from FDA's FAERS database. No API key required.

API

FunctionInputReturns
get_metadata()—{total, last_updated}
count_reactions(drug, top_n)single drug name[{term, count}, ...]
count_reactions_batch(drugs, top_n)list of drug names{drug: [{term, count}, ...]}
search_adverse_events(drug, limit)single drug nameraw openFDA response dict
summarize_reactions(reactions, drug)reaction list + labelcompact one-line text

Usage

See if __name__ == "__main__" block in faers_query.py for runnable examples covering: single drug query, batch query, metadata retrieval, raw report inspection, and LLM-friendly summary output.

Notes

  • Drug names should be uppercase (auto-converted internally).
  • Input accepts a single string or a list of strings for batch queries.
  • summarize_reactions produces compact DRUG: reaction(count), ... format suitable for LLM context.
  • Source: openFDA Drug Adverse Events endpoint (https://api.fda.gov/drug/event.json).