fh_pubmed_search_articles
Search PubMed with full query syntax, year and sort filters, returning structured rows with PMID, title, author, year, journal, publication types, free full-text PMCID, and library status.
Instructions
Search PubMed with its own query syntax (AND / OR, field tags like [pt], [ti], [mesh]); sort relevance | newest; years "2020-2026". Faster and far smaller than asking PubMed: the total and up to 100 rows as arrays in columns order — PMID, title, first author, year, journal, publication types, PMCID when free full text exists, and the library level when the paper is already stored. The same search is answered from disk for 7 days. For a batch of PMIDs: fh_pubmed_fetch_articles; for abstract or full text: fh_library_read.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "fh_pubmed_search_articles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | relevance (PubMed's ranking) or newest (publication date, latest first). | relevance |
| query | Yes | PubMed query, full syntax: "tadalafil AND (systematic review[pt] OR meta-analysis[pt])". | |
| years | No | Publication years: "2020-2026", "2022-", "-2019" or "2022". | |
| max_results | No | Rows to return (1–100). |