Nih Supplements

v0.2.1
io.github.pipeworx-io/nih-supplements Checked 1 hour ago Published 28 days ago

NIH Supplements

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

supplement_factsheet

A specific vitamin, mineral, or supplement's NIH fact sheet — what it does, whether it works, safety, and interactions with medications. Sourced from NIH's Office of Dietary Supplements (ODS). Two reading levels: 'consumer' (short, plain language) or 'professional' (long, clinical, with a references list). Covers ~45 topics (vitamins, minerals, a few botanicals like ashwagandha) — call supplement_factsheets to see the full list. For popular herbs NOT on that list (turmeric, ginkgo, echinacea, garlic, ginseng, milk thistle, St. John's Wort, and more), use herb_at_a_glance instead.

ParameterTypeDescription
name *stringTopic name, e.g. "Vitamin D", "Ashwagandha", "Magnesium". Fuzzy-matched against the bundled ODS topic list.
levelstringReading level. "consumer" (default) is short and plain-language; "professional" is the long clinical version with a references list.

supplement_factsheets

The bundled list of ~45 topics NIH ODS publishes a fact sheet for (vitamins, minerals, a few botanicals) — what to pass as `name` to supplement_factsheet, and which reading levels each has. Optional `query` filters by substring. There is no live NIH endpoint that lists all fact sheets, so this is a point-in-time inventory read from ODS's own list page.

ParameterTypeDescription
querystringOptional substring filter, e.g. "vitamin" or "iron".

supplement_labels

Search real supplement product labels — brand name, ingredients, amounts, claims — from NIH's Dietary Supplement Label Database (DSLD). This is what's printed on a bottle, not the science behind an ingredient (use supplement_factsheet or herb_at_a_glance for that). Search by product name, brand, or ingredient. Returns each label's `id` for use with supplement_label.

ParameterTypeDescription
query *stringFree-text search — a product name, brand, or ingredient, e.g. "ashwagandha" or "Nature Made fish oil".
limitnumberMax labels to return (default 20, max 50).

supplement_label

One product's full DSLD label detail: manufacturer contact, every ingredient with its amount, other (non-active) ingredients, and the precaution/warning statements printed on the bottle. Takes the numeric `id` a supplement_labels result returned.

ParameterTypeDescription
id *string | numberDSLD label id, from a supplement_labels result.

supplement_recent_changes

New supplement product labels entered into NIH's Dietary Supplement Label Database (DSLD) since a given date — the one NIH supplement upstream that publishes a queryable change signal. Returns each new label's id, brand, product name, and entry date, newest first; deterministic on replay. Scope is stated, not guessed: DSLD does not publish off-market (withdrawal) transitions as dated events, and neither ODS fact sheets nor NCCIH herb pages publish a queryable list of content-update dates — the response says so explicitly instead of pretending to cover them. Each supplement_factsheet respon…

ParameterTypeDescription
since *stringCutoff date, YYYY-MM-DD. Labels entered into DSLD on or after this date are returned.
limitnumberMax new labels to return (default 50, max 200). If more entered since the cutoff, the response sets truncated: true.

herb_at_a_glance

A popular herb's science-and-safety summary from NIH's National Center for Complementary and Integrative Health (NCCIH) 'Herbs at a Glance' series — what the science says, side effects and cautions, and key references. Covers ~56 widely-used herbs (turmeric, ginkgo, echinacea, garlic, ginseng, milk thistle, St. John's Wort, and more) that NIH's Office of Dietary Supplements does NOT have its own fact sheet for. For a vitamin, mineral, or the handful of botanicals ODS does cover (ashwagandha, black cohosh, valerian), use supplement_factsheet instead.

ParameterTypeDescription
herb *stringHerb name, e.g. "turmeric" or "St. John's Wort". Fuzzy-matched against the bundled NCCIH herb list.