Skip to main content
Glama

Search PubMed

search_pubmed
Read-onlyIdempotent

Find biomedical papers by disease, drug, gene, target, method, or author; returns citable summaries with PMID, title, authors, journal, date, DOI/PMCID, and PubMed URL.

Instructions

Search PubMed for biomedical literature and return compact, citable article summaries.

Use this to find papers about a disease, drug, gene, target, method or author. Each result has the PMID, title, first authors, journal, publication date, DOI/PMCID and a PubMed URL to cite. Summaries do not include abstracts: call get_pubmed_abstract with a PMID before making claims about what a paper found.

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_pubmed"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNo'relevance' (best match) or 'date' (newest first).relevance
queryYesPubMed query; full PubMed syntax works, e.g. 'CAR-T AND cytokine release syndrome', 'BRCA1[tiab] AND review[pt]'.
since_yearNoOnly articles published in or after this year.
max_resultsNoArticles to return (1-50).

Output Schema

NameRequiredDescriptionDefault
queryYes
sourceNoPubMed
resultsYes
returnedYes
search_urlYesThe same search on the PubMed website.
total_countYesTotal matching articles in PubMed.
query_translationYesHow PubMed interpreted the query (MeSH expansion, field tags).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely useful behavior beyond them: the exact fields returned per result and the important limitation that summaries exclude abstracts, which prevents unsupported claims. It does not mention result caps, rate limits, or empty-result behavior, keeping it below a 5.

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

Conciseness5/5

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

Three short paragraphs, front-loaded with purpose, then usage scope, then the critical caveat about abstracts. Every sentence carries information an agent needs; nothing is repeated from the schema or annotations.

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?

An output schema exists, yet the description still helpfully names the citable fields (PMID, authors, journal, date, DOI/PMCID, URL), which matters for citation workflows. Combined with the abstract caveat and the sibling handoff, an agent has everything needed to call this correctly.

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

Parameters3/5

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

Schema description coverage is 100%, so query syntax, sort enum values, since_year semantics and the 1-50 max_results range are already fully documented in the schema. The description adds only indirect hints ('about a disease, drug, gene... author') and no new syntax, defaults, or constraints, so the baseline 3 applies.

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 ('Search PubMed for biomedical literature') plus the shape of the output ('compact, citable article summaries'). It distinguishes itself from the sibling get_pubmed_abstract by naming that tool and the condition that selects it, so an agent can route correctly without opening either 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 when-to-use criteria (disease, drug, gene, target, method, author) and an explicit handoff rule: call `get_pubmed_abstract` with a PMID before making claims about findings. That is a concrete alternative-plus-condition, not just implied usage.

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