Skip to main content
Glama

pubmed_fetch

Fetch full PubMed records—abstract, authors, journal, DOI, and MeSH terms—for up to 20 PMIDs, trimming long abstracts to protect the context window.

Instructions

Fetch full records (abstract, authors, journal, DOI, MeSH terms) for up to 20 PMIDs.

Abstracts longer than max_abstract_chars are cut and flagged, to protect the context window. PMIDs that do not exist are left out of the result.

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": {
      "pmids": "<pmids>"
    },
    "name": "pubmed_fetch"
  }
}

Input Schema

NameRequiredDescriptionDefault
pmidsYes
max_abstract_charsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose two meaningful behaviors: abstracts beyond `max_abstract_chars` are truncated and flagged, and nonexistent PMIDs are silently dropped from the result. It stops short of covering other behavioral traits such as rate limits, auth requirements, or retrieval latency, and the nature of the 'flag' is not specified, leaving some ambiguity.

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 short sentences, front-loaded with the core action and the 20-PMID limit, followed by the two edge-case behaviors. No filler or redundant restatement of the tool name.

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?

An output schema exists, so the field list is a bonus rather than a necessity, and the two failure-mode behaviors are the right things to surface. Completeness is slightly reduced by not clarifying what the truncation flag looks like or where PMIDs should originate.

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 description coverage is 0%, so the description must compensate and it only partly does. It explains the effect of `max_abstract_chars` (truncation with a flag) and ties the PMID list to a 20-item ceiling, but adds nothing about PMID format or the default cutoff value, which the schema carries alone.

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?

States a specific verb and resource ('Fetch full records ... for up to 20 PMIDs') and enumerates the returned fields (abstract, authors, journal, DOI, MeSH), which is far more than the bare name conveys. It does not explicitly contrast with the sibling pubmed_search, but the search-vs-fetch distinction is legible from the verb choice.

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 must infer this is the follow-up step after obtaining PMIDs via search. There is no explicit 'use pubmed_search first' routing and no statement of when not to use it (e.g., for query-based lookup).

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