Skip to main content
Glama

Search papers by exact terms

search_corpus_keyword
Read-onlyIdempotent

KEYWORD/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

NameRequiredDescriptionDefault
doiNoExact DOI (e.g. "10.1021/acs.biochem.6c00105"), in any case, with or without https://doi.org/ (optional)
pmidNoPubMed ID (e.g. "42130315") (optional)
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.
queryYesKeyword or Boolean query, e.g. 'TP53 AND apoptosis NOT mouse' or 'BRCA1 "triple negative breast cancer"'. Include at least one distinctive term.
authorNoAuthor name, matched as whole words in the order typed, case-insensitive (optional)
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 (optional)
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 (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.5/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered; the description adds substantive behavior beyond that — BM25 ranking of broad queries, loss of exact-string identity in vector mode, and default ANDing with '-' exclusion. It does not discuss result count or pagination behavior, which is the main remaining gap.

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-loads the core distinction before syntax details, and every clause carries routing or syntax information. It runs dense with parenthetical identifier lists, but nothing is filler.

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 read tool with full schema coverage and no output schema, the description supplies what the schema cannot: query syntax semantics and sibling routing. A brief note on result shape would complete it, though the schema's format parameter largely covers that.

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 baseline is 3, and the description genuinely adds query-syntax semantics the schema only gestures at: implicit AND, supported operators, '-' prefix exclusion, and quoted phrases. The other 16 parameters receive no treatment beyond the schema, keeping it from a 5.

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 ('keyword/Boolean search over 24M+ biomedical abstracts') and immediately contrasts the matching mode with the sibling: 'matching EXACT TERMS rather than meaning,' naming search_corpus as the semantic alternative.

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?

Explicitly says 'Use this instead of search_corpus when the query contains specific identifiers' and enumerates concrete triggers (gene symbols, variants, accessions, NCT IDs, cell lines, drug codes, Boolean logic). It also states the inverse case — 'worse for open natural-language questions' — so an agent can route both directions without inference.

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.