Clinicaltrials Get Field Values
clinicaltrials_get_field_valuesDiscover valid values for ClinicalTrials.gov fields with study counts per value. Use to explore available filter options before building a search — e.g., valid OverallStatus, Phase, InterventionType, StudyType, or LeadSponsorClass values.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"fields": "<fields>"
},
"name": "clinicaltrials_get_field_values"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | PascalCase leaf piece name(s) to get value statistics for — an empty list is rejected, not treated as "every field". A group of fields (LeadSponsor, ConditionMesh) is refused with its leaf pieces named (LeadSponsorName, ConditionMeshTerm), and a full path as clinicaltrials_get_field_definitions prints it ("protocolSection.statusModule.overallStatus") is read as its piece name. A comma- or pipe-joined string ("Phase,StudyType") is split into separate names. Examples: OverallStatus, Phase, StudyType, Sex, LeadSponsorClass. Use clinicaltrials_get_field_definitions with a query to find more field names. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| notice | No | Present when a longest value was cut to a preview — names, for each such field, the clinicaltrials_search_studies arguments that return its full text. | |
| fieldStats | No | One entry per requested field: canonical path, PascalCase piece name, data type, and the statistics variant that type carries — top values with study counts plus unique/longest for ENUM/STRING, trueCount/falseCount for BOOLEAN, min/max/avg for INTEGER/NUMBER, min/max/formats for DATE. |