Skip to main content
Glama
Crawlora MCP

Crawlora MCP

Official

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

NameRequiredDescriptionDefault
idNoStudy IDs query (IdSearch area: NCT numbers, org and secondary IDs)
idsNoComma-separated NCT numbers (also matches NCT aliases)
cityNoLocation city (AREA[LocationCity])
condNoConditions or disease query (Essie syntax, ConditionSearch area)
intrNoIntervention or treatment query (InterventionSearch area)
leadNoLead sponsor name query (LeadSponsorName field)
locnNoLocation terms query (LocationSearch area)
outcNoOutcome measure query (OutcomeSearch area)
termNoOther terms query (Essie syntax, BasicSearch area)
sponsNoSponsor or collaborator query (SponsorSearch area)
stateNoLocation state or region (AREA[LocationState])
age_toNoEligible age range end
titlesNoTitle or acronym query (TitleSearch area)
countryNoLocation country (AREA[LocationCountry])
patientNoPatient-friendly search (PatientSearch area)
advancedNoEssie expression filter, ANDed with the location, date and age filters
age_fromNoEligible age range start: number and unit (Years, Months, Weeks, Days, Hours, Minutes)
distanceNoRadius with km or mi unit
latitudeNoLatitude of the distance filter (with longitude and distance)
start_toNoStudy start date to
synonymsNoComma-separated area:synonym_id pairs from /clinicaltrials/studies/facets
geo_decayNoProximity ranking for the distance filter: func:(gauss|exp|linear),scale:<d>(km|mi),offset:<d>(km|mi),decay:<n>
longitudeNoLongitude of the distance filter
start_fromNoStudy start date from (YYYY, YYYY-MM or YYYY-MM-DD)
agg_filtersNoSearch-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_toNoStudy completion date to
overall_statusNoComma-separated overall statuses
completion_fromNoStudy completion date from
first_posted_toNoFirst posted date to
first_posted_fromNoFirst posted date from
last_update_posted_toNoLast update posted date to
primary_completion_toNoPrimary completion date to
last_update_posted_fromNoLast update posted date from
primary_completion_fromNoPrimary completion date from
results_first_posted_toNoResults first posted date to
results_first_posted_fromNoResults first posted date from

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.17.28

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, but the description discloses the return behavior in useful detail: total counts, live per-option aggregation counts, and matched synonyms with accepted area:id values. It implies a read-only retrieval via 'Get' and 'Returns,' though it does not mention authentication, rate limits, or side effects explicitly.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core purpose and then spends its remaining sentences on the two key behaviors: aggregation counts and synonym matching. It is appropriately sized for a complex 36-parameter tool and contains no redundant filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and no annotations, the description carries the burden of explaining return values, and it does so substantively by describing the filter panel, counts, and synonyms. It could be slightly more complete by clarifying that the operation is read-only or describing the overall response structure, but it is sufficient for selecting and invoking the tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the input schema already documents all 36 parameters. The description adds only that the same query and filter parameters as /clinicaltrials/studies are accepted and references the synonyms filter's area:id format, without adding meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource: get ClinicalTrials.gov search facet counts and synonyms. It clearly explains that the return is the search page's filter panel rather than study records, which distinguishes it from clinicaltrials_studies despite sharing the same query parameters.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear context by saying it returns the filter panel for a search and takes the same query and filter parameters as /clinicaltrials/studies. It does not explicitly state when not to use it or name the alternative as the tool for retrieving actual study records, so it falls short of full when/when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools