Clinical trials
Search studies registered on ClinicalTrials.gov (US National Library of Medicine) and return NCT ID, title, overall status, phases, conditions, sponsor, start and completion dates and a registry link (up to 20 per call, optionally filtered by recruitment status).
| Endpoint | POST /v1/clinical-trial-searches |
| Scope | clinical_trial:search |
| MCP tool | clinical_trial |
| Usage units | studies |
Usage units appear in execution.usage.units for reconciliation and billing.
Request fields
Section titled “Request fields”| Field | Type | Required | Description |
|---|---|---|---|
invocation_id |
string | yes | The market’s invocation id: one execution per id and operation, so a retry with the same id is rejected instead of charged twice. 1-128 characters of A-Z a-z 0-9 . _ : -. |
provider |
string | yes | Provider that serves the request; choose by the coverage described for this tool. One of: clinicaltrials-gov |
query |
string | yes | Free-text search terms, 1-300 characters. |
max_results |
integer | no | Number of studies to return, 1-20; default 10. |
statuses |
string[] | no | Optional overall statuses to keep: RECRUITING, NOT_YET_RECRUITING, ACTIVE_NOT_RECRUITING, ENROLLING_BY_INVITATION, COMPLETED, SUSPENDED, TERMINATED, WITHDRAWN or UNKNOWN; omitted means all. |
Providers
Section titled “Providers”| Provider | Region | Source | Limits |
|---|---|---|---|
clinicaltrials-gov |
US | ClinicalTrials.gov (US National Library of Medicine) | max_results: 20, timeout_seconds: 30 |
Example
Section titled “Example”curl -sS https://services.zgi.im/v1/clinical-trial-searches \ -H "Authorization: Bearer $ZGI_SERVICES_TOKEN" \ -H 'Content-Type: application/json' \ -d '{"invocation_id": "docs-1791778521-clinical_trial", "provider": "clinicaltrials-gov", "query": "type 2 diabetes", "max_results": 2}'POST /v1/clinical-trial-searches HTTP/1.1Host: services.zgi.imAuthorization: Bearer <token>Content-Type: application/json
{ "invocation_id": "docs-1791778521-clinical_trial", "provider": "clinicaltrials-gov", "query": "type 2 diabetes", "max_results": 2}Over MCP, the tool arguments are exactly the HTTP request body.
{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "clinical_trial", "arguments": { "invocation_id": "docs-1791778521-clinical_trial", "provider": "clinicaltrials-gov", "query": "type 2 diabetes", "max_results": 2 } }}curl -sS https://services.zgi.im/v1/mcp \ -H "Authorization: Bearer $ZGI_SERVICES_TOKEN" \ -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \ -H 'MCP-Protocol-Version: 2025-11-25' \ -d @request.jsonResponse
Section titled “Response”A real response, with lists cut to two items and long text shortened.
{ "code": 0, "message": "success", "data": { "execution": { "id": "exe_01a12e528f2b74a2adb92c7322e4490b", "invocation_id": "docs-1791778521-clinical_trial", "capability": "clinical_trial", "operation": "clinical_trial.search", "provider": "clinicaltrials-gov", "outcome": "succeeded", "error_category": null, "error_code": null, "usage": { "provider_requests": 1, "units": [ { "name": "studies", "value": 2, "source": "measured" } ] }, "upstream_ref": null, "request_id": "req_812a185d16c7889bb5819858", "started_at": "2026-10-12T04:15:24.971301559Z", "finished_at": "2026-10-12T04:15:25.257899629Z", "duration_ms": 286 }, "result": { "studies": [ { "nct_id": "NCT03162237", "title": "Safety and Efficacy Study of Islets Xenotransplantation", "status": "COMPLETED", "phases": [ "NA" ], "conditions": [ "Type 1 Diabetes" ], "sponsor": "Wei Wang,MD", "start_date": "2013-07", "completion_date": "2018-12", "url": "https://clinicaltrials.gov/study/NCT03162237" }, { "nct_id": "NCT01121172", "title": "Apelin Levels and G212A Polymorphism of Apelin Receptor (APJ)", "status": "COMPLETED", "phases": [], "conditions": [ "Obesity", "Insulin Resistance" ], "sponsor": "Aristotle University Of Thessaloniki", "start_date": "2010-05", "completion_date": "2014-01", "url": "https://clinicaltrials.gov/study/NCT01121172" } ], "source": { "name": "ClinicalTrials.gov (US National Library of Medicine)", "license": "US Government database; retrieved live and reduced to selected fields by ZGI Services", "url": "https://clinicaltrials.gov" } } }}