Skip to main content
Glama

Search papers by meaning

search_corpus
Read-onlyIdempotent

Semantic search over 24M+ biomedical journal abstracts (more than 20 million of them in PubMed). Finds papers by MEANING, not keywords. Returns papers ranked by a hybrid relevance score (semantic similarity + lexical overlap + citation quality + recency) with abstracts, PMIDs, metadata and DOI links. Supports filters: year range, open access, citations, article type, journal, language, author name, DOI, PMID, and title search.

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": "search_corpus"
  }
}

Input Schema

NameRequiredDescriptionDefault
doiNoExact DOI lookup (e.g. "10.1021/acs.biochem.6c00105"), in any case, with or without https://doi.org/.
pmidNoPubMed ID lookup (e.g. "42130315"). Uses the btree index — instant.
topKNoNumber of results to return (default 20, max 100)
typeNoArticle type filter (optional). Nearly every paper in the corpus has type "article", so this filter rarely narrows a search. To find reviews, trials or other study types, use studyType.
queryYesThe research question or topic to search for. Full abstracts / grant aims are supported (up to 2,000 characters) — e.g. "alpha-synuclein aggregation in Parkinson disease".
authorNoFilter by author name, matched as whole words in the order typed, case-insensitive: a surname ("Doudna") or a name as papers print it ("Jennifer A. Doudna"). Semantic search alone cannot find papers by author name; this metadata filter enables it.
formatNoLeave out for the readable list. "ris" (imports into Zotero, Mendeley and EndNote) or "bibtex" (Zotero, Mendeley, LaTeX): the same papers as a citation file, returned as the result text. "json": the papers as JSON records (optional)
offsetNoSkip this many ranked results to get the next page: 0 (default), then topK, then 2 x topK, with every other argument unchanged. offset + topK at most 200 (optional)
yearToNoOnly papers up to this year (optional)
journalNoJournal name, matched as whole words in the journal field, case-insensitive ("Nature" also finds Nature Medicine) (optional)
languageNoLanguage code filter, e.g. "en" (optional)
oaStatusNoOpen-access status: "open", "green", "gold", "closed" (optional)
yearFromNoOnly papers from this year onwards (optional)
studyTypeNoOnly papers that PubMed classes as any of these study types (papers with a PubMed ID). "clinical trial" includes randomized controlled trials and "review" includes systematic reviews (optional)
titleSearchNoWords of the paper title, matched as whole words in the order typed, case-insensitive. Use when you know part of the paper title.
isOpenAccessNoOnly open-access papers (optional)
minCitationsNoMinimum citation count (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / studyType
      Added value: +{
      +  "description": "Only papers that PubMed classes as any of these study types (papers with a PubMed ID). \"clinical trial\" includes randomized controlled trials and \"review\" includes systematic reviews (optional)",
      +  "items": {
      +    "enum": [
      +      "randomized controlled trial",
      +      "clinical trial",
      +      "meta-analysis",
      +      "systematic review",
      +      "review",
      +      "practice guideline",
      +      "case report",
      +      "observational study"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / type / description
      Previous value: -"Article type filter (optional). Nearly every paper in the corpus has type \"article\", so this filter rarely narrows a search. To find reviews, put the word \"review\" in the query instead."New value: +"Article type filter (optional). Nearly every paper in the corpus has type \"article\", so this filter rarely narrows a search. To find reviews, trials or other study types, use studyType."
  2. Changed2 schema fields changed
    • addedInput schema / properties / format
      Added value: +{
      +  "description": "Leave out for the readable list. \"ris\" (imports into Zotero, Mendeley and EndNote) or \"bibtex\" (Zotero, Mendeley, LaTeX): the same papers as a citation file, returned as the result text. \"json\": the papers as JSON records (optional)",
      +  "enum": [
      +    "json",
      +    "ris",
      +    "bibtex"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Skip this many ranked results to get the next page: 0 (default), then topK, then 2 x topK, with every other argument unchanged. offset + topK at most 200 (optional)",
      +  "type": "number"
      +}
  3. Changed1 schema field changed
    • changedInput schema / properties / type / description
      Previous value: -"Article type filter, e.g. \"article\", \"review\", \"case-report\" (optional)"New value: +"Article type filter (optional). Nearly every paper in the corpus has type \"article\", so this filter rarely narrows a search. To find reviews, put the word \"review\" in the query instead."
  4. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds substantive context beyond that: the hybrid ranking formula (semantic similarity + lexical overlap + citation quality + recency), the return payload (abstracts, PMIDs, metadata, DOI links), and pagination limits. It does not mention rate limits or result-size caps on the readable list, so a 4 rather than 5.

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

Conciseness4/5

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

Front-loaded with the core purpose and the meaning-vs-keywords distinction, then a ranked-return summary, then filters. The final filter list is a long enumeration that partially duplicates the schema, but it functions as a quick capability scan and each sentence still carries information.

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

Completeness4/5

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

For a 17-parameter tool with no output schema, the description supplies what an agent needs: ranking rationale, response contents, filter inventory, and pagination rules. Output values are described in prose since no output schema exists. Minor gaps remain around default sorting behavior when a filter like `doi` is used and result-size limits.

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

Parameters5/5

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

Schema coverage is already 100%, so this is value on top of an already-documented schema. The description adds genuine operational meaning: it flags that the `type` filter rarely narrows and points to `studyType` instead, explains that `format` changes the response representation (RIS/BibTeX/JSON), and gives a pagination recipe (0, then topK, then 2 x topK, offset+topK at most 200).

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?

States a specific verb and resource ("Semantic search over 24M+ biomedical journal abstracts") and explicitly contrasts with keyword search ("Finds papers by MEANING, not keywords"), which distinguishes it from the sibling search_corpus_keyword without naming it. The scope, corpus size, and ranking basis are all specified.

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

Usage Guidelines4/5

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

The description makes clear when this tool applies (conceptual/topic research questions, finding papers by meaning) and implicitly when not (keyword or exact-identifier lookup). It also explains the specific cases where a metadata filter is needed because semantic search cannot work alone, e.g. author names and DOI/PMID lookup. It does not name sibling tools or explicitly state exclusion conditions, keeping it below a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.