Skip to main content
Glama

Search PubMed

search_pubmed
Read-only

Search PubMed for biomedical literature and retrieve titles, journals, years, PMIDs, DOIs, and study-design tags using field-tagged queries.

Instructions

Search PubMed for biomedical literature. Returns titles, journals, years, PMIDs, DOIs and a study-design tag. Supports PubMed query syntax (e.g. 'metformin AND aging[tiab]').

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
sortNoDefault relevance.
queryYesPubMed query. Field tags like [tiab], [mh], [au] are supported.
to_yearNo
from_yearNo
max_resultsNoDefault 10.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety and external-dependency semantics are covered. The description adds real value by disclosing the returned fields and that a study-design tag is attached, but it is silent on truncation at max_results, ranking behavior, and what happens with very broad queries.

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 sentences, front-loaded with the verb and resource, then the return shape and syntax hint. Every clause carries information an agent can act on, and nothing is repeated from the annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description usefully covers the return payload, and the five-parameter surface is mostly handled by the schema. The remaining gap is behavioral limits, such as whether results are capped or how date-range filtering interacts with sorting, but for a read-only search tool this is close to complete.

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 coverage is 60%, with sort, max_results and the field-tag syntax documented in the schema itself. The description reinforces the query syntax with a concrete example ('metformin AND aging[tiab]'), but says nothing about from_year/to_year narrowing or the relevance-vs-pub_date tradeoff, so it only partially compensates for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('Search PubMed for biomedical literature') and enumerates what comes back (titles, journals, years, PMIDs, DOIs, study-design tag). It is clear on its own, but never contrasts itself with the sibling 'get_pubmed_articles', so an agent must infer the search-vs-fetch split.

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?

Usage is only implied: an agent can deduce this is the entry point for literature queries and that field tags are allowed. There is no explicit statement of when to prefer it over get_pubmed_articles, no prerequisite or exclusion, and no guidance on how it pairs with follow-up tools like export_citations.

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