search_pubmed
Search PubMed and other NCBI databases, retrieving matching article UIDs and total count. Supports date filtering and sorting by relevance or publication date.
Instructions
Search an NCBI Entrez database (ESearch) and return matching UIDs plus the total result count.
db defaults to "pubmed" but accepts any Entrez database name (e.g. "pmc", "gene", "protein").
sort accepts database-specific values such as "relevance" or "pub_date" (pubmed).
mindate/maxdate use YYYY/MM/DD, YYYY/MM, or YYYY and require datetype ("pdat" or "edat").
Result is capped at 10000 UIDs per NCBI policy; use retstart to page through more.
Examples: search_pubmed(term="CRISPR AND cancer", retmax=50) search_pubmed(term="covid-19", db="pmc", sort="pub_date", mindate="2024/01/01", maxdate="2024/12/31", datetype="pdat")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db | No | pubmed | |
| sort | No | ||
| term | Yes | ||
| retmax | No | ||
| maxdate | No | ||
| mindate | No | ||
| datetype | No | ||
| retstart | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||