Skip to main content
Glama

Pubmed Search Articles

pubmed_search_articles
Read-only

Search PubMed with full query syntax and filters for authors, journals, dates, and publication types. Retrieve PMIDs and optional summaries while paginating through results.

Instructions

Search PubMed with full query syntax, filters, and date ranges. Returns PMIDs and optional brief summaries. Supports field-specific filters (author, journal, MeSH terms), common filters (language, species, free full text), and pagination via offset for paging through large result sets.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesPubMed search query (supports full NCBI syntax)
maxResultsNoMaximum results to return
offsetNoResult offset for pagination (0-based)
sortNoSort order: relevance (default), pub_date (newest first), author, or journalrelevance
dateRangeNoFilter by date range
publicationTypesNoFilter by publication type (e.g. "Review", "Clinical Trial", "Meta-Analysis")
authorNoFilter by author name (e.g. "Smith J")
journalNoFilter by journal name
meshTermsNoFilter by MeSH terms
languageNoFilter by language (e.g. "english")
hasAbstractNoOnly include articles with abstracts
freeFullTextNoOnly include free full text articles
speciesNoFilter by species
summaryCountNoFetch brief summaries for top N results (0 = PMIDs only)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesOriginal query
totalFoundYesTotal matching articles
offsetYesResult offset used
pmidsYesPubMed IDs
summariesYesBrief summaries (empty array when summaryCount is 0)
searchUrlYesPubMed search URL
Behavior4/5

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

Annotations declare readOnly and openWorld hints. The description adds valuable behavioral context beyond these annotations: it specifies the return format (PMIDs vs summaries), explains pagination behavior for large result sets, and notes support for full NCBI syntax. No contradictions with annotations.

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 well-structured sentences with zero waste. First sentence establishes core function and returns (front-loaded). Second sentence details filter categories. Third sentence addresses pagination. Every word 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?

Given the complexity (14 parameters, nested objects) and presence of output schema, the description provides excellent contextual coverage. It addresses search capabilities, return types, filter categories, and pagination—sufficient for an agent to understand the tool's role in the PubMed tool ecosystem.

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?

With 100% schema coverage, the baseline is 3. The description adds value by conceptually grouping parameters (field-specific filters: author/journal/MeSH vs common filters: language/species/free text) and highlighting the pagination mechanism (offset). It also connects 'optional brief summaries' to the summaryCount parameter, adding semantic context.

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?

The description clearly states the verb (Search), resource (PubMed), and core capabilities (full query syntax, filters, date ranges). It explicitly distinguishes this as a discovery tool that returns PMIDs, differentiating it from sibling fetch/convert tools without needing to name them explicitly.

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 provides clear context by specifying the return format (PMIDs and optional brief summaries), which implicitly guides when to use this tool (discovery) versus pubmed_fetch_articles (retrieval). It mentions pagination for large result sets, a key usage pattern. However, it lacks explicit 'when not to use' guidance or direct sibling comparisons.

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/cyanheads/pubmed-mcp-server'

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