Hipa.ai Clinical Trials
Search recruiting US clinical trials by city, condition, phase and patient eligibility.
我該用這個嗎
品質與安全性
發現項目(4)
- LOW在 clinicaltrials_find_eligible_trials 中
- LOW在 clinicaltrials_get_data_freshness 中
- LOW在 clinicaltrials_list_top_conditions 中
- LOW在 clinicaltrials_list_top_facilities 中
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"clinical-trials": {
"url": "https://hipa.ai/api/mcp/mcp"
}
}
}遠端端點
https://hipa.ai/api/mcp/mcpstreamable-http它能做什麼
工具清單
工具(8)
🟢clinicaltrials_count_trials(state, city, condition, phase, studyType, ...)
Return only the count of active US clinical trials matching the same filter set accepted by clinicaltrials_search_trials. Use this when the caller needs a population estimate (e.g. 'how many trials are recruiting in California for type 2 diabetes?') without fetching trial records. Far cheaper than calling search and discarding the results.
輸入結構描述
{
"type": "object",
"properties": {
"state": {
"description": "Two-letter US state code (e.g. CA, NY, TX, FL). Case-insensitive on input; normalized to uppercase. DC is accepted. Full state names like 'California' are not accepted - use 'CA' instead.",
"type": "string"
},
"city": {
"description": "US city name. Allows letters, spaces, hyphens, apostrophes, and periods. Examples: \"San Francisco\", \"St. Louis\", \"O'Fallon\", \"Wilkes-Barre\". Surrounding whitespace is trimmed; maximum 100 characters.",
"type": "string"
},
"condition": {
"description": "Condition to filter by: a curated slug ('breast-cancer'), its label ('Breast Cancer') or a condition name as it appears in trial records ('Breast Neoplasms'). Case-insensitive. Call clinicaltrials_list_conditions to see the valid values; an unrecognized condition is rejected with suggestions, never ignored.",
"type": "string",
"minLength": 1,
"maxLength": 120
},
"phase": {
"maxItems": 10,
"type": "array",
"items": {
"type": "string",
"enum": [
"Phase 1",
"Phase 2",
"Phase 3",
"Phase 4",
"N/A",
"EARLY_PHASE1",
"PHASE1",
"PHASE2",
"PHASE3",
"PHASE4",
"NA"
],
"description": "Trial phase. One of: \"Phase 1\", \"Phase 2\", \"Phase 3\", \"Phase 4\", \"N/A\" - or the raw value a trial record reports (\"PHASE1\", \"EARLY_PHASE1\", \"PHASE2\", \"PHASE3\", \"PHASE4\", \"NA\"). Combined-phase trials (e.g. Phase 1/Phase 2) surface under each component bucket, so a Phase 1 filter also matches a Phase 1/Phase 2 study."
}
},
"studyType": {
"maxItems": 3,
"type": "array",
"items": {
"type": "string",
"enum": [
"INTERVENTIONAL",
"OBSERVATIONAL",
"EXPANDED_ACCESS"
],
"description": "Trial study type from ClinicalTrials.gov. One of: \"INTERVENTIONAL\", \"OBSERVATIONAL\", \"EXPANDED_ACCESS\". Values match AACT's canonical enum exactly (uppercase)."
}
},
"interventionType": {
"maxItems": 11,
"type": "array",
"items": {
"type": "string",
"enum": [
"DRUG",
"DEVICE",
"BEHAVIORAL",
"PROCEDURE",
"BIOLOGICAL",
"DIAGNOSTIC_TEST",
"DIETARY_SUPPLEMENT",
"RADIATION",
"COMBINATION_PRODUCT",
"GENETIC",
"OTHER"
],
"description": "Intervention type. One of: \"DRUG\", \"DEVICE\", \"BEHAVIORAL\", \"PROCEDURE\", \"BIOLOGICAL\", \"DIAGNOSTIC_TEST\", \"DIETARY_SUPPLEMENT\", \"RADIATION\", \"COMBINATION_PRODUCT\", \"GENETIC\", \"OTHER\". Values match AACT's canonical enum exactly (uppercase)."
}
},
"status": {
"maxItems": 3,
"type": "array",
"items": {
"type": "string",
"enum": [
"RECRUITING",
"NOT_YET_RECRUITING",
"ENROLLING_BY_INVITATION"
],
"description": "Recruitment status. One of: \"RECRUITING\", \"NOT_YET_RECRUITING\", \"ENROLLING_BY_INVITATION\". The MCP server only exposes the three active statuses - completed, terminated, withdrawn, etc. are not searchable."
}
},
"sex": {
"type": "string",
"enum": [
"female",
"male"
],
"description": "Biological sex eligibility filter. Use 'female' or 'male'. Trials open to both sexes are returned regardless of this filter."
},
"age": {
"type": "string",
"enum": [
"child",
"adult",
"senior"
],
"description": "Age bucket for eligibility matching. 'child' = 0-17 years, 'adult' = 18-64 years, 'senior' = 65+ years. Maps to AACT minimum_age/maximum_age boundaries server-side."
},
"healthyVolunteersOnly": {
"type": "boolean"
},
"facility": {
"description": "Exact facility name match. Scopes results to trials running at this named site.",
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"state"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"count": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Number of active US trials matching every applied filter."
},
"searchCriteria": {
"type": "object",
"properties": {
"state": {
"type": "string",
"description": "Canonical state code applied to this search."
},
"city": {
"description": "Canonical city name resolved from the slug, present when city scope was used.",
"type": "string"
},
"condition": {
"type": "string"
},
"phase": {
"type": "array",
"items": {
"type": "string"
}
},
"studyType": {
"type": "array",
"items": {
"type": "string"
}
},
"interventionType": {
"type": "array",
"items": {
"type": "string"
}
},
"status": {
"type": "array",
"items": {
"type": "string"
}
},
"sex": {
"type": "string"
},
"age": {
"type": "string"
},
"healthyVolunteersOnly": {
"type": "boolean"
},
"facility": {
"type": "string"
}
},
"required": [
"state"
],
"additionalProperties": false,
"description": "Echo of the applied filter set so the caller can confirm what the server interpreted."
}
},
"required": [
"count",
"searchCriteria"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢clinicaltrials_find_eligible_trials(ageYears, sex, conditions, state, city, ...)
Match patient demographics (age, sex, conditions, location) to currently recruiting US clinical trials. Conditions are curated slugs, labels or trial-record condition names (discover them via clinicaltrials_list_conditions). Maps ageYears to the AACT eligibility bucket (child 0-17, adult 18-64, senior 65+). Returns up to 50 trials per page with an opaque cursor for further pagination. State scope is required; city is optional for facility-level narrowing.
輸入結構描述
{
"type": "object",
"properties": {
"ageYears": {
"type": "integer",
"minimum": 0,
"maximum": 120,
"description": "Patient age in years. Integer in [0, 120]. Maps to the AACT eligibility bucket: 0-17 child, 18-64 adult, 65+ senior."
},
"sex": {
"type": "string",
"enum": [
"female",
"male"
],
"description": "Biological sex eligibility filter. Use 'female' or 'male'. Trials open to both sexes are returned regardless of this filter."
},
"conditions": {
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "Condition slug ('breast-cancer'), label ('Breast Cancer') or trial-record condition name ('Breast Neoplasms'). Case-insensitive. Discover valid values via clinicaltrials_list_conditions."
},
"description": "One or more conditions. Unrecognized values are rejected as invalid_input with suggested slugs."
},
"state": {
"description": "Two-letter US state code (e.g. CA, NY, TX, FL). Case-insensitive on input; normalized to uppercase. DC is accepted. Full state names like 'California' are not accepted - use 'CA' instead.",
"type": "string"
},
"city": {
"description": "US city name. Allows letters, spaces, hyphens, apostrophes, and periods. Examples: \"San Francisco\", \"St. Louis\", \"O'Fallon\", \"Wilkes-Barre\". Surrounding whitespace is trimmed; maximum 100 characters.",
"type": "string"
},
"pageSize": {
"default": 20,
"description": "Number of results per page. Integer in [1, 50]. Default 20.",
"type": "integer",
"minimum": 1,
"maximum": 50
},
"cursor": {
"description": "Opaque pagination cursor returned by a previous call's nextCursor field. Omit to start from the beginning of the result set. Cursors are tied to the exact filter set used to issue them - reusing a cursor with different filters returns an invalid_cursor error.",
"type": "string",
"minLength": 1
}
},
"required": [
"ageYears",
"conditions",
"state"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"trials": {
"type": "array",
"items": {
"type": "object",
"properties": {
"nctId": {
"type": "string",
"description": "Canonical NCT identifier."
},
"url": {
"type": "string",
"description": "Hipa.ai page for this trial: plain-language summary, every US site and how to apply. Link this when presenting the trial."
},
"briefTitle": {
"type": "string",
"description": "Short trial title from ClinicalTrials.gov."
},
"phase": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Raw AACT phase enum value (e.g. PHASE2, EARLY_PHASE1, NA), or null when absent."
},
"overallStatus": {
"type": "string",
"description": "AACT recruitment status (e.g. RECRUITING, NOT_YET_RECRUITING)."
},
"sponsor": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Lead sponsor name, or null when absent in AACT."
},
"conditions": {
"type": "array",
"items": {
"type": "string"
},
"description": "Condition names from the trial record, split into an array."
},
"eligibility": {
"type": "object",
"properties": {
"sex": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"minimumAge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"maximumAge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"healthyVolunteers": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
}
},
"required": [
"sex",
"minimumAge",
"maximumAge",
"healthyVolunteers"
],
"additionalProperties": false,
"description": "Eligibility summary as recorded in AACT."
},
"locationCount": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Total number of US facilities running this trial."
},
"firstLocation": {
"anyOf": [
{
"type": "object",
"properties": {
"city": {
"type": "string"
},
"state": {
"type": "string"
}
},
"required": [
"city",
"state"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Primary US facility city / state when present, null otherwise."
}
},
"required": [
"nctId",
"url",
"briefTitle",
"phase",
"overallStatus",
"sponsor",
"conditions",
"eligibility",
"locationCount",
"firstLocation"
],
"additionalProperties": false
},
"description": "Trial records that match the eligibility filters, sorted newest first by start_date."
},
"totalMatching": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Total eligible trials matching the criteria across all pages."
},
"nextCursor": {
"description": "Opaque cursor to fetch the next page. Absent when no more pages are available.",
"type": "string"
},
"searchCriteria": {
"type": "object",
"properties": {
"state": {
"type": "string",
"description": "Canonical state code applied to this search."
},
"city": {
"description": "Canonical city name resolved from the slug, present when city scope was used.",
"type": "string"
},
"conditions": {
"type": "array",
"items": {
"type": "string"
},
"description": "Curated condition slugs the supplied conditions resolved to."
},
"ageYears": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Exact ageYears value applied to derive the eligibility bucket."
},
"ageBucket": {
"type": "string",
"description": "AACT age bucket derived from ageYears (one of 'child', 'adult', 'senior')."
},
"sex": {
"description": "Sex eligibility filter when applied; absent when sex was omitted.",
"type": "string"
},
"pageSize": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Page size that was applied to produce this page of results."
}
},
"required": [
"state",
"conditions",
"ageYears",
"ageBucket",
"pageSize"
],
"additionalProperties": false,
"description": "Echo of the applied eligibility criteria so the caller can confirm what the server interpreted."
},
"noMatchHints": {
"description": "Actionable suggestions to broaden the eligibility match, present only when totalMatching is zero.",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"trials",
"totalMatching",
"searchCriteria"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢clinicaltrials_get_data_freshness
Returns the timestamp at which the underlying ClinicalTrials.gov dataset was last refreshed on the server. Use this to disclose the data age to end users or to decide whether to re-query for fresher results.
輸入結構描述
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"refreshedAtIso": {
"type": "string",
"description": "ISO-8601 UTC timestamp of the last AACT index refresh."
},
"humanReadable": {
"type": "string",
"description": "Human-readable rendering of the same timestamp in en-US."
}
},
"required": [
"refreshedAtIso",
"humanReadable"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢clinicaltrials_get_trial(nctId)
Fetch the full clinical trial record by NCT ID. Returns title, status, sponsor, summary, conditions, interventions, arms, design, eligibility (age, sex, healthy volunteers and the full inclusion/exclusion criteria text), primary outcomes, central contacts, every US site location with its contacts, and links to the trial's Hipa.ai page and ClinicalTrials.gov record. Use this after clinicaltrials_search_trials surfaces a candidate NCT id and the caller needs the complete record - the search tool only returns a paginated summary.
輸入結構描述
{
"type": "object",
"properties": {
"nctId": {
"description": "ClinicalTrials.gov identifier. Canonical form: 'NCT' followed by exactly 8 digits (e.g. NCT12345678). Case-insensitive on input; normalized to uppercase. Surrounding whitespace is trimmed.",
"type": "string"
}
},
"required": [
"nctId"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"study": {
"type": "object",
"properties": {
"nctId": {
"type": "string"
},
"url": {
"type": "string",
"description": "Hipa.ai page for this trial: plain-language summary, every US site and how to apply."
},
"clinicalTrialsGovUrl": {
"type": "string",
"description": "The official registry record on ClinicalTrials.gov."
},
"briefTitle": {
"type": "string"
},
"officialTitle": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"overallStatus": {
"type": "string"
},
"phase": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"enrollment": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"enrollmentType": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"startDate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"completionDate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"primaryCompletionDate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"verificationDate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"sponsor": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"briefSummary": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"conditions": {
"type": "array",
"items": {
"type": "string"
}
},
"interventions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"type",
"name",
"description"
],
"additionalProperties": false
}
},
"arms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"groupType": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"groupType",
"title",
"description"
],
"additionalProperties": false
}
},
"primaryOutcomes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"measure": {
"type": "string"
},
"timeFrame": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"measure",
"timeFrame"
],
"additionalProperties": false
}
},
"eligibility": {
"anyOf": [
{
"type": "object",
"properties": {
"gender": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"minimumAge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"maximumAge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"healthyVolunteers": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"criteria": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Free-text inclusion and exclusion criteria exactly as the sponsor registered them."
}
},
"required": [
"gender",
"minimumAge",
"maximumAge",
"healthyVolunteers",
"criteria"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"design": {
"anyOf": [
{
"type": "object",
"properties": {
"allocation": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"interventionModel": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"primaryPurpose": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"masking": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"allocation",
"interventionModel",
"primaryPurpose",
"masking"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"centralContacts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"email": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"phone": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"name",
"email",
"phone"
],
"additionalProperties": false
}
},
"locations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"city": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"state": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"zip": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"contacts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"email": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"phone": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"role": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"name",
"email",
"phone",
"role"
],
"additionalProperties": false
}
}
},
"required": [
"name",
"city",
"state",
"zip",
"contacts"
],
"additionalProperties": false
}
}
},
"required": [
"nctId",
"url",
"clinicalTrialsGovUrl",
"briefTitle",
"officialTitle",
"overallStatus",
"phase",
"enrollment",
"enrollmentType",
"startDate",
"completionDate",
"primaryCompletionDate",
"verificationDate",
"sponsor",
"briefSummary",
"conditions",
"interventions",
"arms",
"primaryOutcomes",
"eligibility",
"design",
"centralContacts",
"locations"
],
"additionalProperties": false,
"description": "Full clinical trial record: protocol summary, design, eligibility criteria, primary outcomes, central contacts, and every US site location."
}
},
"required": [
"study"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢clinicaltrials_list_conditions(query, limit)
List the curated conditions the trial search tools filter on, with the slug to pass as `condition` (clinicaltrials_search_trials, clinicaltrials_count_trials) or in `conditions` (clinicaltrials_find_eligible_trials). Pass `query` to find a condition by name or synonym (e.g. 'lung', 'diabetes', 'NSCLC'). Ordered by how many recruiting US trials study the condition. Specialty entries (e.g. 'oncology') are roll-ups covering many conditions.
輸入結構描述
{
"type": "object",
"properties": {
"query": {
"description": "Case-insensitive search over condition labels, slugs and synonyms (the raw condition names trial records use). Omit to list the most common conditions.",
"type": "string",
"maxLength": 100
},
"limit": {
"default": 50,
"description": "Maximum conditions to return. Integer in [1, 250]. Default 50.",
"type": "integer",
"minimum": 1,
"maximum": 250
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"conditions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"slug": {
"type": "string",
"description": "Value to pass as a condition filter."
},
"label": {
"type": "string",
"description": "Human-readable condition name."
},
"isSpecialty": {
"type": "boolean",
"description": "True for roll-ups that cover a whole specialty (e.g. oncology)."
}
},
"required": [
"slug",
"label",
"isSpecialty"
],
"additionalProperties": false
},
"description": "Matching conditions, most-studied first."
},
"totalMatching": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Matching conditions before the limit was applied."
}
},
"required": [
"conditions",
"totalMatching"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢clinicaltrials_list_top_conditions(state, city, limit)
List the most common conditions across active US clinical trials in a US state or city, with trial counts. Use this when the caller wants to see what is well-represented in a region before searching. Each entry carries the curated `slug` to pass to clinicaltrials_search_trials as `condition` (null when the label has no curated match - use clinicaltrials_list_conditions to find a close one). Counts come from AACT condition aggregations and refresh daily.
輸入結構描述
{
"type": "object",
"properties": {
"state": {
"description": "Two-letter US state code (e.g. CA, NY, TX, FL). Case-insensitive on input; normalized to uppercase. DC is accepted. Full state names like 'California' are not accepted - use 'CA' instead.",
"type": "string"
},
"city": {
"description": "US city name. Allows letters, spaces, hyphens, apostrophes, and periods. Examples: \"San Francisco\", \"St. Louis\", \"O'Fallon\", \"Wilkes-Barre\". Surrounding whitespace is trimmed; maximum 100 characters.",
"type": "string"
},
"limit": {
"default": 10,
"description": "Maximum number of buckets to return from a top-N aggregation. Integer in [1, 25]. Default 10. Aggregator returns buckets sorted by descending count.",
"type": "integer",
"minimum": 1,
"maximum": 25
}
},
"required": [
"state"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"conditions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Condition label as recorded in AACT conditions.name."
},
"slug": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Curated condition slug to use as a search filter, or null when this label has no curated match."
},
"count": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Number of active US trials tagged with this condition in the scope."
}
},
"required": [
"name",
"slug",
"count"
],
"additionalProperties": false
},
"description": "Conditions sorted by descending trial count."
},
"scope": {
"type": "object",
"properties": {
"state": {
"type": "string",
"description": "Canonical state code applied to this search."
},
"city": {
"description": "Canonical city name resolved from the slug, present when city scope was used.",
"type": "string"
}
},
"required": [
"state"
],
"additionalProperties": false,
"description": "Echo of the resolved scope so the caller can confirm what the server interpreted."
}
},
"required": [
"conditions",
"scope"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢clinicaltrials_list_top_facilities(state, city, limit)
List named research facilities running active US clinical trials in a city, ranked by trial count. Returns each facility's name, ZIP, the top conditions they study, and one example NCT ID for quick verification. Use this when the caller asks where studies are happening in a specific city, or wants to surface named local clinics for a downstream clinicaltrials_search_trials call with the facility filter.
輸入結構描述
{
"type": "object",
"properties": {
"state": {
"description": "Two-letter US state code (e.g. CA, NY, TX, FL). Case-insensitive on input; normalized to uppercase. DC is accepted. Full state names like 'California' are not accepted - use 'CA' instead.",
"type": "string"
},
"city": {
"description": "US city name. Allows letters, spaces, hyphens, apostrophes, and periods. Examples: \"San Francisco\", \"St. Louis\", \"O'Fallon\", \"Wilkes-Barre\". Surrounding whitespace is trimmed; maximum 100 characters.",
"type": "string"
},
"limit": {
"default": 10,
"description": "Maximum number of buckets to return from a top-N aggregation. Integer in [1, 25]. Default 10. Aggregator returns buckets sorted by descending count.",
"type": "integer",
"minimum": 1,
"maximum": 25
}
},
"required": [
"state",
"city"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"facilities": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Facility name as recorded in AACT facilities.name."
},
"zip": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "US ZIP code from the most common facility record, or null when absent."
},
"trialCount": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Number of active US trials running at this facility within the scoped city."
},
"topConditions": {
"type": "array",
"items": {
"type": "string"
},
"description": "Most common condition labels for trials at this facility, sourced from AACT aggregations."
},
"exampleNctId": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Canonical NCT id of one trial running at this facility. Pass to clinicaltrials_get_trial for the full record."
}
},
"required": [
"name",
"zip",
"trialCount",
"topConditions",
"exampleNctId"
],
"additionalProperties": false
},
"description": "Facilities sorted by descending trial count."
},
"scope": {
"type": "object",
"properties": {
"state": {
"type": "string",
"description": "Canonical state code applied to this search."
},
"city": {
"description": "Canonical city name resolved from the slug, present when city scope was used.",
"type": "string"
}
},
"required": [
"state"
],
"additionalProperties": false,
"description": "Echo of the resolved scope so the caller can confirm what the server interpreted."
}
},
"required": [
"facilities",
"scope"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢clinicaltrials_search_trials(state, city, condition, phase, studyType, ...)
Search active US clinical trials by location, condition slug, phase, study type, intervention type, recruitment status, sex eligibility, age bucket, healthy-volunteer flag, and facility name. Returns up to 50 trials per page with an opaque cursor for further pagination. Cursors are tied to the exact filter set used to issue them - reusing a cursor with a different filter set returns invalid_cursor. Use state-only scope first when exploring a region, then narrow to city for facility-level detail.
輸入結構描述
{
"type": "object",
"properties": {
"state": {
"description": "Two-letter US state code (e.g. CA, NY, TX, FL). Case-insensitive on input; normalized to uppercase. DC is accepted. Full state names like 'California' are not accepted - use 'CA' instead.",
"type": "string"
},
"city": {
"description": "US city name. Allows letters, spaces, hyphens, apostrophes, and periods. Examples: \"San Francisco\", \"St. Louis\", \"O'Fallon\", \"Wilkes-Barre\". Surrounding whitespace is trimmed; maximum 100 characters.",
"type": "string"
},
"condition": {
"description": "Condition to filter by: a curated slug ('breast-cancer'), its label ('Breast Cancer') or a condition name as it appears in trial records ('Breast Neoplasms'). Case-insensitive. Call clinicaltrials_list_conditions to see the valid values; an unrecognized condition is rejected with suggestions, never ignored.",
"type": "string",
"minLength": 1,
"maxLength": 120
},
"phase": {
"maxItems": 10,
"type": "array",
"items": {
"type": "string",
"enum": [
"Phase 1",
"Phase 2",
"Phase 3",
"Phase 4",
"N/A",
"EARLY_PHASE1",
"PHASE1",
"PHASE2",
"PHASE3",
"PHASE4",
"NA"
],
"description": "Trial phase. One of: \"Phase 1\", \"Phase 2\", \"Phase 3\", \"Phase 4\", \"N/A\" - or the raw value a trial record reports (\"PHASE1\", \"EARLY_PHASE1\", \"PHASE2\", \"PHASE3\", \"PHASE4\", \"NA\"). Combined-phase trials (e.g. Phase 1/Phase 2) surface under each component bucket, so a Phase 1 filter also matches a Phase 1/Phase 2 study."
}
},
"studyType": {
"maxItems": 3,
"type": "array",
"items": {
"type": "string",
"enum": [
"INTERVENTIONAL",
"OBSERVATIONAL",
"EXPANDED_ACCESS"
],
"description": "Trial study type from ClinicalTrials.gov. One of: \"INTERVENTIONAL\", \"OBSERVATIONAL\", \"EXPANDED_ACCESS\". Values match AACT's canonical enum exactly (uppercase)."
}
},
"interventionType": {
"maxItems": 11,
"type": "array",
"items": {
"type": "string",
"enum": [
"DRUG",
"DEVICE",
"BEHAVIORAL",
"PROCEDURE",
"BIOLOGICAL",
"DIAGNOSTIC_TEST",
"DIETARY_SUPPLEMENT",
"RADIATION",
"COMBINATION_PRODUCT",
"GENETIC",
"OTHER"
],
"description": "Intervention type. One of: \"DRUG\", \"DEVICE\", \"BEHAVIORAL\", \"PROCEDURE\", \"BIOLOGICAL\", \"DIAGNOSTIC_TEST\", \"DIETARY_SUPPLEMENT\", \"RADIATION\", \"COMBINATION_PRODUCT\", \"GENETIC\", \"OTHER\". Values match AACT's canonical enum exactly (uppercase)."
}
},
"status": {
"maxItems": 3,
"type": "array",
"items": {
"type": "string",
"enum": [
"RECRUITING",
"NOT_YET_RECRUITING",
"ENROLLING_BY_INVITATION"
],
"description": "Recruitment status. One of: \"RECRUITING\", \"NOT_YET_RECRUITING\", \"ENROLLING_BY_INVITATION\". The MCP server only exposes the three active statuses - completed, terminated, withdrawn, etc. are not searchable."
}
},
"sex": {
"type": "string",
"enum": [
"female",
"male"
],
"description": "Biological sex eligibility filter. Use 'female' or 'male'. Trials open to both sexes are returned regardless of this filter."
},
"age": {
"type": "string",
"enum": [
"child",
"adult",
"senior"
],
"description": "Age bucket for eligibility matching. 'child' = 0-17 years, 'adult' = 18-64 years, 'senior' = 65+ years. Maps to AACT minimum_age/maximum_age boundaries server-side."
},
"healthyVolunteersOnly": {
"type": "boolean"
},
"facility": {
"description": "Exact facility name match. Scopes results to trials running at this named site.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"pageSize": {
"default": 20,
"description": "Number of results per page. Integer in [1, 50]. Default 20.",
"type": "integer",
"minimum": 1,
"maximum": 50
},
"cursor": {
"description": "Opaque pagination cursor returned by a previous call's nextCursor field. Omit to start from the beginning of the result set. Cursors are tied to the exact filter set used to issue them - reusing a cursor with different filters returns an invalid_cursor error.",
"type": "string",
"minLength": 1
}
},
"required": [
"state"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"trials": {
"type": "array",
"items": {
"type": "object",
"properties": {
"nctId": {
"type": "string",
"description": "Canonical NCT identifier."
},
"url": {
"type": "string",
"description": "Hipa.ai page for this trial: plain-language summary, every US site and how to apply. Link this when presenting the trial."
},
"briefTitle": {
"type": "string",
"description": "Short trial title from ClinicalTrials.gov."
},
"phase": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Raw AACT phase enum value (e.g. PHASE2, EARLY_PHASE1, NA), or null when absent."
},
"overallStatus": {
"type": "string",
"description": "AACT recruitment status (e.g. RECRUITING, NOT_YET_RECRUITING)."
},
"sponsor": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Lead sponsor name, or null when absent in AACT."
},
"conditions": {
"type": "array",
"items": {
"type": "string"
},
"description": "Condition names from the trial record, split into an array."
},
"eligibility": {
"type": "object",
"properties": {
"sex": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"minimumAge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"maximumAge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"healthyVolunteers": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
}
},
"required": [
"sex",
"minimumAge",
"maximumAge",
"healthyVolunteers"
],
"additionalProperties": false,
"description": "Eligibility summary as recorded in AACT."
},
"locationCount": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Total number of US facilities running this trial."
},
"firstLocation": {
"anyOf": [
{
"type": "object",
"properties": {
"city": {
"type": "string"
},
"state": {
"type": "string"
}
},
"required": [
"city",
"state"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Primary US facility city / state when present, null otherwise."
}
},
"required": [
"nctId",
"url",
"briefTitle",
"phase",
"overallStatus",
"sponsor",
"conditions",
"eligibility",
"locationCount",
"firstLocation"
],
"additionalProperties": false
},
"description": "Trial records for the current page, sorted newest first by start_date."
},
"totalMatching": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Total trials matching the filters across all pages."
},
"nextCursor": {
"description": "Opaque cursor to fetch the next page. Absent when no more pages are available.",
"type": "string"
},
"searchCriteria": {
"type": "object",
"properties": {
"state": {
"type": "string",
"description": "Canonical state code applied to this search."
},
"city": {
"description": "Canonical city name resolved from the slug, present when city scope was used.",
"type": "string"
},
"condition": {
"type": "string"
},
"phase": {
"type": "array",
"items": {
"type": "string"
}
},
"studyType": {
"type": "array",
"items": {
"type": "string"
}
},
"interventionType": {
"type": "array",
"items": {
"type": "string"
}
},
"status": {
"type": "array",
"items": {
"type": "string"
}
},
"sex": {
"type": "string"
},
"age": {
"type": "string"
},
"healthyVolunteersOnly": {
"type": "boolean"
},
"facility": {
"type": "string"
},
"pageSize": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Page size that was applied to produce this page of results."
}
},
"required": [
"state",
"pageSize"
],
"additionalProperties": false,
"description": "Echo of the applied filter set so the caller can confirm what the server interpreted."
},
"noMatchHints": {
"description": "Actionable suggestions to broaden the search, present only when totalMatching is zero.",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"trials",
"totalMatching",
"searchCriteria"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}社群
證據