Submit compact ClinicalTrials.gov API v2 requests for study search, metadata, enums, search areas, and field statistics. Use when a user wants concise ClinicalTrials.gov summaries
scripts/clinicaltrials_client.py for all ClinicalTrials.gov v2 calls.max_items=10 and max_pages=1; only increase pages when the user explicitly wants more than the first page.params instead of broad unfiltered study dumps.... in tool previews as UI truncation, not literal request content.action=studies for search and action=metadata|search_areas|enums|stats_size|field_values|field_sizes for API introspection and field stats.save_raw=true and report the saved file path.actionstudies, metadata, search_areas, enums, stats_size, field_values, field_sizes, requestpath for action=request, params, max_items, max_depth, max_pages, timeout_sec, save_raw, raw_output_path{"action":"studies","params":{"query.cond":"prostate cancer","filter.overallStatus":"RECRUITING","pageSize":10},"max_items":10,"max_pages":1}{"action":"metadata"}{"action":"field_values","params":{"field":"protocolSection.identificationModule.organization.fullName"}}action=studies returns pages_fetched, next_page_token, count metadata, and compact records.records or a compact summary.raw_output_path when save_raw=true.ok=false with error.code and error.message.echo '{"action":"studies","params":{"query.cond":"prostate cancer","filter.overallStatus":"RECRUITING","pageSize":10},"max_items":10,"max_pages":1}' | python scripts/clinicaltrials_client.py
scripts/clinicaltrials_client.py.