clinicaltrials_studies_facets
Get ClinicalTrials.gov search facet counts and matched synonyms for a query, with live per-option study totals and area:id values for filtering.
Instructions
Get ClinicalTrials.gov search facet counts and synonyms. Returns the ClinicalTrials.gov search page's filter panel for a search: the total, every aggregation filter (status, sex, ages, healthy, phase, studyType, results, funderType, docs, violation, ressub) with live per-option study counts, and the synonyms the engine matched for each query term with the area:id values the synonyms filter accepts. Takes the same query and filter parameters as /clinicaltrials/studies.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "clinicaltrials_studies_facets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Study IDs query (IdSearch area: NCT numbers, org and secondary IDs) | |
| ids | No | Comma-separated NCT numbers (also matches NCT aliases) | |
| city | No | Location city (AREA[LocationCity]) | |
| cond | No | Conditions or disease query (Essie syntax, ConditionSearch area) | |
| intr | No | Intervention or treatment query (InterventionSearch area) | |
| lead | No | Lead sponsor name query (LeadSponsorName field) | |
| locn | No | Location terms query (LocationSearch area) | |
| outc | No | Outcome measure query (OutcomeSearch area) | |
| term | No | Other terms query (Essie syntax, BasicSearch area) | |
| spons | No | Sponsor or collaborator query (SponsorSearch area) | |
| state | No | Location state or region (AREA[LocationState]) | |
| age_to | No | Eligible age range end | |
| titles | No | Title or acronym query (TitleSearch area) | |
| country | No | Location country (AREA[LocationCountry]) | |
| patient | No | Patient-friendly search (PatientSearch area) | |
| advanced | No | Essie expression filter, ANDed with the location, date and age filters | |
| age_from | No | Eligible age range start: number and unit (Years, Months, Weeks, Days, Hours, Minutes) | |
| distance | No | Radius with km or mi unit | |
| latitude | No | Latitude of the distance filter (with longitude and distance) | |
| start_to | No | Study start date to | |
| synonyms | No | Comma-separated area:synonym_id pairs from /clinicaltrials/studies/facets | |
| geo_decay | No | Proximity ranking for the distance filter: func:(gauss|exp|linear),scale:<d>(km|mi),offset:<d>(km|mi),decay:<n> | |
| longitude | No | Longitude of the distance filter | |
| start_from | No | Study start date from (YYYY, YYYY-MM or YYYY-MM-DD) | |
| agg_filters | No | Search-page filters as id:key pairs, keys space-separated, ids comma-separated; ids and keys: status (not, rec, act, com, ter, enr, sus, wit, unk, ava, nla, tna, afm), sex (f, m), ages (child, adult, older), healthy (y), phase (0, 1, 2, 3, 4, NA), studyType (int, obs, obs_patreg, exp, exp_indiv, exp_inter, exp_treat), results (with, without), funderType (nih, fed, industry, other), docs (prot, sap, icf), violation (y), ressub (n, y, c) | |
| completion_to | No | Study completion date to | |
| overall_status | No | Comma-separated overall statuses | |
| completion_from | No | Study completion date from | |
| first_posted_to | No | First posted date to | |
| first_posted_from | No | First posted date from | |
| last_update_posted_to | No | Last update posted date to | |
| primary_completion_to | No | Primary completion date to | |
| last_update_posted_from | No | Last update posted date from | |
| primary_completion_from | No | Primary completion date from | |
| results_first_posted_to | No | Results first posted date to | |
| results_first_posted_from | No | Results first posted date from |