search_pubmed
Search PubMed using NCBI esearch to get PMIDs exactly as NCBI returns them for field-tagged, MeSH, Boolean, and date-limited queries, plus match counts and query translation.
Instructions
Search PubMed (NCBI esearch) and return PMIDs exactly as NCBI returns them.
Args:
query: PubMed query; supports field tags, MeSH and Boolean, e.g.
'"hypertrophic cardiomyopathy"[MeSH] AND mavacamten[tiab] AND randomized controlled trial[pt]'.
max_results: 1-200 (default 20). total_matches reports the full hit count.
sort: 'relevance' or 'pub_date' (newest first).
date_from / date_to: optional publication-year bounds (e.g. 2018, 2025).
Returns pmids, total_matches and query_translation (how PubMed interpreted the query; log it for reproducibility).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | relevance | |
| query | Yes | ||
| date_to | No | ||
| date_from | No | ||
| max_results | No |