Clinicaltrials
v0.2.1Search 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_search
Search ClinicalTrials.gov for clinical trials — find trials and look up a NAMED trial by keyword, condition, drug/therapy, status (e.g. 'Recruiting'), or phase (e.g. 'Phase 2'). Use for "clinical trials for <disease/drug>", or to locate a specific study like "the FLOW trial", "semaglutide kidney outcomes trial" (use ct_get_study for its full design/results). Returns NCT IDs, titles, status, enrollment, and sponsor info for the current page, PLUS conditions_summary — a condition-by-condition breakdown across ALL matches (not just this page), so "how many trials and what conditions do they c…
| Parameter | Type | Description |
|---|---|---|
query * | string | The SUBJECT of the search — a condition, drug, or keyword (e.g., "GLP-1 receptor agonist", "breast cancer immunotherapy"). Prefer the topic alone over a full sentence: put status in `status` and pha… |
limit | number | Number of results (1-100, default 10) |
page_token | string | Pass the previous call's `next_page_token` here, with the SAME query/status/phase/sponsor arguments, to fetch studies past the first page. Omit it for a fresh search. A "continue listing"/"next page"… |
phase | string | Filter by phase: EARLY_PHASE1, PHASE1, PHASE2, PHASE3, PHASE4 (or NA). Roman numerals ("Phase III") and comma-separated unions ("PHASE2,PHASE3") are accepted. |
sponsor | string | Filter by the trial's registered LEAD sponsor (e.g., "Pfizer", "Novo Nordisk"). Widen to trials the company only partners on with sponsor_match: "lead_or_collaborator". |
sponsor_match | string | Which 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… |
status | string | Filter by overall status: RECRUITING, ACTIVE_NOT_RECRUITING, COMPLETED, TERMINATED, WITHDRAWN, ENROLLING_BY_INVITATION, SUSPENDED, NOT_YET_RECRUITING. Several may be combined as a comma-separated unio… |
ct_get_study
Get full trial details by NCT ID (e.g., 'NCT04567890'). Returns protocol, eligibility criteria, primary outcomes, sponsor, locations, and results.
| Parameter | Type | Description |
|---|---|---|
nct_id * | string | ClinicalTrials.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.
| Parameter | Type | Description |
|---|---|---|
condition * | string | Condition or disease (e.g., "breast cancer", "diabetes", "Alzheimer") |
phase | string | Optional phase filter: PHASE1, PHASE2, PHASE3, PHASE4 |
status | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
sponsor * | string | Sponsor or company name (e.g., "Pfizer", "Novo Nordisk", "Moderna"). Matched against the registered LEAD sponsor by default. |
limit | number | Number of results (1-100, default 20) |
phase | string | Optional phase filter |
sponsor_match | string | Which 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… |
status | string | Optional 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…
| Parameter | Type | Description |
|---|---|---|
sponsors * | array | Two to five sponsor names to compare under the same filters. |
condition | string | Optional condition or disease, such as "obesity". |
phase | string | Optional phase or comma-separated phase union, such as PHASE3. |
sample_limit | number | Representative studies per sponsor (0-10, default 3). |
status | string | Optional 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_…
| Parameter | Type | Description |
|---|---|---|
date_type | string | Which 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… |
limit | number | Number of results per page (1-100, default 20). total_count reports the full window size regardless of limit. |
query | string | Optional search term (condition/drug/keyword) to narrow results. |
since | string | Window start (inclusive), YYYY-MM-DD. e.g. for a weekly review pass 7 days ago. Applies to the chosen date_type. |
sponsor | string | Optional 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_match | string | Which 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… |
status | string | Optional overall-status filter (validated; e.g. RECRUITING, or a comma-union like "RECRUITING,COMPLETED"). |
until | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
condition | string | Condition/disease (e.g. "diabetes", "breast cancer immunotherapy"). Optional but recommended. |
lat | number | Latitude for a geo-radius search (pair with lon). |
limit | number | Max trials to return (1-100, default 15). |
location | string | Place name — city, state, or country (e.g. "Boston", "California", "Germany"). Use this OR lat+lon. |
lon | number | Longitude (pair with lat). |
radius_mi | number | Radius in miles for a lat/lon search (1-500, default 50). |
status | string | Overall 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.
| Parameter | Type | Description |
|---|---|---|
from_date * | string | YYYY-MM-DD, inclusive. |
to_date * | string | YYYY-MM-DD, inclusive. |
event_type | string | |
limit | number | |
phase | string | |
query | string | Optional condition, intervention, or keyword. |
sponsor | string | Optional company name. Matched against the registered LEAD sponsor by default. |
sponsor_match | string | Which 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… |
status | string |
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.
| Parameter | Type | Description |
|---|---|---|
sponsor * | string | Company name, matched against the registered LEAD sponsor by default. |
phase | string | |
sample_size | number | |
sponsor_match | string | Which 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… |
status | string |
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.
| Parameter | Type | Description |
|---|---|---|
condition * | string | |
intervention | string | |
phase | string | |
sample_size | number | |
status | string |
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.
| Parameter | Type | Description |
|---|---|---|
limit | number | |
phase | string | |
query | string | |
sponsor | string | Optional company name. Matched against the registered LEAD sponsor by default. |
sponsor_match | string | Which 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.
| Parameter | Type | Description |
|---|---|---|
nct_id * | string | |
max_outcomes | number | Reported 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…
| Parameter | Type | Description |
|---|---|---|
condition * | string | Disease or condition, e.g. "non-small cell lung cancer", "Alzheimer disease", "type 2 diabetes". |
censor_years | number | Years 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_year | number | Optional earliest year for the EARLIER-phase completion date (e.g. 2010). Omit for no floor. |
max_pages | number | Upstream pages of 1000 studies to pull (1-5, default 5). The response reports truncated: true when the cap cut off the match set. |
sponsor_class | string | Which 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_year | number | Analysis 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.
| Parameter | Type | Description |
|---|---|---|
since * | string | |
sponsor * | string | Company name, matched against the registered LEAD sponsor by default. |
date_type | string | |
limit | number | |
sponsor_match | string | Which 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… |
until | string |