Med Research
v0.8.2Evidence-graded literature search: PubMed, Europe PMC, ChinaXiv, RussiaRxiv with study-design tiers.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
literature_search Search scientific literature (multi-database)
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 ti…
| Parameter | Type | Description |
|---|---|---|
query * | string | 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; retr… |
abstractMaxChars | integer | 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-… |
database | 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 on… | |
dateRange | object | 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… |
language | string | Content language hint (ISO 639-1). pubmed and europepmc ignore it; on chinaxiv, "ru" searches the Russian collection (same as database "russiarxiv"). |
maxResults | integer | Records per database and page: with several databases a page holds up to maxResults from each. Default 10, max 50. |
minDesignTier | number | 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 rec… |
page | integer | 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 t… |
sort | string | 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… |
studyTypes | array | 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 tagge… |
literature_fetch Fetch scientific articles (multi-database)
Fetch full metadata and the whole abstract for one or more ids from a specific database. Each article is graded as in literature_search (studyType, designTier, flags) and, for pubmed and europepmc, carries MeSH headings and retraction/correction links. Ids that could not be fetched are listed in missing. Use after literature_search to drill into specific papers.
| Parameter | Type | Description |
|---|---|---|
database * | string | Which database the ids belong to: pubmed, europepmc, chinaxiv, russiarxiv. |
ids * | array | Database-specific ids to fetch, each a literature_search result's id: PMIDs for pubmed; PMIDs, PMCIDs or prefixed ids (e.g. CBA:644599, PPR… preprints) for europepmc; the ids literature_search retur… |
literature_fulltext Fetch full text for a scientific article (multi-database)
Fetches an article's full text as markdown (plain text when format is pdf) via Europe PMC (a PMCID or PPR preprint), Unpaywall (open access), institutional proxy (if configured) and direct DOI access; chinaxiv and russiarxiv records come from ChinaRxiv as a machine translation (check originalUrl before relying on a number). The warning opens with RETRACTED, NOTICE or EXPRESSION OF CONCERN when the record has that flag (see literature_search); a retracted paper is no evidence. Without the text it says what each location answered, and the abstract is returned, cut to maxChars if longer (then tru…
| Parameter | Type | Description |
|---|---|---|
id * | string | A literature_search result's id: a PMID, a PMCID (PMC…, a record's pmcid), an id of Europe PMC (PPR…, CBA:… with its prefix, IND…) or a chinaxiv or russiarxiv id (chinaxiv-…, ru-…). Each w… |
doi | string | The record's doi (10.… or a https://doi.org/ link), from a search result's doi field; a url or originalUrl is not one. Needed only for an id outside those above. With a PMID it must be that PMID's d… |
maxChars | integer | Return at most this many characters; the server's limit (default 50,000) is the most. |
offset | integer | Character position to read the full text from: the nextOffset of the previous call. Default 0. |