Search papers by exact terms
search_corpus_keywordKEYWORD/Boolean search over the same 24M+ biomedical abstracts, matching EXACT TERMS rather than meaning. Use this instead of search_corpus when the query contains specific identifiers — gene symbols (TP53, BRCA1), variants (p.Gly12Asp, c.35G>A, rs334), accessions, clinical-trial IDs (NCT…), cell lines, drug codes — or when you want PubMed-style Boolean logic. Vector search loses the exact identity of rare strings, so keyword mode is substantially better for these queries and worse for open natural-language questions. Syntax: terms are ANDed by default; AND / OR / NOT are supported; prefix a term with - to exclude it; use "quoted phrases" for exact adjacent wording. A very broad query is ranked over its best BM25 matches.
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_keyword"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doi | No | Exact DOI (e.g. "10.1021/acs.biochem.6c00105"), in any case, with or without https://doi.org/ (optional) | |
| pmid | No | PubMed ID (e.g. "42130315") (optional) | |
| topK | No | Number of results to return (default 20, max 100) | |
| type | No | 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. | |
| query | Yes | Keyword or Boolean query, e.g. 'TP53 AND apoptosis NOT mouse' or 'BRCA1 "triple negative breast cancer"'. Include at least one distinctive term. | |
| author | No | Author name, matched as whole words in the order typed, case-insensitive (optional) | |
| format | No | 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) | |
| offset | No | 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) | |
| yearTo | No | Only papers up to this year (optional) | |
| journal | No | Journal name, matched as whole words in the journal field, case-insensitive ("Nature" also finds Nature Medicine) (optional) | |
| language | No | Language code filter, e.g. "en" (optional) | |
| oaStatus | No | Open-access status: "open", "green", "gold", "closed" (optional) | |
| yearFrom | No | Only papers from this year onwards (optional) | |
| studyType | No | 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) | |
| titleSearch | No | Words of the paper title, matched as whole words in the order typed, case-insensitive (optional) | |
| isOpenAccess | No | Only open-access papers (optional) | |
| minCitations | No | Minimum citation count (optional) |