Pubmed Fetch Articles
pubmed_fetch_articlesFetch full article metadata by PubMed IDs, including abstracts, authors, journals, MeSH terms, linked notices, and databank accessions; optionally bound responses and defer excess articles.
Instructions
Fetch full article metadata by PubMed IDs. Returns detailed article information including abstract, authors, journal, language and original-language title, MeSH terms and indexed substances, linked retraction, erratum, and comment notices, and databank accessions such as trial registration IDs; grants and the members of a collective author are opt-in (includeGrants, includeInvestigators). Set maxResponseCharacters to bound the whole response: articles past the ceiling are deferred whole and listed in deferred.ids for a follow-up call.
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_articles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pmids | Yes | PubMed IDs to fetch | |
| idType | No | Optional. Only "pmid" is accepted: this tool takes PubMed IDs. Convert PMC IDs and DOIs with `pubmed_convert_ids` first, or pass them to `pubmed_fetch_fulltext`. | |
| includeMesh | No | Include the record's indexing: `meshTerms` and its substance list, `chemicals` | |
| includeGrants | No | Include grant information | |
| includeInvestigators | No | Include `investigators`: the members NCBI lists for a collective author such as "TGU Investigators". Off by default because the list is unbounded: consortium trials name thousands, at about 60 characters of JSON each — PMID 33933206 lists 6,349, adding about 372,000 characters to its record. Under `maxResponseCharacters` they count toward the size of their article, which is deferred whole when it no longer fits. | |
| maxResponseCharacters | No | Opt-in ceiling for the whole response, in characters. Each article is measured as the JSON record it is returned as — title, abstract, authors, journal, MeSH terms, grants, identifiers, every field it carries. Articles are kept in response order until the next one would cross the ceiling; that article and the rest are deferred whole (never partially populated) and listed in `deferred.ids`. Response envelope fields — counts, `unavailablePmids`, `deferred` itself — are not counted. Omit to return every resolved article. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| notice | No | Optional guidance when no articles were returned — points to discovery tools — or when `maxResponseCharacters` deferred articles, naming how to retrieve them. Absent on successful unbudgeted fetches. | |
| articles | No | Parsed articles | |
| deferred | No | Continuation state for articles the whole-response budget withheld. Present only when `maxResponseCharacters` deferred at least one article. | |
| truncated | No | True when `maxResponseCharacters` withheld at least one resolved article. Absent when the response carries every article that resolved. The continuation state is in `deferred`. | |
| totalReturned | No | Number of articles in this response. Under a `maxResponseCharacters` budget this counts the kept articles only; `deferred.deferredCount` covers the rest. | |
| unavailablePmids | No | PMIDs PubMed returned no record for. That is all this reports: PubMed omits an unknown PMID silently, with no error and no reason, so the absence says nothing about whether the PMID exists. Reported in full regardless of where a `maxResponseCharacters` cutoff lands — these are misses, not deferrals. Use `pubmed_search_articles` to find PMIDs that do resolve. |