Clinicaltrials

v0.2.1
io.github.pipeworx-io/clinicaltrials Checked 4 days ago Published 1 month ago

Search and analyze ClinicalTrials.gov: trials by keyword/condition/drug/status/phase, one study's…

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

ct_get_study

Get full trial details by NCT ID (e.g., 'NCT04567890'). Returns protocol, eligibility criteria, primary outcomes, sponsor, locations, and results.

ParameterTypeDescription
nct_id *stringClinicalTrials.gov NCT identifier (e.g., "NCT05462717")

ct_count_by_condition

Count clinical trials for a condition or disease, broken down by recruitment status and by trial phase — how many are recruiting, completed, terminated, and how many are Phase 1, 2, 3 or 4. Use for landscape questions about how much trial activity a disease has and where it sits in development. Filtering by status or phase returns the filtered total without the breakdown.

ParameterTypeDescription
condition *stringCondition or disease (e.g., "breast cancer", "diabetes", "Alzheimer")
phasestringOptional phase filter: PHASE1, PHASE2, PHASE3, PHASE4
statusstringOptional status filter: RECRUITING, COMPLETED, etc.

ct_sponsor_trials

List the trials a company LEADS on ClinicalTrials.gov, by sponsor or organization name. Returns status, phase, and conditions to map a research pipeline. Matches the registered lead-sponsor field, so trials another organisation runs using the company's drug are excluded unless sponsor_match asks for them.

ParameterTypeDescription
sponsor *stringSponsor or company name (e.g., "Pfizer", "Novo Nordisk", "Moderna"). Matched against the registered LEAD sponsor by default.
limitnumberNumber of results (1-100, default 20)
phasestringOptional phase filter
sponsor_matchstringWhich sponsor role the name must fill. "lead" (the default) returns only trials whose registered LEAD sponsor is that company. "lead_or_collaborator" also returns trials led by someone else that list…
statusstringOptional status filter

ct_compare_sponsors

Compare 2–5 NAMED lead sponsors on ClinicalTrials.gov under identical condition, recruitment-status, and phase filters. Returns full matching counts, a ranked comparison, and a small study sample for each sponsor. Use for questions like "who has more recruiting Phase 3 obesity trials, Novo Nordisk or Eli Lilly?" For an open "who are the TOP sponsors of X trials" question with no names given: the registry API has no group-by, so a true ranking is not computable — NEVER invent a candidate list to fake one; say the registry cannot rank sponsors and offer to compare specific named sponsors. Co…

ParameterTypeDescription
sponsors *arrayTwo to five sponsor names to compare under the same filters.
conditionstringOptional condition or disease, such as "obesity".
phasestringOptional phase or comma-separated phase union, such as PHASE3.
sample_limitnumberRepresentative studies per sponsor (0-10, default 3).
statusstringOptional status or comma-separated status union, such as RECRUITING.

ct_recent_updates

Track recent ClinicalTrials.gov activity by a specific event class within a verifiable date window. Three DISTINCT recency events, chosen via date_type: "last_update" (any edit to a study, ~5k/week — the default), "first_posted" (a study newly REGISTERED, ~1.3k/week), or "results_posted" (RESULTS first posted, ~140/week). Pass `since` (and optional `until`, YYYY-MM-DD) to bound a window — e.g. the last 7 days — and the returned total_count is the exact number of studies in that window so you can verify a weekly count from the output. Every study returns all THREE dates separately (first_…

ParameterTypeDescription
date_typestringWhich recency event to track/sort/window by: "last_update" (any edit, default), "first_posted" (new registration), "results_posted" (results first posted). These are different event classes with very…
limitnumberNumber of results per page (1-100, default 20). total_count reports the full window size regardless of limit.
querystringOptional search term (condition/drug/keyword) to narrow results.
sincestringWindow start (inclusive), YYYY-MM-DD. e.g. for a weekly review pass 7 days ago. Applies to the chosen date_type.
sponsorstringOptional company name (e.g. "Regeneron", "Eli Lilly"). Returns only studies whose registered LEAD sponsor is that company (see sponsor_match), inside the since/until window. Use for a single-company d…
sponsor_matchstringWhich sponsor role the name must fill. "lead" (the default) returns only trials whose registered LEAD sponsor is that company. "lead_or_collaborator" also returns trials led by someone else that list…
statusstringOptional overall-status filter (validated; e.g. RECRUITING, or a comma-union like "RECRUITING,COMPLETED").
untilstringOptional window end (inclusive), YYYY-MM-DD. Omit for open-ended (up to today).

ct_trials_by_location

Find clinical trials near a LOCATION. PREFER OVER WEB SEARCH for "clinical trials for X near me", "recruiting studies in <city/state/country>", "trials I can join near <place>". Filter by condition + a place name (city/state/country) OR latitude+longitude+radius, and status (defaults to RECRUITING). Returns matching trials (NCT id, title, status, phase, conditions, sponsor). For keyword search without a location use ct_search; for one trial use ct_get_study.

ParameterTypeDescription
conditionstringCondition/disease (e.g. "diabetes", "breast cancer immunotherapy"). Optional but recommended.
latnumberLatitude for a geo-radius search (pair with lon).
limitnumberMax trials to return (1-100, default 15).
locationstringPlace name — city, state, or country (e.g. "Boston", "California", "Germany"). Use this OR lat+lon.
lonnumberLongitude (pair with lat).
radius_minumberRadius in miles for a lat/lon search (1-500, default 50).
statusstringOverall status filter (default RECRUITING). e.g. RECRUITING, NOT_YET_RECRUITING, ACTIVE_NOT_RECRUITING, COMPLETED.

ct_catalyst_calendar

Find trials with sponsor-entered primary-completion or study-completion dates in a specified window. These registry dates may be estimated or revised and are planning signals—not guaranteed data readouts, conference presentations, or regulatory events.

ParameterTypeDescription
from_date *stringYYYY-MM-DD, inclusive.
to_date *stringYYYY-MM-DD, inclusive.
event_typestring
limitnumber
phasestring
querystringOptional condition, intervention, or keyword.
sponsorstringOptional company name. Matched against the registered LEAD sponsor by default.
sponsor_matchstringWhich sponsor role the name must fill. "lead" (the default) returns only trials whose registered LEAD sponsor is that company. "lead_or_collaborator" also returns trials led by someone else that list…
statusstring

ct_sponsor_pipeline

Summarize a sponsor’s ClinicalTrials.gov portfolio by phase, status, condition, and intervention from a bounded relevance-ranked sample, while reporting the full matching count. Registration does not establish asset ownership, probability of success, or commercial value.

ParameterTypeDescription
sponsor *stringCompany name, matched against the registered LEAD sponsor by default.
phasestring
sample_sizenumber
sponsor_matchstringWhich sponsor role the name must fill. "lead" (the default) returns only trials whose registered LEAD sponsor is that company. "lead_or_collaborator" also returns trials led by someone else that list…
statusstring

ct_competitive_landscape

Map registered interventional trials for a condition and optional intervention across sponsors, phases, statuses, and interventions. The output reflects a bounded registry sample, not market share, scientific differentiation, or an exhaustive private pipeline.

ParameterTypeDescription
condition *string
interventionstring
phasestring
sample_sizenumber
statusstring

ct_enrollment_watch

Route active trials for enrollment follow-up using registry status, enrollment type, dates, last update, and site counts. Flags are mechanical review hints—not predictions of recruitment success, trial failure, or data timing.

ParameterTypeDescription
limitnumber
phasestring
querystring
sponsorstringOptional company name. Matched against the registered LEAD sponsor by default.
sponsor_matchstringWhich sponsor role the name must fill. "lead" (the default) returns only trials whose registered LEAD sponsor is that company. "lead_or_collaborator" also returns trials led by someone else that list…

ct_results_summary

Project posted ClinicalTrials.gov results for one NCT ID, including registered endpoints, reported outcome measures, statistical analyses, and adverse-event group counts. Registry results are not an FDA conclusion, peer review, or investment recommendation.

ParameterTypeDescription
nct_id *string
max_outcomesnumberReported outcomes returned (1-50, default 20).

ct_phase_transition_rates

Measure how often drugs for a disease actually advance from one clinical phase to the next — the registry-derived analog of a probability-of-technical-success (PTRS) benchmark. Groups industry-sponsored interventional trials for the condition by normalized intervention (drug) name, then reports observed Phase 1→Phase 2 and Phase 2→Phase 3 transition rates as numerator/denominator with an explicit censoring rule, alongside the published BIO/Informa/QLS 2011-2020 benchmark for the matching therapeutic area. Answers "what fraction of Phase 2 assets in NSCLC reach Phase 3", "how does attriti…

ParameterTypeDescription
condition *stringDisease or condition, e.g. "non-small cell lung cancer", "Alzheimer disease", "type 2 diabetes".
censor_yearsnumberYears an earlier-phase trial must have been completed before to_year to enter the denominator (1-15, default 3). Raising it demands more follow-up time, shrinking the denominator; lowering it admits a…
from_yearnumberOptional earliest year for the EARLIER-phase completion date (e.g. 2010). Omit for no floor.
max_pagesnumberUpstream pages of 1000 studies to pull (1-5, default 5). The response reports truncated: true when the cap cut off the match set.
sponsor_classstringWhich sponsors to count. "industry" (default) restricts to company-led trials, matching how commercial PTRS benchmarks are built; "all" adds academic, NIH and other sponsors, which raises the count an…
to_yearnumberAnalysis end year; the censoring window is measured back from here. Defaults to the current year.

ct_sponsor_activity

Track a sponsor’s newly registered studies, first-posted results, or study updates within a verifiable date window. Registry activity is not necessarily a corporate disclosure or material event.

ParameterTypeDescription
since *string
sponsor *stringCompany name, matched against the registered LEAD sponsor by default.
date_typestring
limitnumber
sponsor_matchstringWhich sponsor role the name must fill. "lead" (the default) returns only trials whose registered LEAD sponsor is that company. "lead_or_collaborator" also returns trials led by someone else that list…
untilstring