{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "pubmed.caseyjhand.com",
    "site": "caseyjhand.com",
    "addresses": [
      {
        "address": "104.26.11.117",
        "endpoints": 131,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "104.26.0.0/20",
          "country": "US"
        }
      },
      {
        "address": "172.67.72.95",
        "endpoints": 131,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "172.67.64.0/20",
          "country": "US"
        }
      },
      {
        "address": "104.26.10.117",
        "endpoints": 131,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "104.26.0.0/20",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:20::681a:a75",
        "endpoints": 131,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:20::/44",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:20::ac43:485f",
        "endpoints": 131,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:20::/44",
          "country": "US"
        }
      },
      {
        "address": "2606:4700:20::681a:b75",
        "endpoints": 131,
        "shared_infrastructure": true,
        "network": {
          "asn": 13335,
          "name": "CLOUDFLARENET - Cloudflare, Inc.",
          "prefix": "2606:4700:20::/44",
          "country": "US"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "104.26.11.117",
          "172.67.72.95",
          "104.26.10.117",
          "2606:4700:20::681a:a75",
          "2606:4700:20::ac43:485f",
          "2606:4700:20::681a:b75"
        ],
        "first_seen": "2026-11-22T21:20:02.879Z",
        "last_seen": "2026-11-22T21:20:02.879Z",
        "checks": 1
      },
      {
        "addresses": [
          "104.26.10.117",
          "104.26.11.117",
          "172.67.72.95",
          "2606:4700:20::681a:a75",
          "2606:4700:20::ac43:485f",
          "2606:4700:20::681a:b75"
        ],
        "first_seen": "2026-11-21T16:54:02.577Z",
        "last_seen": "2026-11-21T16:54:02.577Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Cloudflare",
        "evidence": "Server header \"cloudflare\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "pubmed-mcp-server",
      "version": "2.12.3",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "cloudflare",
      "strict-transport-security": "max-age=63072000; includeSubDomains; preload",
      "access-control-allow-origin": "*"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 130,
      "sample": [
        {
          "id": "6671",
          "url": "https://mcp.amperis.com/mcp",
          "server_name": "com.amperis/catalog",
          "last_state": "listed",
          "last_checked_at": "2026-11-23T07:49:03.164Z"
        },
        {
          "id": "28574",
          "url": "https://art-institute-chicago.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/art-institute-chicago-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:36:02.219Z"
        },
        {
          "id": "28575",
          "url": "https://arxiv.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/arxiv-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:37:01.411Z"
        },
        {
          "id": "28576",
          "url": "https://astronomy.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/astronomy-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:38:01.840Z"
        },
        {
          "id": "28577",
          "url": "https://aviation-weather.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/aviation-weather-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:39:01.575Z"
        },
        {
          "id": "28578",
          "url": "https://biorxiv.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/biorxiv-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:40:02.169Z"
        },
        {
          "id": "28579",
          "url": "https://bls-labor.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/bls-labor-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:41:01.131Z"
        },
        {
          "id": "28580",
          "url": "https://bluesky.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/bluesky-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:42:01.856Z"
        },
        {
          "id": "28581",
          "url": "https://brapi.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/brapi-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:43:01.729Z"
        },
        {
          "id": "28582",
          "url": "https://browser-compat.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/browser-compat-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:44:06.619Z"
        },
        {
          "id": "28583",
          "url": "https://calculator.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/calculator-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:45:03.772Z"
        },
        {
          "id": "28584",
          "url": "https://canada-parliament.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/canada-parliament-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:46:02.033Z"
        },
        {
          "id": "28585",
          "url": "https://cdc.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/cdc-health-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:47:01.894Z"
        },
        {
          "id": "28586",
          "url": "https://census.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/census-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:48:01.794Z"
        },
        {
          "id": "28587",
          "url": "https://cern-inspire.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/cern-inspire-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:49:02.069Z"
        },
        {
          "id": "28588",
          "url": "https://cern-opendata.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/cern-opendata-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:50:02.886Z"
        },
        {
          "id": "28589",
          "url": "https://chembl.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/chembl-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:51:01.709Z"
        },
        {
          "id": "28590",
          "url": "https://cisa-cybersecurity.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/cisa-cybersecurity-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:52:01.906Z"
        },
        {
          "id": "28591",
          "url": "https://clinicaltrials.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/clinicaltrialsgov-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:53:01.814Z"
        },
        {
          "id": "28592",
          "url": "https://college-scorecard.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/college-scorecard-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:54:10.959Z"
        }
      ]
    },
    "same_site": {
      "total": 133,
      "sample": [
        {
          "id": "28574",
          "url": "https://art-institute-chicago.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/art-institute-chicago-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:36:02.219Z"
        },
        {
          "id": "28575",
          "url": "https://arxiv.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/arxiv-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:37:01.411Z"
        },
        {
          "id": "28576",
          "url": "https://astronomy.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/astronomy-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:38:01.840Z"
        },
        {
          "id": "28577",
          "url": "https://aviation-weather.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/aviation-weather-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:39:01.575Z"
        },
        {
          "id": "28578",
          "url": "https://biorxiv.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/biorxiv-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:40:02.169Z"
        },
        {
          "id": "28579",
          "url": "https://bls-labor.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/bls-labor-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:41:01.131Z"
        },
        {
          "id": "28580",
          "url": "https://bluesky.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/bluesky-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:42:01.856Z"
        },
        {
          "id": "28581",
          "url": "https://brapi.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/brapi-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:43:01.729Z"
        },
        {
          "id": "28582",
          "url": "https://browser-compat.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/browser-compat-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:44:06.619Z"
        },
        {
          "id": "28583",
          "url": "https://calculator.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/calculator-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:45:03.772Z"
        },
        {
          "id": "28584",
          "url": "https://canada-parliament.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/canada-parliament-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:46:02.033Z"
        },
        {
          "id": "28585",
          "url": "https://cdc.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/cdc-health-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:47:01.894Z"
        },
        {
          "id": "28586",
          "url": "https://census.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/census-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:48:01.794Z"
        },
        {
          "id": "28587",
          "url": "https://cern-inspire.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/cern-inspire-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:49:02.069Z"
        },
        {
          "id": "28588",
          "url": "https://cern-opendata.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/cern-opendata-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:50:02.886Z"
        },
        {
          "id": "28589",
          "url": "https://chembl.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/chembl-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:51:01.709Z"
        },
        {
          "id": "28590",
          "url": "https://cisa-cybersecurity.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/cisa-cybersecurity-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:52:01.906Z"
        },
        {
          "id": "28591",
          "url": "https://clinicaltrials.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/clinicaltrialsgov-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:53:01.814Z"
        },
        {
          "id": "28592",
          "url": "https://college-scorecard.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/college-scorecard-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:54:10.959Z"
        },
        {
          "id": "28593",
          "url": "https://congressgov.caseyjhand.com/mcp",
          "server_name": "io.github.cyanheads/congressgov-mcp-server",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T19:55:03.324Z"
        }
      ]
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "io.github.cyanheads",
      "total": 165,
      "sample": [
        {
          "name": "io.github.cyanheads/anime-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/art-institute-chicago-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/arxiv-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/astronomy-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/attack-surface-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/aviation-weather-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/biorxiv-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/bls-labor-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/bls-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/bluesky-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/brapi-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/browser-compat-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/calculator-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/canada-parliament-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/cdc-health-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/census-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/cern-inspire-mcp-server",
          "title": "cern-inspire-mcp-server"
        },
        {
          "name": "io.github.cyanheads/cern-opendata-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/chembl-mcp-server",
          "title": null
        },
        {
          "name": "io.github.cyanheads/cisa-cybersecurity-mcp-server",
          "title": null
        }
      ]
    },
    "same_repository": {
      "repository_url": "https://github.com/cyanheads/pubmed-mcp-server",
      "total": 0,
      "sample": []
    },
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "28674",
    "server_name": "io.github.cyanheads/pubmed-mcp-server",
    "url": "https://pubmed.caseyjhand.com/mcp",
    "host": "pubmed.caseyjhand.com",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-22T21:20:02.879Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "6efdb50827eb3b829f191b7326c35f57b0652f58df494d5fe0560cef3562c9e2",
    "first_listed_at": "2026-11-21T16:54:02.577Z",
    "created_at": "2026-11-21T09:30:14.513Z",
    "resolved_addresses": [
      "104.26.11.117",
      "172.67.72.95",
      "104.26.10.117",
      "2606:4700:20::681a:a75",
      "2606:4700:20::ac43:485f",
      "2606:4700:20::681a:b75"
    ]
  },
  "server": {
    "name": "io.github.cyanheads/pubmed-mcp-server",
    "title": null,
    "description": "Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms.",
    "version": "2.12.3",
    "registry_status": "active",
    "repository_url": "https://github.com/cyanheads/pubmed-mcp-server",
    "website_url": null,
    "published_at": "2026-11-21T22:16:14.784Z",
    "updated_at": "2026-11-21T22:16:14.784Z",
    "first_seen": "2026-11-21T09:30:13.920Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T21:20:14.238Z"
  },
  "operator": {
    "key": "caseyjhand.com",
    "name": "caseyjhand.com",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 2,
    "answered": 2,
    "answered_percent": 100,
    "avg_listing_latency_ms": 871,
    "first_check_in_window": "2026-11-21T16:54:02.577Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "6efdb50827eb3b829f191b7326c35f57b0652f58df494d5fe0560cef3562c9e2",
    "tools": 12,
    "resources": 2,
    "prompts": 1,
    "first_seen": "2026-11-22T21:20:03.689Z",
    "tool_names": [
      "pubmed_search_articles",
      "pubmed_fetch_articles",
      "pubmed_fetch_fulltext",
      "pubmed_format_citations",
      "pubmed_find_related",
      "pubmed_spell_check",
      "pubmed_lookup_mesh",
      "pubmed_lookup_citation",
      "pubmed_convert_ids",
      "pubmed_fetch_citation_metrics",
      "pubmed_europepmc_search",
      "pubmed_europepmc_fetch"
    ],
    "declared": {
      "tools": [
        {
          "name": "pubmed_search_articles",
          "title": "Pubmed Search Articles",
          "description": "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.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "sort": {
                "enum": [
                  "relevance",
                  "pub_date",
                  "author",
                  "journal"
                ],
                "type": "string",
                "default": "relevance",
                "description": "Sort order: relevance (default), pub_date (publication date, newest first), author (first author A–Z), or journal (journal name A–Z)"
              },
              "query": {
                "type": "string",
                "description": "PubMed search query (supports full NCBI syntax), sent as written apart from inline formatting tags such as `<i>`, which are removed. Omit it or pass an empty string to search on the filters alone, which needs `author`, `journal`, `meshTerms`, or `publicationTypes`; `all[sb]` selects the whole database for a slice by the other filters. A query given must carry a search term: a value that is blank once markup, bracketed field tags (`[pdat]`), parentheses, and invisible characters such as a zero-width space are disregarded is rejected rather than sent to PubMed."
              },
              "author": {
                "type": "string",
                "description": "Filter by author name (e.g. \"Smith J\"). An empty string applies no filter; a value of only whitespace, invisible characters, markup, parentheses, brackets, or double quotes is rejected."
              },
              "offset": {
                "type": "integer",
                "default": 0,
                "maximum": 9998,
                "minimum": 0,
                "description": "Result offset for pagination (0-based). PubMed serves at most the first 9999 records of a result set, so this caps at 9998; narrow the query or add filters to reach anything beyond it."
              },
              "journal": {
                "type": "string",
                "description": "Filter by journal: its NLM title abbreviation (e.g. \"N Engl J Med\") or ISSN; a full title matches only as NLM records it. An empty string applies no filter; a value of only whitespace, invisible characters, markup, parentheses, brackets, or double quotes is rejected."
              },
              "species": {
                "enum": [
                  "humans",
                  "animals"
                ],
                "type": "string",
                "description": "Filter by species: `humans` adds `humans[MeSH Terms]`, `animals` adds `\"animals\"[mh:noexp]` (animals other than humans; a record indexed for both stays in). Both match only records with MEDLINE species indexing, which preprints and ahead-of-print citations lack."
              },
              "language": {
                "type": "string",
                "description": "Filter by language: its English name or three-letter NLM code (e.g. \"english\" or \"eng\"); a two-letter code such as \"en\" matches nothing. An empty string applies no filter; a value of only whitespace, invisible characters, markup, parentheses, brackets, or double quotes is rejected."
              },
              "dateRange": {
                "type": "object",
                "required": [
                  "minDate",
                  "maxDate"
                ],
                "properties": {
                  "maxDate": {
                    "type": "string",
                    "pattern": "^$|^\\d{4}([/\\-.]\\d{1,2}([/\\-.]\\d{1,2})?)?$",
                    "description": "End date (YYYY/MM/DD, YYYY/MM, or YYYY). Must be a real calendar date — `2023/02/29` is rejected. Leaving it empty drops the whole date range, not just this bound; for no upper bound pass a wide sentinel such as `3000`."
                  },
                  "minDate": {
                    "type": "string",
                    "pattern": "^$|^\\d{4}([/\\-.]\\d{1,2}([/\\-.]\\d{1,2})?)?$",
                    "description": "Start date (YYYY/MM/DD, YYYY/MM, or YYYY). Must be a real calendar date — `2023/02/29` is rejected. Leaving it empty drops the whole date range, not just this bound; for no lower bound pass a wide sentinel such as `1000`."
                  },
                  "dateType": {
                    "enum": [
                      "pdat",
                      "mdat",
                      "edat"
                    ],
                    "type": "string",
                    "default": "pdat",
                    "description": "Date type: pdat (publication), mdat (modification), edat (entrez)"
                  }
                },
                "description": "Filter by date range. The filter is applied only when both `minDate` and `maxDate` are non-empty; either one empty disables the entire date range. A partial date covers its whole year or month, and a range whose `minDate` falls after its `maxDate` is rejected: `2024/06` to `2024` is valid, `2024/07` to `2024/06/30` is not."
              },
              "meshTerms": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Filter by MeSH headings, each searched as `\"term\"[MeSH Terms]`. Multiple terms are AND'd — all must match. A supplementary concept, as many drugs are, is not a heading and matches nothing here: search it in `query` as the `searchTerm` pubmed_lookup_mesh returns, such as `\"dapagliflozin\"[nm]`. Empty strings are skipped; an element of only whitespace, invisible characters, markup, parentheses, brackets, or double quotes is rejected."
              },
              "maxResults": {
                "type": "integer",
                "default": 20,
                "maximum": 10000,
                "minimum": 0,
                "description": "Maximum results to return, up to 1000 per call; a larger value returns 1000 with a notice naming the next `offset`. 0 returns only `totalCount`."
              },
              "hasAbstract": {
                "type": "boolean",
                "description": "Only include articles with abstracts"
              },
              "freeFullText": {
                "type": "boolean",
                "description": "Only include free full text articles"
              },
              "summaryCount": {
                "type": "integer",
                "default": 0,
                "maximum": 500,
                "minimum": 0,
                "description": "Fetch brief summaries for the top N results (0 = PMIDs only), up to 50 per call; a larger value fetches 50 with a notice. Pass the PMIDs past the cap to pubmed_fetch_articles."
              },
              "publicationTypes": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Filter by publication type (e.g. \"Review\", \"Clinical Trial\", \"Meta-Analysis\"). Multiple values are OR'd — any match qualifies. Empty strings are skipped; an element of only whitespace, invisible characters, markup, parentheses, brackets, or double quotes is rejected."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "query",
                  "offset",
                  "pmids",
                  "summaries",
                  "searchUrl",
                  "totalCount",
                  "effectiveQuery",
                  "appliedFilters"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "queue_full",
                          "ncbi_unreachable",
                          "ncbi_rate_limited",
                          "ncbi_deadline_exceeded",
                          "ncbi_timed_out",
                          "ncbi_invalid_response",
                          "ncbi_resource_not_found",
                          "blank_query",
                          "invalid_date_range",
                          "blank_filter",
                          "no_search_term"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `queue_full`: The local NCBI request queue shed the call — the queue is full, or the call cannot start before its total deadline (for example behind the cooldown that follows an NCBI 429). `ncbi_unreachable`: NCBI E-utilities failed on every attempt the retry budget allowed — no connection, no answer within the per-request timeout, an HTTP 5xx other than 501 and 504, or a backend failure NCBI reported in its response — and the call stopped there: retries ran out, the next backoff would overrun the total deadline, the Retry-After NCBI named outlasts the time left or the 30-second backoff cap, or the call made one attempt without retrying because the previous call to the same E-utility had failed on every attempt. `ncbi_rate_limited`: NCBI answered HTTP 429 (too many requests) and the call stopped on it — retries ran out, the next backoff would overrun the total deadline, or the Retry-After NCBI named outlasts the time left or the 30-second backoff cap. `ncbi_deadline_exceeded`: The deadline for the NCBI call expired before NCBI answered successfully — mid-request, while queued, during a retry backoff, or before the next request could be sent. That deadline is the total NCBI request deadline, or the time the tool call had left when that was shorter; `deadlineMs` names its length. `ncbi_timed_out`: NCBI answered HTTP 504 (gateway timeout), 408 (request timeout), or 425 (too early) and the call stopped on it — retries ran out, the next backoff would overrun the total deadline, or the Retry-After NCBI named outlasts the time left or the 30-second backoff cap. `ncbi_invalid_response`: NCBI returned a body that could not be parsed (invalid XML/JSON), or a well-formed document that is not the answer the request asked for (no result element, or an ESearch result with no numeric count). `ncbi_resource_not_found`: NCBI returned a structured \"not found\" error for the requested ID(s). `blank_query`: The query contains no search term: nothing is left once whitespace and invisible characters such as a zero-width space are disregarded. pubmed_search_articles and pubmed_europepmc_search first decode HTML entities and also disregard markup and parentheses, so `()`, `<b></b>`, and `&nbsp;` hold no term there; pubmed_search_articles also disregards bracketed field tags such as `[pdat]`. On pubmed_search_articles an exactly-empty `query` is not blank: it means no query, and the search runs on its filters. `invalid_date_range`: A `dateRange` bound is not a real calendar date — a month outside 01–12, day 00, or a day past the end of its month such as `2023/02/29` — or `minDate` falls after `maxDate` once PubMed expands each partial date: `minDate` from the start of its year or month, `maxDate` to the end. `blank_filter`: An `author`, `journal`, or `language` value, or a `publicationTypes` or `meshTerms` element, holds no term once markup is removed and HTML entities are decoded — only whitespace, invisible characters such as a zero-width space, parentheses, brackets, or double quotes are left, as in `()` or `\"\"` — so its field clause would carry no term. An exactly-empty string is not blank here; it sets no filter. `no_search_term`: No `query` is given — it is omitted or an empty string — and no subject filter (`author`, `journal`, `meshTerms`, or `publicationTypes`) carries a term. `dateRange`, `language`, `species`, `hasAbstract`, and `freeFullText` narrow a search without saying what it is for, so they cannot run one alone. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "pmids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "PubMed IDs"
              },
              "query": {
                "type": "string",
                "description": "Original query; empty when the search ran on the filters alone"
              },
              "notice": {
                "type": "string",
                "description": "Optional guidance when the result set does not reflect what was asked for — a field tag PubMed ignored, a phrase it matched nothing for (with advice by the clause's field), a dateRange dropped for having one bound, no matches at all, paging past the end, a page that ends at PubMed's 9,999-record window with matches past it that no `offset` reaches, or a `maxResults` or `summaryCount` past its per-call cap, served at the cap. Absent when nothing applies."
              },
              "offset": {
                "type": "number",
                "description": "Result offset used"
              },
              "searchUrl": {
                "type": "string",
                "description": "PubMed search URL"
              },
              "summaries": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "pmid",
                    "pubmedUrl"
                  ],
                  "properties": {
                    "doi": {
                      "type": "string",
                      "description": "DOI, cased as NCBI reports it. DOIs are case-insensitive by spec and no case normalization is applied here, so casing can differ from a Europe PMC-sourced `doi` — compare the two case-insensitively. Absent when the record has none."
                    },
                    "pmid": {
                      "type": "string",
                      "description": "PubMed ID"
                    },
                    "pmcId": {
                      "type": "string",
                      "description": "PubMed Central ID (`PMC` prefix) of the record's PMC copy. Absent when the record has none."
                    },
                    "title": {
                      "type": "string",
                      "description": "Article title"
                    },
                    "pmcUrl": {
                      "type": "string",
                      "description": "Link to the record's PMC copy; present exactly when `pmcId` is."
                    },
                    "source": {
                      "type": "string",
                      "description": "Journal the article appeared in. Absent on an NCBI Bookshelf record, which has no journal — its venue is in `bookTitle` and `publisherName` instead, and `docType` says which kind of record it is."
                    },
                    "authors": {
                      "type": "string",
                      "description": "Author string — the first three of the record's own authors, then \"et al.\". On an NCBI Bookshelf chapter these are the chapter's authors; the book's editors are in `editors`."
                    },
                    "docType": {
                      "type": "string",
                      "description": "What PubMed classifies this record as: \"chapter\" or \"book\" for an NCBI Bookshelf record, \"citation\" for an ordinary journal article. Absent when PubMed supplies none."
                    },
                    "editors": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "description": "One editor, \"Surname Initials\" as ESummary renders it"
                      },
                      "description": "Editors of the containing book, kept out of `authors` so they cannot displace the record's own authors. Absent on a journal article and on a book that credits no editors."
                    },
                    "pubDate": {
                      "type": "string",
                      "description": "Publication date as PubMed states it, in ISO 8601 at that precision: `2026`, `2026-12`, or `2026-09-30`. A stated range is an interval `start/end` — `2026-09/2026-10` for a bimonthly issue, `1994/1995`, `2006-12-12/2007-01-01` — and a season reads as its year; every form opens with the four-digit year. On an NCBI Bookshelf chapter (`docType` \"chapter\") it is the chapter's own date — its last revision, otherwise its contribution — not the year its book began. Absent when PubMed states no date with a year."
                    },
                    "epubDate": {
                      "type": "string",
                      "description": "Electronic publication date — when the article went online, often ahead of the issue `pubDate` names — in ISO 8601 at the precision PubMed states, normally `YYYY-MM-DD`. Absent when PubMed records none."
                    },
                    "bookTitle": {
                      "type": "string",
                      "description": "Title of the book an NCBI Bookshelf record belongs to, e.g. \"GeneReviews(®)\". Present instead of `source` on a book record; absent on a journal article."
                    },
                    "languages": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "description": "One NLM three-letter language code, e.g. \"eng\""
                      },
                      "description": "Languages the article is published in, as NLM three-letter codes in NCBI's order (e.g. [\"eng\"], [\"ger\"], [\"eng\", \"spa\"]) — the codes `pubmed_fetch_articles` returns in its `languages`. A record in another language that NLM has indexed carries NLM's English translation as `title`, usually in square brackets; a recent record not yet indexed can carry its original-language title. Absent only when ESummary did not describe the record, as for a PMID it does not know."
                    },
                    "pubmedUrl": {
                      "type": "string",
                      "description": "Link to the record's PubMed page; present on every row."
                    },
                    "publisherName": {
                      "type": "string",
                      "description": "Publisher of the book an NCBI Bookshelf record belongs to. Present only on a book record; absent on a journal article."
                    }
                  },
                  "description": "Brief article summary",
                  "additionalProperties": false
                },
                "description": "Brief summaries (empty array when summaryCount is 0)"
              },
              "totalCount": {
                "type": "number",
                "description": "Total matching articles"
              },
              "appliedFilters": {
                "type": "object",
                "properties": {
                  "author": {
                    "type": "string",
                    "description": "Author filter applied to the search"
                  },
                  "journal": {
                    "type": "string",
                    "description": "Journal filter applied to the search"
                  },
                  "species": {
                    "enum": [
                      "humans",
                      "animals"
                    ],
                    "type": "string",
                    "description": "Species filter applied to the search: `humans` as `humans[MeSH Terms]`, `animals` as `\"animals\"[mh:noexp]`"
                  },
                  "language": {
                    "type": "string",
                    "description": "Language filter applied to the search"
                  },
                  "dateRange": {
                    "type": "object",
                    "required": [
                      "minDate",
                      "maxDate",
                      "dateType"
                    ],
                    "properties": {
                      "maxDate": {
                        "type": "string",
                        "description": "Applied maximum date"
                      },
                      "minDate": {
                        "type": "string",
                        "description": "Applied minimum date"
                      },
                      "dateType": {
                        "enum": [
                          "pdat",
                          "mdat",
                          "edat"
                        ],
                        "type": "string",
                        "description": "Applied date field used for the range filter"
                      }
                    },
                    "description": "Date range filter applied to the search",
                    "additionalProperties": false
                  },
                  "meshTerms": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "MeSH term filters applied to the search"
                  },
                  "hasAbstract": {
                    "type": "boolean",
                    "description": "Whether results were restricted to articles with abstracts"
                  },
                  "freeFullText": {
                    "type": "boolean",
                    "description": "Whether results were restricted to free full-text articles"
                  },
                  "publicationTypes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Publication type filters applied to the search"
                  }
                },
                "description": "Filter values applied to the PubMed query, as sent: each text value as written, formatting tags removed, and dates in YYYY/MM/DD form",
                "additionalProperties": false
              },
              "effectiveQuery": {
                "type": "string",
                "description": "The term sent to PubMed: the query as written, with a clause appended for each active filter, or the filter clauses alone, joined by AND, when no query was given. Only inline formatting tags with no attributes (`<i>`, `<b>`, `<em>`, `<strong>`, `<u>` and their closers) are removed; `&`, `<`, and `>` are sent as written."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "pubmed_fetch_articles",
          "title": "Pubmed Fetch Articles",
          "description": "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.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "pmids"
            ],
            "properties": {
              "pmids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^\\d+$"
                },
                "maxItems": 200,
                "minItems": 1,
                "description": "PubMed IDs to fetch"
              },
              "idType": {
                "type": "string",
                "const": "pmid",
                "description": "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": {
                "type": "boolean",
                "default": true,
                "description": "Include the record's indexing: `meshTerms` and its substance list, `chemicals`"
              },
              "includeGrants": {
                "type": "boolean",
                "default": false,
                "description": "Include grant information"
              },
              "includeInvestigators": {
                "type": "boolean",
                "default": false,
                "description": "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": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 1,
                "description": "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."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "truncated": true,
            "chars": 22867
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "pubmed_fetch_fulltext",
          "title": "Pubmed Fetch Fulltext",
          "description": "Fetch full-text articles from PubMed Central as structured sections — the body, then back matter such as acknowledgments, declarations, and appendices — with tables and references. When PMC misses, transparently falls back to Europe PMC `fullTextXML` (structured JATS for its open-access subset, preprints included), then to Unpaywall — publisher-hosted or institutional open-access copies as HTML-as-Markdown or PDF-as-text. Name articles by `pmcids` (PMC IDs directly), `pmids` (PubMed IDs, auto-resolved), `dois` (DOIs, auto-resolved to PMC via the ID Converter; preprints and EPMC-only OA fall through to the Europe PMC and Unpaywall layers), or any mix of the three — up to 50 distinct identifiers; the first 10 are fetched per call, the rest returned in `overLimit`; an article several of them name is fetched and returned once. Two independent character controls: `maxCharacters` caps body text per article, `maxResponseCharacters` caps the whole response and defers articles past the ceiling whole, listing them in `deferred.ids` for a follow-up call.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "dois": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^10\\.[^\\s,]+\\/[^\\s,]+$"
                },
                "maxItems": 50,
                "minItems": 1,
                "description": "DOIs to resolve (e.g. [\"10.21203/rs.3.rs-9010375/v1\"]), one per element. Combinable with `pmcids` and `pmids` — up to 50 distinct identifiers across the three; the first 10 are fetched per call, the rest returned in `overLimit`. Resolved to a PMCID via the PMC ID Converter and returned as structured JATS when the article is in PMC; DOIs with no PMC counterpart (preprints, EPMC-only OA) fall through to Europe PMC, then Unpaywall, when those layers are enabled."
              },
              "pmids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^\\d+$"
                },
                "maxItems": 50,
                "minItems": 1,
                "description": "PubMed IDs. Combinable with `pmcids` and `dois` — up to 50 distinct identifiers across the three; the first 10 are fetched per call, the rest returned in `overLimit`. Articles in PMC are returned as structured JATS; articles not in PMC fall through to Europe PMC (when EPMC has a `fullTextXML`), then to Unpaywall when `UNPAYWALL_EMAIL` is set and a DOI is available."
              },
              "pmcids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^(?:PMC)?\\d+$"
                },
                "maxItems": 50,
                "minItems": 1,
                "description": "PMC IDs to fetch (e.g. [\"PMC9575052\"]). Combinable with `pmids` and `dois` — up to 50 distinct identifiers across the three; the first 10 are fetched per call, the rest returned in `overLimit`. PMC IDs with no retrievable full text fall through to Europe PMC, then to Unpaywall on the DOI the chain resolves for them."
              },
              "sections": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Filter to specific sections by title (e.g. [\"Introduction\", \"Methods\", \"Results\", \"Discussion\"]). A term matches a section or subsection title at any nesting depth, case-insensitively, as a substring — \"resul\" matches \"Results\". Back-matter sections match the same way: by their own titles, or by their kind when they carry neither a title nor a label — \"appendix\" matches a section titled \"Appendix A\", \"footnotes\" an untitled footnote group. A label is never matched, so an appendix labelled \"Appendix A\" under a title of its own matches only on that title. A section whose own title matches is returned whole; one kept only because a nested subsection matched keeps its heading as a breadcrumb, with its own text cleared and only the matching branch beneath it. Tables and assets narrow with the filter: one whose section did not survive, or that names no section, is dropped. Empty strings are skipped, so `[\"\"]` applies no filter; an element of only whitespace or invisible characters, such as a zero-width space, is rejected. Applies to `source=pmc` results only."
              },
              "maxSections": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 1,
                "description": "Maximum top-level sections, counted after `sections`. Back-matter sections count and follow the body, so a cap drops them first. The sections it drops are named per article in `sectionCap`. Applies to `source=pmc` results only."
              },
              "overflowMode": {
                "enum": [
                  "truncate",
                  "outline"
                ],
                "type": "string",
                "default": "truncate",
                "description": "How to spend `maxCharacters` across an article that exceeds it. truncate: fill sections in document order, so early sections stay whole, the section the budget runs out in is cut, and every section or subsection past that point is dropped (counted in `truncation.omittedSections`). outline: every section and subsection keeps its heading, and the budget is split evenly at every level — across the top-level sections, then inside each one across its own text and each subsection — with what a short part does not need going to the rest. A part whose share would cut it to under 100 characters (or under `maxCharactersPerSection`, when that is lower) returns heading-only instead, its share going to the others, emptying the last such part first; a part that fits its share keeps all its text however short, and a cut excerpt ends at the last word boundary inside its share, so it can run somewhat under that floor. A heading the budget left empty is marked as such in the rendered text. In both modes the body sections spend the budget first and back-matter sections share what the body, tables, and assets leave. Use it to survey what an article contains before requesting specific `sections`. Ignored when no budget is set, and identical for `source=unpaywall` bodies, which have no headings to preserve."
              },
              "includeAssets": {
                "type": "boolean",
                "default": true,
                "description": "Include the article's figures and supplementary material — `assets[]`, each with its label, caption, enclosing section and deposit pointer. On by default because it is cheaper than tables: a median asset-bearing article grows about 10%, and the body prose already refers to these by label. Set false to omit them, which also removes the `[Figure: …]` / `[Supplementary: …]` markers from the section text, since without the array they point at nothing. Prose-shaped blocks — lists, definition lists, block quotes, boxed text, preformatted blocks, displayed formulae — are section text rather than assets and this switch never affects them. Applies to `source=pmc` results only."
              },
              "includeTables": {
                "type": "boolean",
                "default": true,
                "description": "Include the article's tables — cells, captions, labels and footnotes. On by default because a dropped table takes its numbers with it. Table-dense articles pay for it: rendered tables typically add 12–17% to an article record and can more than double it. Set false to omit them, or cap the cost with `maxCharacters`, which drops tables it cannot fit whole. Applies to `source=pmc` results only."
              },
              "maxCharacters": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 1,
                "description": "Per-article budget for body text, in characters. Counts `source=pmc` section and subsection text — which carries the inline blocks the parser renders in place, such as lists, definition lists, block quotes, boxed text, preformatted blocks and displayed formulae — plus table label, caption, cell and footnote text and asset label, caption and `href` text; or the `source=unpaywall` `content` body. Titles, abstracts, identifiers, licenses, and references are never counted or shortened. Shortened text ends at the last word boundary inside its allowance, so it can come back a few characters under it; a section or subsection whose allowance cannot hold its first word returns no text rather than part of that word, so it is dropped in `truncate` mode and heading-only in `outline` mode, while text that is one unbroken token, such as a sequence or URL, is cut at the allowance. The counted unit is that text alone — the Markdown grid `content[]` renders around the cells (pipes, padding, the divider row, headings) is scaffolding this budget does not measure, so a table renders longer than it costs here. Body sections are served first, then tables, then assets, then back-matter sections, each spending what is left, in document order. For tables and assets, admission stops at the first entry that does not fit, and every entry from there on is dropped whole rather than cut mid-row or returned with a shortened caption, counted in `truncation.omittedTables` / `truncation.omittedAssets` and named in `truncation.articles[].omittedTableNames` / `omittedAssetNames`. Back matter takes only what remains and is shortened or dropped as body sections are; `sections` still returns it after the body. Applied after `sections`, `maxSections`, `includeReferences`, `includeTables`, and `includeAssets`, so semantic filtering is unaffected. This knob alone bounds only bodies: the response-wide ceiling it implies is this value times the number of articles returned, plus every uncounted field. Use `maxResponseCharacters` for a true whole-response ceiling. Omit for the full body."
              },
              "includeReferences": {
                "type": "boolean",
                "default": false,
                "description": "Include reference list. Applies to `source=pmc` results only."
              },
              "maxResponseCharacters": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 1,
                "description": "Opt-in ceiling for the whole response, in characters — the true response-wide counterpart to the per-article `maxCharacters`. Each article is measured as the JSON record it is returned as, after every filter and the per-article body budget: title, abstract, sections, references, identifiers, license and source metadata — every field it carries. One ledger covers all tiers, so PMC-, Europe PMC-, and Unpaywall-served articles spend the same budget. Articles are kept in the order `articles` lists them 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, `unavailable`, `truncation`, `sectionCap`, `deferred` itself — are not counted. Omit to return every resolved article."
              },
              "maxCharactersPerSection": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 1,
                "description": "Budget for a single top-level section, in characters, counting the section text plus its subsections. Combine with `maxCharacters` to cap both one section and the article; the tighter of the two wins. Applies to `source=pmc` results only."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "truncated": true,
            "chars": 39006
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "pubmed_format_citations",
          "title": "Pubmed Format Citations",
          "description": "Get formatted citations for PubMed articles in one or more formats (apa, mla, bibtex, ris, vancouver). Pass a single format as a string or multiple as an array. Retractions, errata, and expressions of concern NCBI links to an article come back in `notices`; Vancouver and APA also cite a retraction in the reference itself.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "pmids"
            ],
            "properties": {
              "pmids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^\\d+$"
                },
                "maxItems": 50,
                "minItems": 1,
                "description": "PubMed IDs to cite"
              },
              "format": {
                "anyOf": [
                  {
                    "enum": [
                      "apa",
                      "mla",
                      "bibtex",
                      "ris",
                      "vancouver"
                    ],
                    "type": "string",
                    "description": "Single citation style. One of: apa, mla, bibtex, ris, vancouver."
                  },
                  {
                    "type": "array",
                    "items": {
                      "enum": [
                        "apa",
                        "mla",
                        "bibtex",
                        "ris",
                        "vancouver"
                      ],
                      "type": "string"
                    },
                    "minItems": 1,
                    "description": "Multiple citation styles to generate. Each entry: apa, mla, bibtex, ris, or vancouver."
                  }
                ],
                "default": "apa",
                "description": "Citation format(s) to generate — single style as a string or multiple as an array. Allowed values: apa, mla, bibtex, ris, vancouver."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "citations",
                  "totalSubmitted",
                  "totalFormatted"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "queue_full",
                          "ncbi_unreachable",
                          "ncbi_rate_limited",
                          "ncbi_deadline_exceeded",
                          "ncbi_timed_out",
                          "ncbi_invalid_response",
                          "ncbi_resource_not_found"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `queue_full`: The local NCBI request queue shed the call — the queue is full, or the call cannot start before its total deadline (for example behind the cooldown that follows an NCBI 429). `ncbi_unreachable`: NCBI E-utilities failed on every attempt the retry budget allowed — no connection, no answer within the per-request timeout, an HTTP 5xx other than 501 and 504, or a backend failure NCBI reported in its response — and the call stopped there: retries ran out, the next backoff would overrun the total deadline, the Retry-After NCBI named outlasts the time left or the 30-second backoff cap, or the call made one attempt without retrying because the previous call to the same E-utility had failed on every attempt. `ncbi_rate_limited`: NCBI answered HTTP 429 (too many requests) and the call stopped on it — retries ran out, the next backoff would overrun the total deadline, or the Retry-After NCBI named outlasts the time left or the 30-second backoff cap. `ncbi_deadline_exceeded`: The deadline for the NCBI call expired before NCBI answered successfully — mid-request, while queued, during a retry backoff, or before the next request could be sent. That deadline is the total NCBI request deadline, or the time the tool call had left when that was shorter; `deadlineMs` names its length. `ncbi_timed_out`: NCBI answered HTTP 504 (gateway timeout), 408 (request timeout), or 425 (too early) and the call stopped on it — retries ran out, the next backoff would overrun the total deadline, or the Retry-After NCBI named outlasts the time left or the 30-second backoff cap. `ncbi_invalid_response`: NCBI returned a body that could not be parsed (invalid XML/JSON), or a well-formed document that is not the answer the request asked for (no result element, or an ESearch result with no numeric count). `ncbi_resource_not_found`: NCBI returned a structured \"not found\" error for the requested ID(s). Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "notice": {
                "type": "string",
                "description": "Optional guidance when no citations were produced — points to discovery tools. Absent when at least one citation was produced."
              },
              "citations": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "pmid",
                    "citations"
                  ],
                  "properties": {
                    "pmid": {
                      "type": "string",
                      "description": "PubMed ID"
                    },
                    "title": {
                      "type": "string",
                      "description": "Article title"
                    },
                    "notices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "refType",
                          "refSource"
                        ],
                        "properties": {
                          "note": {
                            "type": "string",
                            "description": "NCBI's note on the link, e.g. the correction an erratum makes. Absent when NCBI gives none."
                          },
                          "pmid": {
                            "type": "string",
                            "description": "PMID of the notice — pass it to `pubmed_fetch_articles` to read it. Absent when the notice has no PMID, as with many errata."
                          },
                          "refType": {
                            "enum": [
                              "RetractionIn",
                              "RetractedandRepublishedIn",
                              "ExpressionOfConcernIn",
                              "ErratumIn",
                              "CorrectedandRepublishedIn"
                            ],
                            "type": "string",
                            "description": "NCBI's `RefType` for the link: RetractionIn, RetractedandRepublishedIn, ExpressionOfConcernIn, ErratumIn, or CorrectedandRepublishedIn."
                          },
                          "refSource": {
                            "type": "string",
                            "description": "Citation of the notice as NCBI writes it (e.g. \"Lancet. 2010 Feb 6;375(9713):445. doi: 10.1016/S0140-6736(10)60175-4.\")."
                          }
                        },
                        "description": "A linked notice that qualifies the cited article",
                        "additionalProperties": false
                      },
                      "description": "Retraction, erratum, and expression-of-concern notices NCBI links to this article, in NCBI's order. Vancouver notes each `RetractionIn` and `ErratumIn` after the reference and APA each `RetractionIn`; the other types, and MLA, BibTeX, and RIS, carry none, so check this before citing. Absent when NCBI links none."
                    },
                    "citations": {
                      "type": "object",
                      "description": "Citations keyed by style. APA and MLA are Markdown — the journal, volume and book title in *italics*, every other character of the record escaped so it renders as written; BibTeX, RIS and Vancouver are plain text.",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "string"
                      }
                    }
                  },
                  "description": "Citations for a single article",
                  "additionalProperties": false
                },
                "description": "Citations per article"
              },
              "totalFormatted": {
                "type": "number",
                "description": "Number of PMIDs successfully formatted"
              },
              "totalSubmitted": {
                "type": "number",
                "description": "Number of PMIDs submitted for citation formatting"
              },
              "unavailablePmids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "PMIDs PubMed returned no record for, so nothing could be cited for them. That is all this reports: PubMed omits a PMID it does not recognize silently, with no error and no reason, so the absence says nothing about whether the PMID exists. Use `pubmed_search_articles` to find PMIDs that do resolve."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "pubmed_find_related",
          "title": "Pubmed Find Related",
          "description": "Find articles related to a source article — similar content (similar), articles citing this one (cited_by), or articles this one cites (references). Uses NCBI ELink as the primary source; falls back to Europe PMC then OpenAlex when NCBI is unavailable.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "pmid"
            ],
            "properties": {
              "pmid": {
                "type": "string",
                "pattern": "^\\d+$",
                "description": "Source PubMed ID"
              },
              "offset": {
                "type": "integer",
                "default": 0,
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Result offset for pagination (0-based). For the next page, add the number of articles returned (at most 50) to this offset."
              },
              "maxResults": {
                "type": "integer",
                "default": 10,
                "maximum": 500,
                "minimum": 1,
                "description": "Maximum related articles per page, up to 50 per call. A larger value is served at 50, with a notice naming the next `offset` when more remain."
              },
              "relationship": {
                "enum": [
                  "similar",
                  "cited_by",
                  "references"
                ],
                "type": "string",
                "default": "similar",
                "description": "Relationship type: similar (content-based), cited_by (articles citing this one), references (articles this one cites)"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "sourcePmid",
                  "relationship",
                  "offset",
                  "articles",
                  "totalCount",
                  "source"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "all_providers_failed"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `all_providers_failed`: Every provider eligible for the requested relationship failed, or was not asked because the call's deadline ran out first; none answered. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "notice": {
                "type": "string",
                "description": "Guidance when results are empty, a fallback provider answered, offset overshot, a fallback provider could not be reached or was not asked before the call's deadline ran out, upstream rows were excluded for carrying no PubMed PMID, article metadata could not be fetched, or a `maxResults` past the per-call cap of 50 was served at 50. Absent on an NCBI result page that needs none of these."
              },
              "offset": {
                "type": "number",
                "description": "Result offset used"
              },
              "source": {
                "enum": [
                  "ncbi",
                  "europepmc",
                  "openalex"
                ],
                "type": "string",
                "description": "Provider that answered this request"
              },
              "articles": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "pmid",
                    "pubmedUrl"
                  ],
                  "properties": {
                    "doi": {
                      "type": "string",
                      "description": "DOI, cased as NCBI reports it. DOIs are case-insensitive by spec and no case normalization is applied here, so casing can differ from a Europe PMC-sourced `doi` — compare the two case-insensitively. Absent when the record has none."
                    },
                    "pmid": {
                      "type": "string",
                      "description": "PubMed ID"
                    },
                    "pmcId": {
                      "type": "string",
                      "description": "PubMed Central ID (`PMC` prefix) of the record's PMC copy. Absent when the record has none."
                    },
                    "title": {
                      "type": "string",
                      "description": "Article title"
                    },
                    "pmcUrl": {
                      "type": "string",
                      "description": "Link to the record's PMC copy; present exactly when `pmcId` is."
                    },
                    "source": {
                      "type": "string",
                      "description": "Journal the article appeared in. Absent on an NCBI Bookshelf record, which has no journal — its venue is in `bookTitle` and `publisherName` instead, and `docType` says which kind of record it is."
                    },
                    "authors": {
                      "type": "string",
                      "description": "Author string — the first three of the record's own authors, then \"et al.\". On an NCBI Bookshelf chapter these are the chapter's authors; the book's editors are in `editors`."
                    },
                    "docType": {
                      "type": "string",
                      "description": "What PubMed classifies this record as: \"chapter\" or \"book\" for an NCBI Bookshelf record, \"citation\" for an ordinary journal article. Absent when PubMed supplies none."
                    },
                    "editors": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "description": "One editor, \"Surname Initials\" as ESummary renders it"
                      },
                      "description": "Editors of the containing book, kept out of `authors` so they cannot displace the record's own authors. Absent on a journal article and on a book that credits no editors."
                    },
                    "pubDate": {
                      "type": "string",
                      "description": "Publication date as PubMed states it, in ISO 8601 at that precision: `2026`, `2026-12`, or `2026-09-30`. A stated range is an interval `start/end` — `2026-09/2026-10` for a bimonthly issue, `1994/1995`, `2006-12-12/2007-01-01` — and a season reads as its year; every form opens with the four-digit year. On an NCBI Bookshelf chapter (`docType` \"chapter\") it is the chapter's own date — its last revision, otherwise its contribution — not the year its book began. Absent when PubMed states no date with a year."
                    },
                    "epubDate": {
                      "type": "string",
                      "description": "Electronic publication date — when the article went online, often ahead of the issue `pubDate` names — in ISO 8601 at the precision PubMed states, normally `YYYY-MM-DD`. Absent when PubMed records none."
                    },
                    "bookTitle": {
                      "type": "string",
                      "description": "Title of the book an NCBI Bookshelf record belongs to, e.g. \"GeneReviews(®)\". Present instead of `source` on a book record; absent on a journal article."
                    },
                    "languages": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "description": "One NLM three-letter language code, e.g. \"eng\""
                      },
                      "description": "Languages the article is published in, as NLM three-letter codes in NCBI's order (e.g. [\"eng\"], [\"ger\"], [\"eng\", \"spa\"]) — the codes `pubmed_fetch_articles` returns in its `languages`. A record in another language that NLM has indexed carries NLM's English translation as `title`, usually in square brackets; a recent record not yet indexed can carry its original-language title. Absent only when ESummary did not describe the record, as for a PMID it does not know."
                    },
                    "pubmedUrl": {
                      "type": "string",
                      "description": "Link to the record's PubMed page; present on every row."
                    },
                    "publisherName": {
                      "type": "string",
                      "description": "Publisher of the book an NCBI Bookshelf record belongs to. Present only on a book record; absent on a journal article."
                    }
                  },
                  "description": "Related article with enriched summary",
                  "additionalProperties": false
                },
                "description": "Related articles, each summarized as `pubmed_search_articles` summarizes a search result. When NCBI eSummary does not answer, or the call's deadline runs out before it is asked, each is its `pmid` and `pubmedUrl` alone, with a notice."
              },
              "sourcePmid": {
                "type": "string",
                "description": "Source PubMed ID"
              },
              "totalCount": {
                "type": "number",
                "description": "Total related articles found before windowing. A Europe PMC or OpenAlex total may shrink to the PubMed-addressable count once a request window covers the whole upstream set, since rows without a PubMed PMID cannot be returned."
              },
              "relationship": {
                "enum": [
                  "similar",
                  "cited_by",
                  "references"
                ],
                "type": "string",
                "description": "Relationship type used"
              },
              "coverageFailures": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "provider",
                    "reason",
                    "retryable"
                  ],
                  "properties": {
                    "reason": {
                      "type": "string",
                      "description": "Declared failure reason, e.g. europepmc_unreachable; provider_disabled when configuration turned the provider off, not_reached when the call's deadline ran out before it was asked"
                    },
                    "provider": {
                      "enum": [
                        "europepmc",
                        "openalex"
                      ],
                      "type": "string",
                      "description": "Reference-coverage provider that did not answer"
                    },
                    "retryable": {
                      "type": "boolean",
                      "description": "Whether a retry can reach this provider"
                    }
                  },
                  "description": "One coverage provider that could not be checked",
                  "additionalProperties": false
                },
                "description": "Reference-coverage fallbacks that failed, or were not asked before the call's deadline ran out, instead of answering, so the reference set is unverified rather than confirmed absent. Absent when every provider consulted answered."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "pubmed_spell_check",
          "title": "Pubmed Spell Check",
          "description": "Spell-check a PubMed search query against NCBI ESpell and get the corrected query back. Use after a zero-hit or thin `pubmed_search_articles` result, or when a drug, gene, disease, or author name may be misspelled. Corrections are applied in place, so field tags, operators, spacing, and gene symbols stay as written (`alzhiemer diseese treatmnt outcomse` → `alzheimer disease treatment outcomes`). The value of an indexed field — MeSH, publication type, journal, author, language, subset, and the like (`aged[mh]`, `free full text[sb]`, `zhang y[au]`) — is kept as written, misspelled or not, since the ESpell dictionary is not the index that field searches; free-text fields such as `[tiab]`, `[ti]`, and `[tw]` are corrected. Words in all capitals, with digits or non-ASCII letters, or differing only in case are never changed, nor is a single letter swapped for another (`q fever`, the initial in `smith q`), words after a number or symbol ESpell skips are left as written, and `hasSuggestion` is false when no correction was applied. Each correction is checked against PubMed first: one with under a tenth of the PubMed records of the word it replaces is dropped and the word kept (`tirzepatide`, which ESpell would turn into `irzepatide`), unless ESpell's MeSH dictionary offers a spelling PubMed holds more often than the word (`tirzepatid` → `tirzepatide`). A check that cannot run leaves ESpell's correction applied, or the dropped word as written, and `notice` names it. Re-run the search with `corrected`.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "query"
            ],
            "properties": {
              "query": {
                "type": "string",
                "minLength": 2,
                "description": "PubMed search query to spell-check. Must carry a term: a value of only whitespace or invisible characters, such as a zero-width space, is rejected rather than sent to ESpell."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "original",
                  "corrected",
                  "hasSuggestion"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "queue_full",
                          "ncbi_unreachable",
                          "ncbi_rate_limited",
                          "ncbi_deadline_exceeded",
                          "ncbi_timed_out",
                          "ncbi_invalid_response",
                          "ncbi_resource_not_found",
                          "blank_query"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `queue_full`: The local NCBI request queue shed the call — the queue is full, or the call cannot start before its total deadline (for example behind the cooldown that follows an NCBI 429). `ncbi_unreachable`: NCBI E-utilities failed on every attempt the retry budget allowed — no connection, no answer within the per-request timeout, an HTTP 5xx other than 501 and 504, or a backend failure NCBI reported in its response — and the call stopped there: retries ran out, the next backoff would overrun the total deadline, the Retry-After NCBI named outlasts the time left or the 30-second backoff cap, or the call made one attempt without retrying because the previous call to the same E-utility had failed on every attempt. `ncbi_rate_limited`: NCBI answered HTTP 429 (too many requests) and the call stopped on it — retries ran out, the next backoff would overrun the total deadline, or the Retry-After NCBI named outlasts the time left or the 30-second backoff cap. `ncbi_deadline_exceeded`: The deadline for the NCBI call expired before NCBI answered successfully — mid-request, while queued, during a retry backoff, or before the next request could be sent. That deadline is the total NCBI request deadline, or the time the tool call had left when that was shorter; `deadlineMs` names its length. `ncbi_timed_out`: NCBI answered HTTP 504 (gateway timeout), 408 (request timeout), or 425 (too early) and the call stopped on it — retries ran out, the next backoff would overrun the total deadline, or the Retry-After NCBI named outlasts the time left or the 30-second backoff cap. `ncbi_invalid_response`: NCBI returned a body that could not be parsed (invalid XML/JSON), or a well-formed document that is not the answer the request asked for (no result element, or an ESearch result with no numeric count). `ncbi_resource_not_found`: NCBI returned a structured \"not found\" error for the requested ID(s). `blank_query`: The query contains no search term: nothing is left once whitespace and invisible characters such as a zero-width space are disregarded. pubmed_search_articles and pubmed_europepmc_search first decode HTML entities and also disregard markup and parentheses, so `()`, `<b></b>`, and `&nbsp;` hold no term there; pubmed_search_articles also disregards bracketed field tags such as `[pdat]`. On pubmed_search_articles an exactly-empty `query` is not blank: it means no query, and the search runs on its filters. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "notice": {
                "type": "string",
                "description": "Names each correction applied as ESpell wrote it without its PubMed record-count check, and each word kept as written without a MeSH-dictionary spelling tried, with the cause: an NCBI request failed, the checks reached their limit of 12 requests, or they ran out of time (10 seconds, or less when the tool call had less time left). Absent when every check ran."
              },
              "original": {
                "type": "string",
                "description": "Original query"
              },
              "corrected": {
                "type": "string",
                "description": "The query with ESpell's accepted corrections applied in place; field tags, the values of indexed fields such as `aged[mh]` and `zhang y[au]`, operators, spacing, words in capitals or with digits, and a single letter ESpell would swap for another are kept as written. So is a word whose ESpell correction has under a tenth of its PubMed records, unless ESpell's MeSH dictionary offers a spelling PubMed holds more often than the word, which is used instead. Same as `original` when `hasSuggestion` is false."
              },
              "hasSuggestion": {
                "type": "boolean",
                "description": "Whether at least one correction was applied to `corrected`"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "pubmed_lookup_mesh",
          "title": "Pubmed Lookup Mesh",
          "description": "Search and explore the MeSH (Medical Subject Headings) controlled vocabulary. Returns MeSH records of every type — descriptors, supplementary concepts, qualifiers, and pharmacological actions — each with its record type and the PubMed clause that searches it, plus tree numbers, scope notes, entry terms, year introduced, previous indexing, and the exact heading match's allowable subheadings, with pagination via offset for paging past the maxResults cap.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "query"
            ],
            "properties": {
              "query": {
                "type": "string",
                "minLength": 1,
                "description": "MeSH term (a heading, supplementary concept, or qualifier name) or free-text term to look up. Must carry a term: a value of only whitespace or invisible characters, such as a zero-width space, is rejected rather than searched."
              },
              "offset": {
                "type": "integer",
                "default": 0,
                "maximum": 9007199254740991,
                "minimum": 0,
                "description": "Result offset for pagination (0-based). Pass the `nextOffset` from the previous response to get the following page; the exact match is pinned to the first page only."
              },
              "maxResults": {
                "type": "integer",
                "default": 10,
                "maximum": 500,
                "minimum": 1,
                "description": "Maximum results per page, up to 50 per call. A larger value is served at 50, with a notice; continue from `nextOffset`."
              },
              "includeDetails": {
                "type": "boolean",
                "default": true,
                "description": "Include each record's details: scope note, tree numbers, entry terms, year introduced, previous indexing, and — on the exact heading match only — its allowable subheadings. `recordType` and `searchTerm` are returned either way."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "query",
                  "offset",
                  "results",
                  "totalCount"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "queue_full",
                          "ncbi_unreachable",
                          "ncbi_rate_limited",
                          "ncbi_deadline_exceeded",
                          "ncbi_timed_out",
                          "ncbi_invalid_response",
                          "ncbi_resource_not_found",
                          "blank_query"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `queue_full`: The local NCBI request queue shed the call — the queue is full, or the call cannot start before its total deadline (for example behind the cooldown that follows an NCBI 429). `ncbi_unreachable`: NCBI E-utilities failed on every attempt the retry budget allowed — no connection, no answer within the per-request timeout, an HTTP 5xx other than 501 and 504, or a backend failure NCBI reported in its response — and the call stopped there: retries ran out, the next backoff would overrun the total deadline, the Retry-After NCBI named outlasts the time left or the 30-second backoff cap, or the call made one attempt without retrying because the previous call to the same E-utility had failed on every attempt. `ncbi_rate_limited`: NCBI answered HTTP 429 (too many requests) and the call stopped on it — retries ran out, the next backoff would overrun the total deadline, or the Retry-After NCBI named outlasts the time left or the 30-second backoff cap. `ncbi_deadline_exceeded`: The deadline for the NCBI call expired before NCBI answered successfully — mid-request, while queued, during a retry backoff, or before the next request could be sent. That deadline is the total NCBI request deadline, or the time the tool call had left when that was shorter; `deadlineMs` names its length. `ncbi_timed_out`: NCBI answered HTTP 504 (gateway timeout), 408 (request timeout), or 425 (too early) and the call stopped on it — retries ran out, the next backoff would overrun the total deadline, or the Retry-After NCBI named outlasts the time left or the 30-second backoff cap. `ncbi_invalid_response`: NCBI returned a body that could not be parsed (invalid XML/JSON), or a well-formed document that is not the answer the request asked for (no result element, or an ESearch result with no numeric count). `ncbi_resource_not_found`: NCBI returned a structured \"not found\" error for the requested ID(s). `blank_query`: The query contains no search term: nothing is left once whitespace and invisible characters such as a zero-width space are disregarded. pubmed_search_articles and pubmed_europepmc_search first decode HTML entities and also disregard markup and parentheses, so `()`, `<b></b>`, and `&nbsp;` hold no term there; pubmed_search_articles also disregards bracketed field tags such as `[pdat]`. On pubmed_search_articles an exactly-empty `query` is not blank: it means no query, and the search runs on its filters. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "query": {
                "type": "string",
                "description": "Original search query"
              },
              "notice": {
                "type": "string",
                "description": "Optional guidance when no MeSH records matched, the offset overshot the result set, or a `maxResults` past the per-call cap of 50 was served at 50 — suggests spell-check, free-text search, resetting the offset, or the `nextOffset` to continue from. Absent on a result page that needs none of these."
              },
              "offset": {
                "type": "number",
                "description": "Result offset this page was read from"
              },
              "results": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "entrezUid",
                    "name"
                  ],
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "The record's preferred term: a heading, qualifier, or supplementary concept name as NLM writes it."
                    },
                    "meshId": {
                      "type": "string",
                      "description": "Canonical MeSH unique identifier (e.g. \"D003924\", \"C000626284\", \"Q000009\") — resolves at the MeSH Browser and NLM linked data. A pharmacological-action record carries its descriptor's UI. Omitted only when eSummary returned no record for this UID."
                    },
                    "entrezUid": {
                      "type": "string",
                      "description": "NCBI Entrez UID for this record — the join key for E-utilities (eSummary/eFetch db=mesh)."
                    },
                    "scopeNote": {
                      "type": "string",
                      "description": "Scope note"
                    },
                    "entryTerms": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Synonyms / entry terms"
                    },
                    "recordType": {
                      "type": "string",
                      "description": "MeSH record type as NCBI reports it: \"descriptor\", \"supplemental-record\" (a supplementary concept), \"pharmacological-action\", or \"qualifier\". A drug-class heading returns two records under one name and meshId, its descriptor and its pharmacological-action record. Omitted when the summary names no type."
                    },
                    "searchTerm": {
                      "type": "string",
                      "description": "PubMed clause that searches this record, for the `pubmed_search_articles` query: `\"Name\"[mh]` for a descriptor, `[pt]` for a publication type (a descriptor in the V tree), `[nm]` for a supplementary concept, which no `[mh]` clause matches, `[pa]` for a pharmacological action, `[sh]` for a qualifier. Omitted when recordType is absent or unrecognized."
                    },
                    "subheadings": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Qualifiers this heading accepts, each combined as `\"Heading/qualifier\"[mh]`; a qualifier the heading does not accept matches nothing. Present only with includeDetails, on the exact heading match pinned to the first page of a query with no field tag. Its absence on any other record does not mean the heading takes none: look that heading up by name to get its list."
                    },
                    "treeNumbers": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Navigable MeSH tree numbers (e.g. \"D02.078.370.141.450\"). Omitted for supplementary concept records (SCRs), which map to a heading rather than occupying a tree position, and for pharmacological-action records, whose descriptor carries the tree positions."
                    },
                    "yearIntroduced": {
                      "type": "string",
                      "description": "Year the record entered MeSH, as NLM gives it, unparsed: usually a year (\"2008\", \"2008 (1966)\", \"2017(1967)\"), occasionally a history note. Omitted when NLM records none."
                    },
                    "previousIndexing": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Headings that indexed this concept before it was introduced, each with its years (e.g. \"Heart Failure, Congestive (1989-2007)\"). A date-bounded search reaching back before yearIntroduced also needs them: look each up by name, without its years, and search the `searchTerm` returned. A current heading returns its own record; a retired one, which matches nothing as `[mh]`, returns the heading that holds its records. Omitted when there are none."
                    }
                  },
                  "description": "Matching MeSH record",
                  "additionalProperties": false
                },
                "description": "Matching MeSH records"
              },
              "nextOffset": {
                "type": "number",
                "description": "Offset to request for the next page. Omitted when this is the last page, so its absence is the end-of-results signal."
              },
              "totalCount": {
                "type": "number",
                "description": "Total MeSH records matching the query upstream, before the maxResults cap"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "pubmed_lookup_citation",
          "title": "Pubmed Lookup Citation",
          "description": "Look up PubMed IDs from partial bibliographic citations. Useful when you have a reference (journal, year, volume, page, author) and need the PMID — deterministic citation matching, more reliable than free-text search for structured references. Each citation must include at least journal or a four-digit year (ECitMatch primary-keys on journal+volume+page; author-only or volume-only inputs guarantee no match); more fields = better match accuracy.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "citations"
            ],
            "properties": {
              "citations": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string",
                      "description": "Arbitrary label to track this citation in results. Auto-assigned if omitted. Echoed back unchanged and never sent to NCBI, so any character is accepted here."
                    },
                    "year": {
                      "type": "string",
                      "pattern": "^[ \\t]*\\d{4}[ \\t]*$",
                      "description": "Publication year as four digits (e.g., \"1991\")."
                    },
                    "volume": {
                      "type": "string",
                      "pattern": "^[^|\\r\\n]*$",
                      "description": "Volume number. Must contain a visible character, and cannot contain a pipe (\"|\") or a line break."
                    },
                    "journal": {
                      "type": "string",
                      "pattern": "^[^|\\r\\n]*$",
                      "description": "Journal title or ISO abbreviation (e.g., \"proc natl acad sci u s a\"). Must contain a visible character, and cannot contain a pipe (\"|\") or a line break."
                    },
                    "firstPage": {
                      "type": "string",
                      "pattern": "^[^|\\r\\n]*$",
                      "description": "First page number. Must contain a visible character, and cannot contain a pipe (\"|\") or a line break."
                    },
                    "authorName": {
                      "type": "string",
                      "pattern": "^[^|\\r\\n]*$",
                      "description": "Author name, typically \"lastname initials\" (e.g., \"mann bj\"). Must contain a visible character, and cannot contain a pipe (\"|\") or a line break."
                    }
                  },
                  "description": "Citation to match against PubMed. Must include at least journal or a four-digit year — ECitMatch primary-keys on journal+volume+page, so author-only or volume-only inputs guarantee no match."
                },
                "maxItems": 25,
                "minItems": 1,
                "description": "Citations to look up, 1–25, each matched independently. More fields = better match accuracy."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "results",
                  "totalMatched",
                  "totalSubmitted",
                  "totalWarnings"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "queue_full",
                          "ncbi_unreachable",
                          "ncbi_rate_limited",
                          "ncbi_deadline_exceeded",
                          "ncbi_timed_out",
                          "ncbi_invalid_response",
                          "ncbi_resource_not_found"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `queue_full`: The local NCBI request queue shed the call — the queue is full, or the call cannot start before its total deadline (for example behind the cooldown that follows an NCBI 429). `ncbi_unreachable`: NCBI E-utilities failed on every attempt the retry budget allowed — no connection, no answer within the per-request timeout, an HTTP 5xx other than 501 and 504, or a backend failure NCBI reported in its response — and the call stopped there: retries ran out, the next backoff would overrun the total deadline, the Retry-After NCBI named outlasts the time left or the 30-second backoff cap, or the call made one attempt without retrying because the previous call to the same E-utility had failed on every attempt. `ncbi_rate_limited`: NCBI answered HTTP 429 (too many requests) and the call stopped on it — retries ran out, the next backoff would overrun the total deadline, or the Retry-After NCBI named outlasts the time left or the 30-second backoff cap. `ncbi_deadline_exceeded`: The deadline for the NCBI call expired before NCBI answered successfully — mid-request, while queued, during a retry backoff, or before the next request could be sent. That deadline is the total NCBI request deadline, or the time the tool call had left when that was shorter; `deadlineMs` names its length. `ncbi_timed_out`: NCBI answered HTTP 504 (gateway timeout), 408 (request timeout), or 425 (too early) and the call stopped on it — retries ran out, the next backoff would overrun the total deadline, or the Retry-After NCBI named outlasts the time left or the 30-second backoff cap. `ncbi_invalid_response`: NCBI returned a body that could not be parsed (invalid XML/JSON), or a well-formed document that is not the answer the request asked for (no result element, or an ESearch result with no numeric count). `ncbi_resource_not_found`: NCBI returned a structured \"not found\" error for the requested ID(s). Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "results": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "key",
                    "matched",
                    "status"
                  ],
                  "properties": {
                    "key": {
                      "type": "string",
                      "description": "Citation tracking key"
                    },
                    "pmid": {
                      "type": "string",
                      "description": "Matched PubMed ID"
                    },
                    "detail": {
                      "type": "string",
                      "description": "Additional detail returned by ECitMatch for non-exact matches"
                    },
                    "status": {
                      "enum": [
                        "matched",
                        "not_found",
                        "ambiguous"
                      ],
                      "type": "string",
                      "description": "Lookup outcome classification for this citation"
                    },
                    "matched": {
                      "type": "boolean",
                      "description": "Whether a PMID was found"
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "code",
                          "message"
                        ],
                        "properties": {
                          "code": {
                            "enum": [
                              "author_mismatch",
                              "year_mismatch"
                            ],
                            "type": "string",
                            "description": "Machine-readable warning code"
                          },
                          "message": {
                            "type": "string",
                            "description": "Human-readable description of the warning"
                          }
                        },
                        "description": "Non-fatal warning about the match",
                        "additionalProperties": false
                      },
                      "description": "Non-fatal warnings about this match. A PMID may be returned even when the queried author or year disagrees with the matched article — verify before treating the PMID as authoritative."
                    },
                    "candidatePmids": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "description": "PMID"
                      },
                      "description": "Candidate PMIDs returned when the citation matched ambiguously. Add more bibliographic fields and retry to disambiguate, or fetch each candidate via pubmed_fetch_articles to pick the intended one."
                    },
                    "matchedFirstAuthor": {
                      "type": "string",
                      "description": "First author of the matched article (e.g., \"Husain M\"). Useful eyeball signal for verifying a match."
                    }
                  },
                  "description": "Per-citation match result",
                  "additionalProperties": false
                },
                "description": "Match results, one per input citation"
              },
              "totalMatched": {
                "type": "number",
                "description": "Number of citations with PMID matches"
              },
              "totalWarnings": {
                "type": "number",
                "description": "Number of matched citations that carry at least one warning"
              },
              "totalSubmitted": {
                "type": "number",
                "description": "Number of citations submitted"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "pubmed_convert_ids",
          "title": "Pubmed Convert Ids",
          "description": "Convert between article identifiers (DOI, PMID, PMCID). Accepts up to 50 IDs of a single type per request. Only resolves articles indexed in PubMed Central — for articles not in PMC, use pubmed_search_articles instead.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "ids",
              "idType"
            ],
            "properties": {
              "ids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1
                },
                "maxItems": 50,
                "minItems": 1,
                "description": "Article identifiers to convert — one identifier per element, all of the same type. Each element is checked against `idType` before the request: `doi` starts with \"10.\" and carries a \"/\" (\"10.1093/nar/gks1195\"), or is a DOI link (\"https://doi.org/10.1093/nar/gks1195\", \"http://dx.doi.org/…\") or carries the \"doi:\" scheme (\"doi:10.1093/nar/gks1195\", a space after the colon allowed), each read as the bare DOI; `pmid` is digits (\"23193287\"); `pmcid` is digits with an optional \"PMC\" prefix (\"PMC3531190\" or \"3531190\"). No element may otherwise contain a comma or whitespace — a packed value like \"23193287,37952131\" is rejected, so split it across elements."
              },
              "idType": {
                "enum": [
                  "pmcid",
                  "pmid",
                  "doi"
                ],
                "type": "string",
                "description": "The type of IDs being submitted. Required so the API can unambiguously resolve them."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "records",
                  "totalConverted",
                  "totalSubmitted"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "queue_full",
                          "ncbi_unreachable",
                          "ncbi_rate_limited",
                          "ncbi_deadline_exceeded",
                          "ncbi_timed_out",
                          "ncbi_invalid_response",
                          "ncbi_resource_not_found",
                          "malformed_id"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `queue_full`: The local NCBI request queue shed the call — the queue is full, or the call cannot start before its total deadline (for example behind the cooldown that follows an NCBI 429). `ncbi_unreachable`: NCBI E-utilities failed on every attempt the retry budget allowed — no connection, no answer within the per-request timeout, an HTTP 5xx other than 501 and 504, or a backend failure NCBI reported in its response — and the call stopped there: retries ran out, the next backoff would overrun the total deadline, the Retry-After NCBI named outlasts the time left or the 30-second backoff cap, or the call made one attempt without retrying because the previous call to the same E-utility had failed on every attempt. `ncbi_rate_limited`: NCBI answered HTTP 429 (too many requests) and the call stopped on it — retries ran out, the next backoff would overrun the total deadline, or the Retry-After NCBI named outlasts the time left or the 30-second backoff cap. `ncbi_deadline_exceeded`: The deadline for the NCBI call expired before NCBI answered successfully — mid-request, while queued, during a retry backoff, or before the next request could be sent. That deadline is the total NCBI request deadline, or the time the tool call had left when that was shorter; `deadlineMs` names its length. `ncbi_timed_out`: NCBI answered HTTP 504 (gateway timeout), 408 (request timeout), or 425 (too early) and the call stopped on it — retries ran out, the next backoff would overrun the total deadline, or the Retry-After NCBI named outlasts the time left or the 30-second backoff cap. `ncbi_invalid_response`: NCBI returned a body that could not be parsed (invalid XML/JSON), or a well-formed document that is not the answer the request asked for (no result element, or an ESearch result with no numeric count). `ncbi_resource_not_found`: NCBI returned a structured \"not found\" error for the requested ID(s). `malformed_id`: An `ids` element does not match the declared `idType` — most often several identifiers packed into one element, which the comma-delimited upstream batch would split into extra records. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "records": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "requestedId"
                  ],
                  "properties": {
                    "doi": {
                      "type": "string",
                      "description": "Digital Object Identifier, cased as the PMC ID Converter reports it; absent if no DOI is on record. DOIs are case-insensitive by spec and no case normalization is applied here, so casing can differ from a Europe PMC-sourced `doi` — compare the two case-insensitively."
                    },
                    "pmid": {
                      "type": "string",
                      "description": "PubMed ID; absent if no mapping was found"
                    },
                    "pmcid": {
                      "type": "string",
                      "description": "PubMed Central ID; absent if the article has no PMC copy"
                    },
                    "errmsg": {
                      "type": "string",
                      "description": "Error message if conversion failed. Presence of `errmsg` is the failure signal; absence means the conversion succeeded."
                    },
                    "requestedId": {
                      "type": "string",
                      "description": "The ID that was submitted"
                    }
                  },
                  "description": "Per-ID conversion record",
                  "additionalProperties": false
                },
                "description": "Conversion results, one per input ID"
              },
              "totalConverted": {
                "type": "number",
                "description": "Number of IDs successfully converted"
              },
              "totalSubmitted": {
                "type": "number",
                "description": "Number of IDs submitted"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "pubmed_fetch_citation_metrics",
          "title": "Pubmed Fetch Citation Metrics",
          "description": "Fetch NIH iCite citation metrics for PubMed articles: the Relative Citation Ratio (RCR), NIH percentile, citation count, citations per year, expected and field citation rates, the Approximate Potential to Translate (APT), the human, animal, and molecular/cellular shares of each article's MeSH terms, and how many clinical articles cite it (set `includeClinicalCitations` for their PMIDs). RCR is a field- and year-normalized citation rate benchmarked to NIH-funded papers, whose median RCR is 1.0; iCite computes none for the most recent papers and marks recent ones provisional. iCite does not flag retractions — a retracted article keeps its metrics — so check pubmed_fetch_articles for retraction notices before relying on a record. Up to 1000 PMIDs per call; the first 200 distinct PMIDs are fetched and the rest returned in `overLimit`. PMIDs iCite has no record for are listed in `unavailablePmids`.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "pmids"
            ],
            "properties": {
              "pmids": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^\\d+$"
                },
                "maxItems": 1000,
                "minItems": 1,
                "description": "PubMed IDs to look up (e.g. [\"23456789\"]). The first 200 distinct PMIDs are fetched; the rest are returned in `overLimit`. Leading zeros are ignored, so \"00023456789\" and \"23456789\" name one article."
              },
              "includeClinicalCitations": {
                "type": "boolean",
                "default": false,
                "description": "Include `clinicalCitationPmids`: the PMIDs of the clinical articles citing each record. Off by default because the list is uncapped: a widely used clinical instrument is cited by thousands, at about 11 characters of JSON each — PMID 1202204 (the Mini-Mental State Examination) lists 9,969, adding about 109,000 characters to its record."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "records"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "icite_unreachable",
                          "icite_deadline_exceeded",
                          "icite_timed_out",
                          "icite_invalid_response",
                          "icite_unrequested_record"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `icite_unreachable`: NIH iCite failed on every attempt the retry budget allowed — a network failure or an HTTP 5xx — and the call stopped there: retries ran out, or the next backoff would overrun the deadline. `icite_deadline_exceeded`: The deadline for the NIH iCite call expired before iCite answered successfully — mid-request, during a retry backoff, or before the request was sent when the tool call had no time left. `deadlineMs` is the length of the deadline that expired: the tool call's own, or iCite's total deadline when that left less time. `icite_timed_out`: NIH iCite failed on every attempt the retry budget allowed, the last one by timing out — no answer within the per-request timeout, or an HTTP 504, 408, or 425 — and the call stopped there: retries ran out, or the next backoff would overrun the deadline. `icite_invalid_response`: NIH iCite returned a body that is not its JSON record list on the last attempt the retry budget allowed. `icite_unrequested_record`: NIH iCite answered with a record for a PMID the call did not request, or one whose PMID is not a PMID — the answer it gives this PMID list every time. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "notice": {
                "type": "string",
                "description": "Names the PMIDs iCite had no record for, records not yet scored, records with no RCR or a provisional one, and PMIDs past the per-call limit with how to fetch them. Absent when every record came back final and complete."
              },
              "records": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "pmid"
                  ],
                  "properties": {
                    "apt": {
                      "type": "number",
                      "description": "Approximate Potential to Translate: iCite's estimate of the likelihood that a clinical article will cite this one, reported as 0.05, 0.25, 0.75, or 0.95."
                    },
                    "doi": {
                      "type": "string",
                      "description": "DOI when iCite carries one."
                    },
                    "pmid": {
                      "type": "string",
                      "description": "PubMed ID, without leading zeros."
                    },
                    "year": {
                      "type": "number",
                      "description": "iCite's publication year: the year of the published version, which can differ from PubMed's publication date."
                    },
                    "human": {
                      "type": "number",
                      "description": "Share (0–1) of the article's MeSH terms in the Human category."
                    },
                    "title": {
                      "type": "string",
                      "description": "Article title as display-ready plain text — markup stripped and HTML entities decoded. Absent when iCite carries none."
                    },
                    "animal": {
                      "type": "number",
                      "description": "Share (0–1) of the article's MeSH terms in the Animal category."
                    },
                    "journal": {
                      "type": "string",
                      "description": "Journal abbreviation as iCite reports it."
                    },
                    "isClinical": {
                      "type": "boolean",
                      "description": "Whether iCite classes the article as clinical research."
                    },
                    "citationCount": {
                      "type": "number",
                      "description": "Citations iCite counts for the article. Absent when the record is not yet scored."
                    },
                    "nihPercentile": {
                      "type": "number",
                      "description": "Percentile (0–100) of the article's RCR among NIH-funded papers. Absent when iCite reports none, as for papers before 1980 and for most-recent-year provisional RCRs."
                    },
                    "rcrProvisional": {
                      "type": "boolean",
                      "description": "True when iCite marks the RCR provisional: a recent paper whose RCR can change as citations accrue. Present only beside `relativeCitationRatio`."
                    },
                    "citationsPerYear": {
                      "type": "number",
                      "description": "Citations per year since publication, the numerator of the RCR."
                    },
                    "fieldCitationRate": {
                      "type": "number",
                      "description": "Citation rate of the article's co-citation network — the field benchmark the expected rate is derived from."
                    },
                    "isResearchArticle": {
                      "type": "boolean",
                      "description": "Whether iCite classes the record as a primary research article; reviews, editorials, letters, and errata are not."
                    },
                    "molecularCellular": {
                      "type": "number",
                      "description": "Share (0–1) of the article's MeSH terms in the Molecular/Cellular category."
                    },
                    "clinicalCitationCount": {
                      "type": "number",
                      "description": "Clinical articles citing this one: 0 when `citedByClinicalArticle` is false, absent when that flag is."
                    },
                    "clinicalCitationPmids": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "PMIDs of the clinical articles citing this one, in iCite's order, uncapped; pubmed_fetch_articles returns their records. Present only when `includeClinicalCitations` is set and iCite lists any."
                    },
                    "relativeCitationRatio": {
                      "type": "number",
                      "description": "Relative Citation Ratio (RCR): the article's citations per year divided by the citations per year expected for its field, benchmarked so the median NIH-funded paper of the same year scores 1.0. Absent when iCite computes none — papers too recent to benchmark, and some older records."
                    },
                    "citedByClinicalArticle": {
                      "type": "boolean",
                      "description": "Whether at least one clinical article cites this one."
                    },
                    "expectedCitationsPerYear": {
                      "type": "number",
                      "description": "Citations per year expected for an article in this one's field and year, the denominator of the RCR."
                    }
                  },
                  "description": "NIH iCite citation metrics for one PubMed article",
                  "additionalProperties": false
                },
                "description": "One record per fetched PMID iCite knows, in request order."
              },
              "overLimit": {
                "type": "object",
                "required": [
                  "limit",
                  "pmids"
                ],
                "properties": {
                  "limit": {
                    "type": "number",
                    "description": "Distinct PMIDs one call fetches. The first this many, in request order, were fetched; the PMIDs below were not."
                  },
                  "pmids": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "PMIDs past the per-call limit, none of them fetched, in request order — each listed once, under the first spelling sent. Re-call `pubmed_fetch_citation_metrics` with these as `pmids`, at most `limit` per call."
                  }
                },
                "description": "PMIDs the call named past the per-call fetch limit. Present only when the call named more distinct PMIDs than one call fetches.",
                "additionalProperties": false
              },
              "unavailablePmids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Requested PMIDs within the per-call limit that NIH iCite has no record for, in request order, under the spelling sent. iCite omits a PMID it has no record for without an error, so the absence says nothing about whether PubMed has the article; pubmed_fetch_articles confirms that."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "pubmed_europepmc_search",
          "title": "Pubmed Europepmc Search",
          "description": "Search Europe PMC, a broad open-access biomedical corpus. Surfaces preprints (`source: PPR`), patents (`source: PAT`), Agricola (`source: AGR`), plus everything in PubMed (`MED`) and PMC. Use when additional coverage is needed — preprints and EPMC-only OA records are the typical recovery. Paginate via `cursorMark`. Defaults to `MED`, `PMC`, and `PPR`; pass `sources` to include `PAT` / `AGR`. Abstracts arrive as a bounded `abstractSnippet` with `abstractTruncated` marking the cut ones — pass a hit to `pubmed_europepmc_fetch` as `records: [{ source, epmcId }]` for the complete abstract.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "query"
            ],
            "properties": {
              "sort": {
                "type": "string",
                "description": "Optional EPMC sort: `<field> asc|desc`, or several comma-separated keys applied in order (`PUB_YEAR desc, CITED desc`). Documented sortable fields: `P_PDATE_D` (publication date), `CITED` (citation count), `AUTH_FIRST` (first author surname), `PUB_YEAR` (publication year), `FIRST_IDATE_D` (date first indexed in Europe PMC). Examples: `P_PDATE_D desc` (newest first), `CITED desc` (most cited). Omit for relevance ranking; `relevance` or `relevance desc` is sent as no sort. Field and direction match case-insensitively. Each key must be one field plus `asc` or `desc`: a key without a direction, an empty key, or an extra word fails with `europepmc_invalid_input` before the request. A field outside the documented set may be honored, silently ignored, or refused — a sort Europe PMC refuses fails with `europepmc_invalid_input` naming it, and an empty Europe PMC response to a sort with an undocumented field fails the same way, even when Europe PMC honors the field. Note: `P_PDATE_D` is ignored for preprint-only (`sources: [\"PPR\"]`) result sets — preprints have no populated publication date, so use `PUB_YEAR desc` to order preprints by date."
              },
              "query": {
                "type": "string",
                "minLength": 1,
                "description": "Europe PMC search query. Supports field tokens like `AUTH:\"<name>\"`, `JOURNAL:\"<title>\"`, `TITLE:\"<words>\"`, `PUB_YEAR:[2020 TO 2024]`, `DOI:\"...\"`, `EXT_ID:<pmid> AND SRC:MED`, `PMCID:PMC<digits>`. Identifier tokens may be quoted or unquoted — this tool wraps every query with its `sources` filter, and Europe PMC honors a quoted identifier inside that wrapper. A PubMed-indexed article resolves under `SRC:MED`, not `SRC:PMC`, whichever identifier is used. Free text is matched broadly across abstract/title/keywords. A query with no search term — blank once HTML entities are decoded and markup, parentheses, and invisible characters are disregarded, such as `()` or `<b></b>` — is rejected; any other query is sent as written."
              },
              "sources": {
                "type": "array",
                "items": {
                  "enum": [
                    "MED",
                    "PMC",
                    "PPR",
                    "PAT",
                    "AGR"
                  ],
                  "type": "string"
                },
                "minItems": 1,
                "description": "Filter to specific EPMC sources. Defaults to MED, PMC, PPR when omitted. Pass an explicit array including PAT or AGR to broaden coverage. Allowed values: MED, PMC, PPR, PAT, AGR."
              },
              "pageSize": {
                "type": "integer",
                "default": 25,
                "maximum": 1000,
                "minimum": 1,
                "description": "Results per page, up to 100 per call (this server's cap; Europe PMC itself serves up to 1,000). A larger value is served at 100, with a notice; continue from `nextCursorMark`."
              },
              "cursorMark": {
                "type": "string",
                "default": "*",
                "description": "Pagination cursor. Use `*` (default) for the first page; pass the previous response's `nextCursorMark` verbatim for subsequent pages. Under relevance ranking (no `sort`), a record can reappear on the next page, so de-duplicate hits by `epmcId` across pages. A whitespace-only cursor, invisible characters included, is rejected before the request, and a cursor Europe PMC cannot read fails with `europepmc_invalid_input` once a retry of it fails again while the first page of the same query is served."
              },
              "resultType": {
                "enum": [
                  "core",
                  "lite"
                ],
                "type": "string",
                "default": "core",
                "description": "`core` returns abstract, IDs, dates, license; `lite` is a smaller payload with the same IDs, title, authors, journal, and dates, but no abstract or license."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "hits",
                  "cursorMark",
                  "searchUrl",
                  "totalCount",
                  "query",
                  "appliedSources"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "hits": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "source",
                    "epmcId",
                    "epmcUrl"
                  ],
                  "properties": {
                    "doi": {
                      "type": "string",
                      "description": "DOI when present, cased as Europe PMC reports it. DOIs are case-insensitive by spec and no case normalization is applied here, so the same DOI can arrive in a different case from `pubmed_fetch_articles` (Europe PMC `10.1056/nejmoa2212948`, NCBI `10.1056/NEJMoa2212948`) — a byte-for-byte comparison across the two reports a false mismatch."
                    },
                    "pmid": {
                      "type": "string",
                      "description": "PMID when present in PubMed"
                    },
                    "pmcId": {
                      "type": "string",
                      "description": "PMC ID when present in PMC"
                    },
                    "title": {
                      "type": "string",
                      "description": "Article title as display-ready plain text — JATS/HTML markup stripped and HTML entities decoded."
                    },
                    "epmcId": {
                      "type": "string",
                      "description": "Europe PMC's internal record id. Pass it with this hit's `source` to `pubmed_europepmc_fetch` as `records: [{ source, epmcId }]` for the complete record. `pubmed_fetch_fulltext` takes this hit's `pmcId`, `pmid`, or `doi`, not this id."
                    },
                    "source": {
                      "enum": [
                        "MED",
                        "PMC",
                        "PPR",
                        "PAT",
                        "AGR"
                      ],
                      "type": "string",
                      "description": "Europe PMC source — `MED` (PubMed), `PMC` (PubMed Central), `PPR` (preprint), `PAT` (patent), `AGR` (Agricola)"
                    },
                    "authors": {
                      "type": "string",
                      "description": "Formatted author string as display-ready plain text — JATS/HTML markup stripped and HTML entities decoded."
                    },
                    "epmcUrl": {
                      "type": "string",
                      "description": "Europe PMC article URL"
                    },
                    "journal": {
                      "type": "string",
                      "description": "Journal name as Europe PMC reports it — its MEDLINE abbreviation where it records one (e.g. `Otolaryngol Pol`), else the full journal title — the same for `resultType` `core` and `lite`. Display-ready plain text — JATS/HTML markup stripped and HTML entities decoded. Absent when Europe PMC carries no journal, as for preprints."
                    },
                    "license": {
                      "type": "string",
                      "description": "License Europe PMC records for this record, verbatim (e.g. `cc by`, `cc by-nc-nd`, `cc0`). Relayed as Europe PMC states it, never interpreted. Absent when Europe PMC supplies none, and on every `resultType: \"lite\"` result."
                    },
                    "pubYear": {
                      "type": "string",
                      "description": "Publication year"
                    },
                    "citedByCount": {
                      "type": "number",
                      "description": "Citation count reported by Europe PMC"
                    },
                    "isOpenAccess": {
                      "type": "boolean",
                      "description": "Whether EPMC reports the record as open access"
                    },
                    "hasFullTextXml": {
                      "type": "boolean",
                      "description": "Whether Europe PMC publishes a fullTextXML for this record: true when Europe PMC marks it open access and lists a full-text id for it, open-access preprints (`PPR`) included; false otherwise. Absent when Europe PMC reports no open-access status."
                    },
                    "abstractSnippet": {
                      "type": "string",
                      "description": "First 400 characters of the abstract as display-ready plain text — JATS/HTML markup stripped and HTML entities decoded — when `resultType: \"core\"` is requested, with a trailing … appended when the abstract was cut. Check `abstractTruncated` before treating it as the whole abstract."
                    },
                    "abstractTruncated": {
                      "type": "boolean",
                      "description": "Whether `abstractSnippet` was cut short of the full abstract. Retrieve the complete text by passing this record to `pubmed_europepmc_fetch` as `records: [{ source, epmcId }]`. Present whenever `abstractSnippet` is; omitted when Europe PMC carries no abstract."
                    },
                    "firstPublicationDate": {
                      "type": "string",
                      "description": "First publication date (ISO YYYY-MM-DD)"
                    }
                  },
                  "description": "Single Europe PMC record returned by the search",
                  "additionalProperties": false
                },
                "description": "Matching Europe PMC records, in the order EPMC returned them"
              },
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "europepmc_unreachable",
                          "europepmc_deadline_exceeded",
                          "europepmc_timed_out",
                          "europepmc_rate_limited",
                          "europepmc_invalid_response",
                          "europepmc_invalid_input",
                          "blank_query",
                          "blank_cursor",
                          "europepmc_disabled"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `europepmc_unreachable`: Europe PMC failed on every retry attempt — unreachable, an HTTP 404 or 5xx other than a 504 timeout from its search endpoint, or an empty response with no results; or it answered an HTTP 5xx other than a 504 whose Retry-After outlasts the time left or the 30-second backoff cap, and the call stopped on it without retrying. `europepmc_deadline_exceeded`: The deadline the Europe PMC call ran under expired before Europe PMC answered successfully — mid-request, while queued, or during a retry backoff — or had already run out when the call started, so no request was sent. That deadline is Europe PMC's own total request deadline, or the tool call's deadline when less of it remained; `deadlineMs` is the full length of whichever applied. `europepmc_timed_out`: Europe PMC failed on every attempt the retry budget allowed, the last one by timing out — no answer within the per-request timeout, or an HTTP 504, 408, or 425 — and the call stopped there: retries ran out, or the next backoff would overrun the total deadline; or it answered an HTTP 504 whose Retry-After outlasts the time left or the 30-second backoff cap, and the call stopped on it without retrying. `europepmc_rate_limited`: Europe PMC answered HTTP 429 (too many requests) and the call stopped on it — retries ran out, the next backoff would overrun the total deadline, or the Retry-After Europe PMC named outlasts the time left or the 30-second backoff cap. `europepmc_invalid_response`: Europe PMC returned a body that could not be parsed (invalid JSON or XML). `europepmc_invalid_input`: Europe PMC rejected the request input — an error message in place of results; a sort it cannot use (one whose keys are not each a field plus asc/desc, rejected before any request; an empty response to a sort with an undocumented field; or a second HTTP 503 to a search whose sort has an undocumented field when the same query without the sort is served); or a pagination cursor it cannot read (an empty response on the last attempt the retry budget allows, or a second HTTP 503 when the first page of the same query is served). `blank_query`: The query contains no search term: nothing is left once whitespace and invisible characters such as a zero-width space are disregarded. pubmed_search_articles and pubmed_europepmc_search first decode HTML entities and also disregard markup and parentheses, so `()`, `<b></b>`, and `&nbsp;` hold no term there; pubmed_search_articles also disregards bracketed field tags such as `[pdat]`. On pubmed_search_articles an exactly-empty `query` is not blank: it means no query, and the search runs on its filters. `blank_cursor`: The `cursorMark` holds only whitespace or invisible characters such as a zero-width space. Europe PMC cannot read it and answers with the HTTP 503 it also uses for an outage. `europepmc_disabled`: Europe PMC service is disabled via EUROPEPMC_ENABLED=false. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "query": {
                "type": "string",
                "description": "Effective query string echoed by Europe PMC"
              },
              "notice": {
                "type": "string",
                "description": "Optional guidance when results are empty, when a cursor is past the last result, when Europe PMC ignores a date sort on preprint-only results, or when a `pageSize` past the per-call cap of 100 was served at 100."
              },
              "searchUrl": {
                "type": "string",
                "description": "Europe PMC's website search URL for this query"
              },
              "cursorMark": {
                "type": "string",
                "description": "Cursor used for this response (echoed from the request)"
              },
              "totalCount": {
                "type": "number",
                "description": "Total matching records across all pages"
              },
              "appliedSources": {
                "type": "array",
                "items": {
                  "enum": [
                    "MED",
                    "PMC",
                    "PPR",
                    "PAT",
                    "AGR"
                  ],
                  "type": "string"
                },
                "description": "Sources the query was filtered against (defaults applied)"
              },
              "nextCursorMark": {
                "type": "string",
                "description": "Cursor to pass back as `cursorMark` for the next page. Absent on a page shorter than `pageSize`, which ends the result set. A full page that happens to end it still carries one, and the page it leads to comes back empty."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true
          }
        },
        {
          "name": "pubmed_europepmc_fetch",
          "title": "Pubmed Europepmc Fetch",
          "description": "Fetch complete Europe PMC records — including the full, untruncated abstract — addressed as `records: [{ source, epmcId }]`, an array even for one record. Pairs with `pubmed_europepmc_search`, which returns bounded `abstractSnippet` values and flags cut ones with `abstractTruncated: true`; copy each hit's `source` and `epmcId` into `records` here to read the whole abstract. This is the retrieval path for preprint (`PPR`), patent (`PAT`), and Agricola (`AGR`) records, which frequently carry no PMID and no DOI, so `pubmed_fetch_articles` and `pubmed_fetch_fulltext` cannot address them. Up to 25 records per call. Set `maxResponseCharacters` to bound the whole response: records past the ceiling are deferred whole and listed in `deferred.records` for a follow-up call.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "records"
            ],
            "properties": {
              "records": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "source",
                    "epmcId"
                  ],
                  "properties": {
                    "epmcId": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                      "maxLength": 64,
                      "description": "Europe PMC's own record id within that source. Copy it from the search hit's `epmcId` — for `MED` records this is the PMID; for the other sources it is an EPMC-native accession."
                    },
                    "source": {
                      "enum": [
                        "MED",
                        "PMC",
                        "PPR",
                        "PAT",
                        "AGR"
                      ],
                      "type": "string",
                      "description": "Europe PMC source corpus — `MED` (PubMed), `PMC` (PubMed Central), `PPR` (preprint), `PAT` (patent), `AGR` (Agricola). Copy it from the search hit's `source`. `PMC` paired with a PMCID resolves whether or not the article is also indexed in PubMed, and a PubMed-indexed one comes back as its canonical `MED` record carrying that PMCID in `pmcId`."
                    }
                  },
                  "description": "One record address: the Europe PMC source corpus plus its id within that corpus"
                },
                "maxItems": 25,
                "minItems": 1,
                "description": "Records to retrieve, each addressed by the `source` and `epmcId` of a `pubmed_europepmc_search` hit. The whole batch resolves in one Europe PMC request."
              },
              "maxResponseCharacters": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 1,
                "description": "Opt-in ceiling for the whole response, in characters. Each record is measured as the JSON record it is returned as — title, authors, journal, abstract, identifiers, every field it carries. Records are kept in the order Europe PMC returned them until the next one would cross the ceiling; that record and the rest are deferred whole (never partially populated) and listed in `deferred.records`. Response envelope fields — `notFound`, `deferred` itself — are not counted. Omit to return every resolved record."
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "anyOf": [
              {
                "not": {
                  "required": [
                    "error"
                  ]
                },
                "required": [
                  "records"
                ]
              },
              {
                "required": [
                  "error"
                ]
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991,
                    "description": "JSON-RPC error code for this failure."
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "reason": {
                        "type": "string",
                        "examples": [
                          "europepmc_unreachable",
                          "europepmc_deadline_exceeded",
                          "europepmc_timed_out",
                          "europepmc_rate_limited",
                          "europepmc_invalid_response",
                          "europepmc_invalid_input",
                          "europepmc_disabled"
                        ],
                        "description": "Machine-readable failure mode. Declared by this tool: `europepmc_unreachable`: Europe PMC failed on every retry attempt — unreachable, an HTTP 404 or 5xx other than a 504 timeout from its search endpoint, or an empty response with no results; or it answered an HTTP 5xx other than a 504 whose Retry-After outlasts the time left or the 30-second backoff cap, and the call stopped on it without retrying. `europepmc_deadline_exceeded`: The deadline the Europe PMC call ran under expired before Europe PMC answered successfully — mid-request, while queued, or during a retry backoff — or had already run out when the call started, so no request was sent. That deadline is Europe PMC's own total request deadline, or the tool call's deadline when less of it remained; `deadlineMs` is the full length of whichever applied. `europepmc_timed_out`: Europe PMC failed on every attempt the retry budget allowed, the last one by timing out — no answer within the per-request timeout, or an HTTP 504, 408, or 425 — and the call stopped there: retries ran out, or the next backoff would overrun the total deadline; or it answered an HTTP 504 whose Retry-After outlasts the time left or the 30-second backoff cap, and the call stopped on it without retrying. `europepmc_rate_limited`: Europe PMC answered HTTP 429 (too many requests) and the call stopped on it — retries ran out, the next backoff would overrun the total deadline, or the Retry-After Europe PMC named outlasts the time left or the 30-second backoff cap. `europepmc_invalid_response`: Europe PMC returned a body that could not be parsed (invalid JSON or XML). `europepmc_invalid_input`: Europe PMC rejected the request input — an error message in place of results; a sort it cannot use (one whose keys are not each a field plus asc/desc, rejected before any request; an empty response to a sort with an undocumented field; or a second HTTP 503 to a search whose sort has an undocumented field when the same query without the sort is served); or a pagination cursor it cannot read (an empty response on the last attempt the retry budget allows, or a second HTTP 503 when the first page of the same query is served). `europepmc_disabled`: Europe PMC service is disabled via EUROPEPMC_ENABLED=false. Other values are possible when a failure originates below the handler."
                      },
                      "recovery": {
                        "type": "object",
                        "required": [
                          "hint"
                        ],
                        "properties": {
                          "hint": {
                            "type": "string"
                          }
                        },
                        "description": "Actionable next step for the caller.",
                        "additionalProperties": {}
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether retrying may succeed."
                      }
                    },
                    "additionalProperties": {}
                  },
                  "message": {
                    "type": "string",
                    "description": "Human-readable description of what went wrong."
                  }
                },
                "description": "Present when the call failed. Absent on success.",
                "additionalProperties": {}
              },
              "notice": {
                "type": "string",
                "description": "Guidance when one or more requested records could not be resolved, or when `maxResponseCharacters` deferred records — naming how to retrieve them. Absent when every requested record came back."
              },
              "records": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "source",
                    "epmcId",
                    "epmcUrl"
                  ],
                  "properties": {
                    "doi": {
                      "type": "string",
                      "description": "DOI when present, cased as Europe PMC reports it. DOIs are case-insensitive by spec and no case normalization is applied here, so the same DOI can arrive in a different case from `pubmed_fetch_articles` (Europe PMC `10.1056/nejmoa2212948`, NCBI `10.1056/NEJMoa2212948`) — a byte-for-byte comparison across the two reports a false mismatch."
                    },
                    "pmid": {
                      "type": "string",
                      "description": "PMID when present in PubMed"
                    },
                    "pmcId": {
                      "type": "string",
                      "description": "PMC ID when present in PMC"
                    },
                    "title": {
                      "type": "string",
                      "description": "Record title as display-ready plain text — JATS/HTML markup stripped and HTML entities decoded."
                    },
                    "epmcId": {
                      "type": "string",
                      "description": "Europe PMC's internal record id"
                    },
                    "source": {
                      "enum": [
                        "MED",
                        "PMC",
                        "PPR",
                        "PAT",
                        "AGR"
                      ],
                      "type": "string",
                      "description": "Europe PMC source the record was resolved from"
                    },
                    "authors": {
                      "type": "string",
                      "description": "Formatted author string as display-ready plain text — JATS/HTML markup stripped and HTML entities decoded."
                    },
                    "epmcUrl": {
                      "type": "string",
                      "description": "Europe PMC article URL"
                    },
                    "journal": {
                      "type": "string",
                      "description": "Journal name as Europe PMC reports it — its MEDLINE abbreviation where it records one (e.g. `Otolaryngol Pol`), else the full journal title — the same name `pubmed_europepmc_search` returns for the record. Display-ready plain text — JATS/HTML markup stripped and HTML entities decoded. Absent when Europe PMC carries no journal, as for preprints."
                    },
                    "license": {
                      "type": "string",
                      "description": "License Europe PMC records for this record, verbatim (e.g. `cc by`, `cc by-nc-nd`, `cc0`). Relayed as Europe PMC states it, never interpreted. Absent when Europe PMC supplies none."
                    },
                    "pubYear": {
                      "type": "string",
                      "description": "Publication year"
                    },
                    "abstract": {
                      "type": "string",
                      "description": "Complete abstract as display-ready plain text — JATS/HTML markup stripped and HTML entities decoded, never truncated. Omitted when Europe PMC carries no abstract for the record."
                    },
                    "citedByCount": {
                      "type": "number",
                      "description": "Citation count reported by Europe PMC"
                    },
                    "isOpenAccess": {
                      "type": "boolean",
                      "description": "Whether Europe PMC reports the record as open access"
                    },
                    "hasFullTextXml": {
                      "type": "boolean",
                      "description": "Whether Europe PMC publishes a fullTextXML for this record: true when Europe PMC marks it open access and lists a full-text id for it, open-access preprints (`PPR`) included; false otherwise. Absent when Europe PMC reports no open-access status."
                    },
                    "firstPublicationDate": {
                      "type": "string",
                      "description": "First publication date (ISO YYYY-MM-DD)"
                    }
                  },
                  "description": "Complete Europe PMC record",
                  "additionalProperties": false
                },
                "description": "Resolved records, in the order Europe PMC returned them. Under a `maxResponseCharacters` budget, only the leading records that fit; `deferred.records` lists the rest."
              },
              "deferred": {
                "type": "object",
                "required": [
                  "maxResponseCharacters",
                  "returnedCharacters",
                  "deferredCount",
                  "records",
                  "nextDeferredCharacters"
                ],
                "properties": {
                  "records": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "source",
                        "epmcId"
                      ],
                      "properties": {
                        "epmcId": {
                          "type": "string",
                          "description": "Europe PMC's internal record id"
                        },
                        "source": {
                          "enum": [
                            "MED",
                            "PMC",
                            "PPR",
                            "PAT",
                            "AGR"
                          ],
                          "type": "string",
                          "description": "Europe PMC source the record was resolved from"
                        }
                      },
                      "description": "One deferred record, addressed by its own `source` + `epmcId`",
                      "additionalProperties": false
                    },
                    "description": "The deferred records, in response order, each as the resolved record's own `source` + `epmcId` — a `PMC` request answered by its `MED` record is listed as that `MED` pair. Pass them back as `records` to retrieve them. Never contains a pair from `notFound`."
                  },
                  "deferredCount": {
                    "type": "number",
                    "description": "Records that resolved but were withheld to stay under the ceiling"
                  },
                  "returnedCharacters": {
                    "type": "number",
                    "description": "Serialized characters the returned records account for"
                  },
                  "maxResponseCharacters": {
                    "type": "number",
                    "description": "The `maxResponseCharacters` ceiling this response was budgeted against"
                  },
                  "nextDeferredCharacters": {
                    "type": "number",
                    "description": "Serialized size of the next deferred record — the first entry in `records`, where the response stopped — and the continuation ceiling: re-calling with the deferred pairs needs `maxResponseCharacters` ≥ this to return anything, and a smaller record further down `records` cannot be reached until this one fits. Repeating this same call needs `maxResponseCharacters` ≥ `returnedCharacters` + this to return this record as well."
                  }
                },
                "description": "Continuation state for records the whole-response budget withheld. Present only when `maxResponseCharacters` deferred at least one record.",
                "additionalProperties": false
              },
              "notFound": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "source",
                    "epmcId"
                  ],
                  "properties": {
                    "epmcId": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                      "maxLength": 64,
                      "description": "Europe PMC's own record id within that source. Copy it from the search hit's `epmcId` — for `MED` records this is the PMID; for the other sources it is an EPMC-native accession."
                    },
                    "source": {
                      "enum": [
                        "MED",
                        "PMC",
                        "PPR",
                        "PAT",
                        "AGR"
                      ],
                      "type": "string",
                      "description": "Europe PMC source corpus — `MED` (PubMed), `PMC` (PubMed Central), `PPR` (preprint), `PAT` (patent), `AGR` (Agricola). Copy it from the search hit's `source`. `PMC` paired with a PMCID resolves whether or not the article is also indexed in PubMed, and a PubMed-indexed one comes back as its canonical `MED` record carrying that PMCID in `pmcId`."
                    }
                  },
                  "description": "One record address: the Europe PMC source corpus plus its id within that corpus",
                  "additionalProperties": false
                },
                "description": "Requested `source` + `epmcId` pairs Europe PMC returned no record for. Reported in full regardless of where a `maxResponseCharacters` cut lands — these are misses, not deferrals."
              },
              "truncated": {
                "type": "boolean",
                "description": "True when `maxResponseCharacters` withheld at least one resolved record. Absent when the response carries every record that resolved. The continuation state is in `deferred`."
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "readOnlyHint": true,
            "openWorldHint": true
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [
        {
          "name": "database-info",
          "uri": "pubmed://database/info",
          "mimeType": "application/json",
          "description": "PubMed database metadata including field list, last update date, and record count."
        },
        {
          "name": "pubmed-guide",
          "uri": "skill://pubmed-guide/SKILL.md",
          "mimeType": "text/markdown",
          "description": "PubMed query syntax, identifier crosswalks, and gates for the pubmed_* tools over PubMed, PubMed Central, Europe PMC, and NIH iCite. Use when building a MeSH-based or systematic search, resolving a reference list or DOIs to PMIDs, judging how cited an article is, getting full text, or finding preprints and records PubMed lacks."
        }
      ],
      "prompts": [
        {
          "name": "research_plan",
          "description": "Generate a structured research plan outline for a biomedical research project.",
          "arguments": [
            {
              "name": "title",
              "required": true,
              "description": "Project title"
            },
            {
              "name": "goal",
              "required": true,
              "description": "Primary research goal"
            },
            {
              "name": "keywords",
              "required": true,
              "description": "Research keywords (comma-separated)"
            },
            {
              "name": "organism",
              "required": false,
              "description": "Target organism"
            },
            {
              "name": "includeAgentPrompts",
              "required": false,
              "description": "Include inline guidance blocks under each phase with execution-time hints (\"true\" or \"false\"; omitted = \"false\")"
            }
          ]
        }
      ]
    },
    "instructions": "Use the pubmed_* tools to search PubMed and PubMed Central, fetch article metadata and full text, format citations, and find related articles via NCBI's E-utilities. Articles are keyed by PMID (integer); PMC full text by PMCID (`PMC` prefix); most also carry a DOI. Typical flow: `pubmed_search_articles` → `pubmed_fetch_articles` → `pubmed_fetch_fulltext`. When PubMed itself comes up empty (preprints, EPMC-only OA), broaden via `pubmed_europepmc_search`, then `pubmed_europepmc_fetch` with `records: [{ source, epmcId }]` copied from a hit for its complete abstract. Prefer deterministic resolvers when inputs are structured: `pubmed_lookup_citation` for partial references, `pubmed_convert_ids` to crosswalk IDs. Refine queries with `pubmed_lookup_mesh` and `pubmed_spell_check`. For an article's citation influence, `pubmed_fetch_citation_metrics` returns its Relative Citation Ratio, NIH percentile, and citation counts (Source: NIH iCite, https://icite.od.nih.gov/). The pubmed-guide skill (skill://pubmed-guide/SKILL.md) carries the gates for MeSH and query syntax, DOI-to-PMID routes outside PMC, resolving reference lists, citation counts, and full-text availability."
  },
  "changes": {
    "total": 1,
    "latest": [
      {
        "observed_at": "2026-11-22T21:20:02.879Z",
        "from_sha": "00be480ac7a83964c26cf1c18adab6bc1ebbd098fb8ede02ea94f97f1f42505c",
        "to_sha": "6efdb50827eb3b829f191b7326c35f57b0652f58df494d5fe0560cef3562c9e2",
        "summary": {
          "tool_added": 3,
          "tool_changed": 32,
          "resource_changed": 1
        },
        "diff": {
          "truncated": true,
          "chars": 36327
        },
        "withheld": false
      }
    ]
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}