ct_count_by_condition
Pack: clinicaltrials · Endpoint: https://gateway.pipeworx.io/clinicaltrials/mcp
Count trials for a condition (e.g., ‘diabetes’). Returns breakdown by status and phase for landscape analysis.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
condition | string | yes | Condition or disease (e.g., “breast cancer”, “diabetes”, “Alzheimer”) |
status | string | no | Optional status filter: RECRUITING, COMPLETED, etc. |
phase | string | no | Optional phase filter: PHASE1, PHASE2, PHASE3, PHASE4 |
Example call
Arguments
{
"condition": "diabetes",
"status": "RECRUITING"
}
curl
curl -X POST https://gateway.pipeworx.io/clinicaltrials/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ct_count_by_condition","arguments":{"condition":"diabetes","status":"RECRUITING"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('ct_count_by_condition', {
"condition": "diabetes",
"status": "RECRUITING"
});
More examples
{
"condition": "Alzheimer",
"phase": "PHASE3"
}
Response shape
Always returns: condition, status_filter, phase_filter, total_count
| Field | Type | Description |
|---|---|---|
condition | string | Condition queried |
status_filter | string | Applied status filter or ‘all’ |
phase_filter | string | Applied phase filter or ‘all’ |
total_count | number | Total matching trial count |
Full JSON Schema
{
"type": "object",
"properties": {
"condition": {
"type": "string",
"description": "Condition queried"
},
"status_filter": {
"type": "string",
"description": "Applied status filter or 'all'"
},
"phase_filter": {
"type": "string",
"description": "Applied phase filter or 'all'"
},
"total_count": {
"type": "number",
"description": "Total matching trial count"
}
},
"required": [
"condition",
"status_filter",
"phase_filter",
"total_count"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"clinicaltrials": {
"url": "https://gateway.pipeworx.io/clinicaltrials/mcp"
}
}
}
See Getting Started for client-specific install steps.