Skip to main content
Glama
kmaneesh

BioPython MCP Server

by kmaneesh

pubmed_search

Search PubMed with structured metadata extraction to retrieve biomedical literature articles, abstracts, and publication details for research analysis.

Instructions

Search PubMed with enhanced metadata extraction.

This specialized wrapper provides enriched PubMed search results with structured article metadata.

Args: query: PubMed search query (supports all Entrez query syntax) max_results: Maximum results to return (default: 10) sort: Sort order - "relevance", "pub_date", "first_author" (default: "relevance") year_start: Filter by publication year start (e.g., 2020) year_end: Filter by publication year end (e.g., 2024) use_cache: Whether to use cached results (default: True, TTL: 1 hour)

Returns: Dictionary containing: - articles: List of article dictionaries with: - pmid: PubMed ID - title: Article title - abstract: Full abstract text - authors: List of author names - journal: Journal name - year: Publication year - date: Publication date - doi: DOI (if available) - pmc_id: PMC ID (if available) - count: Number of articles returned - total_found: Total matches in PubMed - cached: Whether result was from cache (if use_cache=True)

Examples: >>> pubmed_search("BRCA1 AND breast cancer", max_results=5) >>> pubmed_search("Smith J[Author]", sort="pub_date") >>> pubmed_search("diabetes", year_start=2020, year_end=2024, max_results=20)

Notes: - Uses comprehensive Entrez query syntax - Returns full abstracts when available - Rate limited (3 req/sec or 10 req/sec with API key) - Cached results have 1 hour TTL to balance freshness and API usage

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
max_resultsNo
sortNorelevance
year_startNo
year_endNo
use_cacheNo

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 provided, the description carries the full burden of behavioral disclosure. It effectively describes key traits: rate limits ('3 req/sec or 10 req/sec with API key'), caching behavior ('Cached results have 1 hour TTL'), and output structure ('Returns full abstracts when available'), providing comprehensive behavioral context beyond basic functionality.

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?

The description is well-structured with clear sections (Args, Returns, Examples, Notes), front-loading the core purpose. Each sentence adds value, such as explaining enriched metadata, parameter details, and behavioral notes, with no wasted content, making it efficient and easy to parse.

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 tool with 6 parameters, no annotations, and an output schema, the description is complete. It covers input semantics, behavioral traits (rate limits, caching), output structure, and usage examples, providing all necessary context for an agent to invoke the tool correctly without relying on external documentation.

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?

Given a schema description coverage of 0%, the description compensates fully by detailing all 6 parameters in the 'Args' section, including defaults, syntax examples (e.g., 'PubMed search query (supports all Entrez query syntax)'), and practical usage. This adds significant meaning beyond the bare schema, ensuring parameters are well-understood.

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 explicitly states the tool's purpose as 'Search PubMed with enhanced metadata extraction' and 'provides enriched PubMed search results with structured article metadata,' which is a specific verb+resource combination. It clearly distinguishes from sibling tools like 'search_pubmed' by emphasizing metadata enrichment and structured output, avoiding tautology.

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 for usage through examples and notes, such as 'Uses comprehensive Entrez query syntax' and 'Rate limited (3 req/sec or 10 req/sec with API key).' However, it does not explicitly state when to use this tool versus alternatives like 'search_pubmed' or 'entrez_search,' missing direct sibling differentiation.

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/kmaneesh/biopython-mcp'

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