pubcrawl

v2.10.5
io.github.nickjlamb/pubcrawl Checked 6 hours ago Published 2 days ago

PubMed & Europe PMC literature search, US/UK drug labelling, and clinical trials for AI assistants.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_pubmed

Search PubMed for biomedical literature. Returns article summaries with PMIDs, titles, authors, journals, and DOIs. Retracted articles are flagged.

ParameterTypeDescription
query *stringPubMed search query
articleTypestringArticle type filter (e.g., review, clinical trial)
dateFromstringStart date (YYYY/MM/DD)
dateTostringEnd date (YYYY/MM/DD)
maxResultsnumberMaximum number of results
sortstringSort order

search_europepmc

Search Europe PMC — a broader biomedical corpus than PubMed that also indexes preprints (bioRxiv, medRxiv), patents, and agricultural/biomedical databases. Unlike search_pubmed, each result includes an abstract snippet, citation count, open-access status, and whether a preprint. Use preprintsOnly to surface work ahead of formal publication. Retracted articles are flagged.

ParameterTypeDescription
query *stringSearch query (Europe PMC query syntax supported, e.g. field tags like AUTH, TITLE, JOURNAL)
maxResultsnumberMaximum number of results
openAccessOnlybooleanRestrict to open-access articles
preprintsOnlybooleanRestrict to preprints (bioRxiv, medRxiv, etc.)
sortstringSort order: relevance, date (newest first), or cited (most cited first)

get_abstract

Get the full structured abstract and metadata for a PubMed article. Returns abstract sections (background, methods, results, conclusions), keywords, MeSH terms, and PMC ID. Flags retracted articles and lists retraction, expression-of-concern and erratum notices.

ParameterTypeDescription
pmid *stringPubMed ID
structuredbooleanReturn structured abstract sections

get_full_text

Get the full text of an open-access article from PubMed Central. Returns article sections, figure/table captions, and reference count. Flags the article if PubMed marks it as retracted. Only works for articles available in PMC.

ParameterTypeDescription
pmcidstringPubMed Central ID (e.g., PMC1234567)
pmidstringPubMed ID
sectionsarrayFilter to specific section titles

check_references

Check the reference list of an open-access paper in PubMed Central. Looks up each reference's PMID and DOI and reports which resolve to a matching record, which carry a wrong identifier, and which match nothing (not_found). Also flags cited articles that PubMed marks as retracted. not_found is a prompt to check by hand, not proof of fabrication. References without a PMID or DOI are reported as not_checked. Only works for papers available in PMC.

ParameterTypeDescription
includestringflagged: list only references that did not resolve or cite a retracted article. all: list every reference.
pmcidstringPubMed Central ID of the paper (e.g., PMC1234567)
pmidstringPubMed ID of the paper whose reference list to check

format_citation

Format a citation for a PubMed article in APA, Vancouver, Harvard, or BibTeX style. Flags the article if it has been retracted.

ParameterTypeDescription
pmid *stringPubMed ID
stylestringCitation style

get_uspi

Get FDA US Prescribing Information (USPI) for a drug from openFDA (cited to DailyMed). Returns structured labelling sections with LOINC codes, verbatim. Long sections are paged: a cut section has truncated: true, total_chars and next_offset — call again with that section and offset to read on. Check drug_name: the best openFDA match may be a different product from the one you meant.

ParameterTypeDescription
drug *stringDrug name to look up (e.g., 'metformin', 'atorvastatin')
max_charsintegerMaximum characters returned per section (default 6000). Long sections are returned a page at a time: a cut page has truncated: true, total_chars and next_offset.
offsetintegerCharacter offset to start each section from (default 0). To read the rest of a truncated section, call again with sections set to that one section and offset set to its next_offset.
sectionsarraySpecific sections to retrieve (e.g., ['indications', 'adverse reactions', 'contraindications']). Returns all sections if omitted.

get_smpc

Get UK/EU Summary of Product Characteristics (SmPC) for a drug from eMC (medicines.org.uk). Returns structured labelling sections, verbatim. Long sections are paged: a cut section has truncated: true, total_chars and next_offset — call again with that section and offset to read on. Check drug_name: the best eMC match may be a different product or formulation from the one you meant.

ParameterTypeDescription
drug *stringDrug name to look up (e.g., 'metformin', 'atorvastatin')
max_charsintegerMaximum characters returned per section (default 6000). Long sections are returned a page at a time: a cut page has truncated: true, total_chars and next_offset.
offsetintegerCharacter offset to start each section from (default 0). To read the rest of a truncated section, call again with sections set to that one section and offset set to its next_offset.
sectionsarraySpecific sections to retrieve — accepts numbers like '4.1' or names like 'indications'. Returns all sections if omitted.

compare_labels

Compare US FDA Prescribing Information vs UK/EU SmPC for a drug side-by-side. Maps equivalent sections (e.g., US Indications ↔ UK 4.1) and returns paired verbatim content. A missing side is always explained: us_label/uk_label say whether the label was retrieved, each comparison notes why a section is null, and sections longer than max_chars are flagged truncated with next_offset (read on with get_uspi / get_smpc).

ParameterTypeDescription
drug *stringDrug name to compare across US and UK labelling
max_charsintegerMaximum characters per side per section (default 4000). Longer sections are cut and flagged truncated with total_chars and next_offset; read on with get_uspi / get_smpc.
sectionsarraySpecific topics to compare (e.g., ['indications', 'adverse reactions']). Compares all mapped sections if omitted.
uk_drugstringName to use for the UK lookup when it differs from `drug` — brands often do (Farxiga/Forxiga, Prilosec/Losec). Defaults to `drug`.
us_drugstringName to use for the US lookup when it differs from `drug` (e.g. a US-only brand). Defaults to `drug`.

search_by_indication

Find drugs approved for a medical condition. Searches US FDA labelling for the condition, then checks UK (eMC) availability for each drug found.

ParameterTypeDescription
condition *stringMedical condition or indication to search for (e.g., 'type 2 diabetes', 'hypertension')
maxResultsnumberMaximum number of drug results to return

resolve_drug_name

Convert a brand drug name to its generic name (or a generic to its US brand names), with drug class and common indications. Deterministic — sourced from RxNorm/openFDA, no AI.

ParameterTypeDescription
drug *stringBrand or generic drug name to resolve (e.g., 'Lipitor' or 'atorvastatin')

search_trials

Search ClinicalTrials.gov for clinical trials. Filter by condition, intervention, status, and phase. Returns trial summaries with NCT IDs, status, sponsors, and enrollment info.

ParameterTypeDescription
conditionstringDisease or condition (e.g., 'breast cancer', 'diabetes')
interventionstringDrug or therapy (e.g., 'pembrolizumab', 'radiation')
maxResultsnumberMaximum number of results (1-100)
phasestringTrial phase filter
sortstringSort order for results
statusstringTrial recruitment status filter
termstringGeneral search term (searches all fields)

get_trial

Get detailed information about a specific clinical trial from ClinicalTrials.gov. Returns eligibility criteria, study design, arms, outcomes, locations, and associated PubMed IDs.

ParameterTypeDescription
nctId *stringClinicalTrials.gov NCT identifier (e.g., NCT03086486)