XML Protocol • Python Stdlib ElementTree

NCBI PubMed ESummary XML Deterministic Parser MCP

NCBI PubMed E-utilities ESummary remains one of the most reliable archival metadata sources in medicine, yet its XML DocSum format forces agents to waste context tokens parsing angle brackets. Our stdlib XML organ emits clean normalized JSON deterministically.

Gateway Runtime0-LLM Stdlib
Featured Organs2 Verified
Live Probe Avg8200 ms
Empty / Error Cost$0.00

Stdlib xml.etree.ElementTree Without LLM Parsing Cost

By parsing eSummaryResult and DocSum nodes in Python's standard library xml.etree.ElementTree, ncbi_pubmed_esummary_xml extracts Id, PubDate, EPubDate, Source, AuthorList, LastAuthor, Title, and Volume deterministically. Any <ERROR> XML element or missing DocSum triggers the $0 empty-result rule.

Solving NCBI's Strict 3 Requests/Second Unauthenticated Limit

Without an NCBI key, E-utilities strictly limits callers to 3 requests/second per IP. Because PubMed bibliographic summaries for published PMIDs rarely change, a 30-day (2,592,000s) cache eliminates repeated upstream XML fetches across tenants.

Live-Verified Organ Matrix & Schema Fields

Primary upstream endpoint for ncbi_pubmed_esummary_xml: https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi?db=pubmed&id={pmid}&retmode=xml. Empty-result guard: Return non-billable empty result if eSummaryResult contains no DocSum element or contains ERROR node.

Organ & MCP ToolAPI & SubdomainProtocolCache TTLLive ProbeVerified Sample Fields
ncbi_pubmed_esummary_xml
MCP: airesearch_ncbi_pubmed_esummary_xml
NCBI PubMed E-utilities ESummary XML API
biomed_clinical
xml30d (2592000s)HTTP 200 (1609 ms)root:eSummaryResult, DocSum, Id, PubDate, EPubDate
europe_pmc_articles
MCP: airesearch_europe_pmc_articles
Europe PMC Open Literature Search API
academic_papers_citations
rest_json14d (1209600s)HTTP 200 (14790 ms)version, hitCount, nextCursorMark, nextPageUrl, request

Invoke via Streamable HTTP MCP or REST

Connect to https://devour-ai.fastmesh.dev/mcp or SuperBus https://mcp.fastmesh.dev/mcp (JSON-RPC 2.0):

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "airesearch_ncbi_pubmed_esummary_xml",
    "arguments": {
      "pmid": "31452104"
    }
  }
}

Or call the deterministic REST endpoint directly:

curl -sS -X POST https://devour-ai.fastmesh.dev/v1/organs/ncbi_pubmed_esummary_xml/invoke \
  -H "Content-Type: application/json" \
  -d '{"params": {"pmid": "31452104"}}'

Technical FAQ

How are XML errors from NCBI handled?

If eSummaryResult lacks DocSum nodes or includes an ERROR tag, the parser returns an empty non-billable result with billable_micros: 0.

Related Research Organ Guides