Search scientific literature (multi-database)
literature_searchSearch PubMed, Europe PMC, ChinaXiv and RussiaRxiv in one query; get de-duplicated results labeled by study design and evidence tier, with retraction and correction flags.
Instructions
Search PubMed, Europe PMC, ChinaXiv and RussiaRxiv; each result has its study design. studyType comes only from NLM PublicationType tags (PubMed, Europe PMC; assigned by NLM's automated indexing, with human review of some records). Records with none naming a design are 'unknown', designTier null. designTier (0-5) ranks the design for 'does this intervention help?' by the OCEBM 2011 levels; it is not an appraisal. A meta-analysis or systematic review ranks with the studies it pooled, which the tags don't say, so its designTier is null unless it is tagged Network Meta-Analysis (5). For a null tier, read the abstract for the design or for what a review pooled. flags marks retracted, notice, protocol and editorial records (designTier 0), and warns of an expression of concern, an erratum (corrected), a newer version (updated; for a preprint, its published article, id in corrections), animals-not-humans indexing, preprints, letters, machine-translated text and machine-generated abstracts (chinaxiv, russiarxiv: check originalUrl before relying on a number). id is the database's own id; pmid is set only for a PMID: cite any other (PPR…, CBA:…, chinaxiv-…, ru-…) by id with the database, or by doi/url. Results are merged, de-duplicated by DOI and sorted, a page at a time: when nextPage is set, more follow; a record held by two databases counts twice in total. Use literature_fetch for full metadata of given ids, literature_fulltext for the article body.
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": "literature_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page of results, from 1 (default): page 2 holds each database's next maxResults records. Ask for the nextPage a result gives to read past the first page, with the same maxResults (another one shifts the pages, repeating or skipping records); each page is merged and sorted on its own. Paging reaches only each database's first 10,000 records of a search, and a page starting past them is refused: narrow the query instead. | |
| sort | No | Default "relevance": each database's relevance order, re-sorted by design tier, with null tiers after tier 2. "date": newest first by first publication (the earlier of pubDate and epubDate). chinaxiv and russiarxiv ignore it: they still return their most relevant records, which are only put in date order within the page. | |
| query | Yes | Search query: 2-5 keywords, not a sentence. Every space-separated word is required (ANDed), so each extra word narrows the results. On 0 results a warning names the word whose removal gives hits; retry without it before concluding that no evidence exists. OR (upper case) joins alternatives on pubmed and europepmc; chinaxiv and russiarxiv read it as one more required word. PubMed field tags apply on pubmed. europepmc reads [tiab] [ti] [au] [pt] [ta] [la] [dp] [pmid] (quote a phrase before its tag: "sleep apnea"[tiab]) and drops other tags such as [mh], keeping the words they tag; chinaxiv and russiarxiv ignore tags. On europepmc alone, SRC:PPR keeps preprints. The query is sent to third-party databases: never include names, dates of birth, record numbers or other details that identify a person; describe the condition or intervention instead. | |
| database | No | Database(s) to search: a single id, an array of ids, or "all". Default "pubmed". Options: pubmed, europepmc (PubMed's records plus preprints and other sources; it searches full text, so papers that only mention the words match too), chinaxiv (Chinese preprints) and russiarxiv (Soviet-era papers, mostly mathematics, physics and chemistry; almost no medicine), both via ChinaRxiv, a third-party service that machine-translates them into English. | |
| language | No | Content language hint (ISO 639-1). pubmed and europepmc ignore it; on chinaxiv, "ru" searches the Russian collection (same as database "russiarxiv"). | |
| dateRange | No | Publication date filter: YYYY-MM-DD, YYYY-MM or YYYY (a year or month covers all of it); from or to alone leaves the other end open. On pubmed and europepmc it matches the electronic publication date too, so a record published online within the range can show a later pubDate; see its epubDate. | |
| maxResults | No | Records per database and page: with several databases a page holds up to maxResults from each. Default 10, max 50. | |
| studyTypes | No | Keep only these study types. PubMed and Europe PMC are queried for their publication types, so a page holds matching records, short only of those classified as another type (a meta-analysis also tagged as a trial); chinaxiv and russiarxiv, whose records are all unknown, are skipped unless unknown is asked for. cohort, case-control, cross-sectional and in-vitro are never assigned from metadata (tagged observational studies come back as observational), so filtering on them returns nothing. animal-study comes only from veterinary publication types; laboratory animal studies are not labeled with it but flagged animals-not-humans. | |
| minDesignTier | No | Drop results below this design tier (0-5; 4 = RCTs). No design gets tier 3, and only network meta-analyses get 5, so 3 acts like 4 and 5 keeps little. Results with designTier null — unclassified records and all other meta-analyses/systematic reviews — are left out too: the query is narrowed like studyTypes, so they are never fetched, and a warning says so. To keep reviews and trials, use studyTypes instead. | |
| abstractMaxChars | No | Cut abstracts to at most this many characters, at a word boundary, ending in … and abstractTruncated true; 0 leaves them out. Default: whole abstracts. A page of 10 full abstracts is roughly 20,000-30,000 characters (600 halves it), so set one when searching several databases. literature_fetch returns the whole abstract. |