ct_count_by_condition

Pack: clinicaltrials · Endpoint: https://gateway.pipeworx.io/clinicaltrials/mcp

Count clinical trials for a condition or disease, broken down by recruitment status and by trial phase — how many are recruiting, completed, terminated, and how many are Phase 1, 2, 3 or 4. Use for landscape questions about how much trial activity a disease has and where it sits in development. Filtering by status or phase returns the filtered total without the breakdown.

Parameters

NameTypeRequiredDescription
conditionstringyesCondition or disease (e.g., “breast cancer”, “diabetes”, “Alzheimer”)
statusstringnoOptional status filter: RECRUITING, COMPLETED, etc.
phasestringnoOptional 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

FieldTypeDescription
conditionstringCondition queried
status_filterstringApplied status filter or ‘all’
phase_filterstringApplied phase filter or ‘all’
total_countnumberTotal 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.

Regenerated from source · build September 10, 2026