Skip to main content
Glama
med-research-mcp
by emilkrebs

Search scientific literature (multi-database)

literature_search
Read-only

Search 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

NameRequiredDescriptionDefault
pageNoPage 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.
sortNoDefault "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.
queryYesSearch 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.
databaseNoDatabase(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.
languageNoContent language hint (ISO 639-1). pubmed and europepmc ignore it; on chinaxiv, "ru" searches the Russian collection (same as database "russiarxiv").
dateRangeNoPublication 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.
maxResultsNoRecords per database and page: with several databases a page holds up to maxResults from each. Default 10, max 50.
studyTypesNoKeep 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.
minDesignTierNoDrop 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.
abstractMaxCharsNoCut 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.1

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only say readOnly and open-world; the description adds substantial context they don't carry: results are merged, de-duplicated by DOI, sorted, paged, and a record held by two databases counts twice in total. It also discloses a privacy obligation (the query goes to third-party databases, so never include identifying details) and reliability caveats about machine-translated and machine-generated content.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Every sentence carries information, but it is delivered as one dense paragraph with no structural breaks, mixing result semantics, tier logic, flag meanings and pagination. An agent must parse a single 200-word block to find the routing sentence at the very end, so front-loading and scanability are weak.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter, multi-database tool with no output schema, the description covers return-field semantics (id vs pmid, doi/url citation, designTier, flags, nextPage), pagination limits and dedup counting. Nothing an agent needs in order to call it correctly or interpret a page appears to be missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning the schema doesn't: how designTier is derived from NLM PublicationType tags and why meta-analyses get null, that a page past 10,000 records is refused, and that minDesignTier excludes null-tier records by narrowing the query rather than filtering after the fact. It stops short of restating the trivial parameters, which is correct.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource plus the exact source set: 'Search PubMed, Europe PMC, ChinaXiv and RussiaRxiv', and states what each result carries. The closing sentence distinguishes it from literature_fetch (full metadata for given ids) and literature_fulltext (article body), so an agent can separate it from siblings without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing to alternatives ('Use literature_fetch for full metadata of given ids, literature_fulltext for the article body') and operational when-tos: retry without the named word before concluding no evidence exists, and use studyTypes instead of minDesignTier to keep reviews and trials. It also warns when a filter is useless (cohort, case-control, cross-sectional, in-vitro 'never assigned from metadata').

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.