Skip to main content
Glama

search_pubmed

Search PubMed and other NCBI databases, retrieving matching article UIDs and total count. Supports date filtering and sorting by relevance or publication date.

Instructions

Search an NCBI Entrez database (ESearch) and return matching UIDs plus the total result count.

db defaults to "pubmed" but accepts any Entrez database name (e.g. "pmc", "gene", "protein"). sort accepts database-specific values such as "relevance" or "pub_date" (pubmed). mindate/maxdate use YYYY/MM/DD, YYYY/MM, or YYYY and require datetype ("pdat" or "edat"). Result is capped at 10000 UIDs per NCBI policy; use retstart to page through more.

Examples: search_pubmed(term="CRISPR AND cancer", retmax=50) search_pubmed(term="covid-19", db="pmc", sort="pub_date", mindate="2024/01/01", maxdate="2024/12/31", datetype="pdat")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dbNopubmed
sortNo
termYes
retmaxNo
maxdateNo
mindateNo
datetypeNo
retstartNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations, description fully discloses behavior: defaults, result cap of 10000, paging via retstart, date format requirements. Comprehensive coverage of operational constraints.

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?

Well-structured with bullet points and examples, but somewhat lengthy. Could be tightened slightly, but content earns its place.

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 complex search tool with 8 parameters and no schema descriptions, the description covers all essential behaviors, constraints, and examples. Output schema exists, so return format disclosure is adequate.

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 has 0% description coverage, but description explains all key parameters (db, sort, mindate/maxdate/datetype, retmax, retstart) in detail with examples. Provides meaning well beyond the schema.

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?

Description clearly states it searches an NCBI Entrez database and returns UIDs with total count. Distinguishes from siblings by listing examples and noting defaults for pubmed vs other databases.

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?

Provides clear context on parameter usage (date format, sorting, paging) and examples. No explicit when-not-to-use or sibling comparisons, but sufficient for correct agent selection.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dam2452/pubmed-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server