Skip to main content
Glama

Pubmed Search Articles

pubmed_search_articles
Read-only

Search PubMed using full query syntax with filters for author, journal, MeSH terms, date ranges, and language. Returns article PMIDs and optional brief summaries.

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. The filter is applied only when both `minDate` and `maxDate` are non-empty; either one empty disables the entire date range.
publicationTypesNoFilter by publication type (e.g. "Review", "Clinical Trial", "Meta-Analysis"). Multiple values are OR'd — any match qualifies.
authorNoFilter by author name (e.g. "Smith J")
journalNoFilter by journal name
meshTermsNoFilter by MeSH terms. Multiple terms are AND'd — all must match.
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
offsetYesResult offset used
pmidsYesPubMed IDs
summariesYesBrief summaries (empty array when summaryCount is 0)
searchUrlYesPubMed search URL
effectiveQueryYesSanitized query sent to PubMed after applying all active filters
totalCountYesTotal matching articles
appliedFiltersYesNormalized filter values that were applied to the PubMed query
noticeNoOptional guidance when results are empty or paging overshot — e.g. how to broaden filters or reset offset. Absent on successful result pages.
Behavior4/5

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

Annotations already provide readOnlyHint=true and openWorldHint=true. The description adds context on return format (PMIDs + optional summaries) and pagination via offset, which goes beyond annotations. No contradictions detected.

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?

Two concise, front-loaded sentences. The first sentence captures the core purpose, and the second expands on filters and pagination. No wasted words.

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 tool's complexity (14 params, output schema present), the description covers key aspects: search syntax, filters, date ranges, return type, and pagination. The schema and output schema handle details, making this description sufficient.

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. The description adds value by grouping filters (field-specific, common) and highlighting 'full query syntax' and pagination, enhancing understanding beyond individual schema descriptions.

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 tool searches PubMed with full query syntax, filters, date ranges, and returns PMIDs with optional summaries. It distinguishes from siblings like pubmed_fetch_articles (retrieves full articles) by focusing on search functionality.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains what the tool does but does not explicitly state when to use it over alternatives (e.g., pubmed_fetch_articles, pubmed_find_related). It implies searching but lacks explicit when-not or comparative guidance.

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